J
|
Jane 4/1/2008 |
Here are some tips:
//delete records if(@$_POST["a"]=="delete") return true; //add to cart //select all additional options from table and save it in the $_SESSION variables or in another temp table global $conn,$strTableName; $str = "select * from tablename where ".$where; $rs = db_query($str,$conn); $data = db_fetch_array($rs); for ($i=0; $i<count($data);$i++) $_SESSION[$i."_optionid"] = $data["OptionID"]; //redirect to inventory page and add record to the shopping cart header("Location: inventory_list.php?item=".$_SESSION[$strTableName."_masterkey1"]); exit(); return false;
|