edit v2 |
2/28/2008 3:22:52 AM |
PHPRunner General questions | |
G
garethp authorDevClub member
Sorry - little bit of help needed again. global $conn,$strTableName; if ($_REQUEST["editid1"]) { $str = "select * from ".$strTableName." where partid=".$_REQUEST["editid1"]; $rs =db_query($str,$conn); if ($data = db_fetch_array($rs)) if ($data["archive"]==1) { header("Location: tablename_list.php"); exit(); } }
|
|
J
|
Jane 2/28/2008 |
Hi, global $conn,$strTableName; if ($_REQUEST["editid1"]) { $str = "select * from ".$strTableName." where id=".$_REQUEST["editid1"]; $rs =db_query($str,$conn); if ($data = db_fetch_array($rs)) { $str2 = "select archive from part where partid=".$data["partid"]; $rs2 = db_query($str2,$conn); if ($data2 = db_fetch_array($rs2)) if ($data2["archive"]==1) { header("Location: tablename_list.php"); exit(); } } } |
G
|
garethp authorDevClub member 2/28/2008 |
Brilliant - thanks for much. |