OK this has me stumped, and frustrated! I'm sending different queries to the same table within the same script file but getting an error with the second query?? Here's the code:
<PRE>
mysql_pconnect("$host", "$user", "$pass")
or die ("Cannot connect to database.");
mysql_select_db("$host")
or die("Cannot select database.");
$result = mysql_query("$selStmt")
or die("Error in query.");
$row = mysql_fetch_object($result)
or die("Internal error, try again."); //ok to here!
-
- //code here is mostly for counters and compares.
- //and write data to a file. Then....
mysql_db_query("$host", "UPDATE $tableName set ACTIVE='0', PACKAGE='$num' WHERE ROWID='$rowid' ")
or die("Cannot update data."); //this is where it falls over!??
- //more code that never gets executed!
-
-
?>
Anything obvious?? Sure will appreciate any help...this one gots me!
Thanks,
Marcel.