I have a question for anyone that that would like to help
I was trying to use this code from the manual and it works fine with one Check but I needed 2 checks so I repeated the code for the 2nd check and EVERY time the 2nd added check comes up with does not exist even if it does. The logic checks were sound. Is there a reason you can not do 2 different checks in a row?
//** Check if specific record exists ****
global $conn;
$strSQLExists = "select * from AnyTable where AnyColumn='SomeValue'";
$rsExists = db_query($strSQLExists,$conn);
$data=db_fetch_array($rsExists);
if($data)
{
// if record exists do something
}
else
{
// if dont exist do something else
}