Hi,
I am migrating from PHP3 to PHP4, and I
am receiving the following error message:
Warning: Supplied argument is not a valid MySQL-Link resource in test.php3 on line 7
Here's the code:
<?
$mysql_link = mysql_connect("localhost", --, --);
mysql_select_db("test");
$query = "INSERT INTO testtable (createdate) values ('testdata')";
$mysql_result = mysql_query($query, $mysql_link);
$cid=mysql_insert_id($mysql_result);
?>
The amazing thing to me is that when I
look into TESTTABLE, I find that Insert
was successful -- a new row with
'testdata' was inserted.
How can I fix this?