J
|
Jane 11/10/2008 |
Hi, ... if ($data) { // if record exists do something echo "<font color=red> Other Users have Items attached to this Product, it cannot be deleted .</font>"; return false; } else { // if dont exist do something else return true; } |
E
|
erago author 11/10/2008 |
after trying the " return false; " I have found, |
J
|
Jane 11/11/2008 |
Hi, global $conn; $strSQLExists = "select count(*) from _Product_Details where Product_Number='".$deleted_values["Product_Number"]."'"; echo $strSQLExists; $rsExists = db_query($strSQLExists,$conn); $data=db_fetch_array($rsExists); print_r($data); ... |
E
|
erago author 11/12/2008 |
Thanks that is a great trick. |
J
|
Jane 11/13/2008 |
It's difficult to tell you what's happening without seeing actual files. |