note 40556 deleted from function.mysql-select-db by nlopess
| From: | nlopess@php.net | Date: | Mon, 08 Mar 2004 17:13:29 +0000 |
| Subject: | note 40556 deleted from function.mysql-select-db by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-66445@lists.php.net to get a copy of this message | ||
Note Submitter: cz530516@tiscali.cz
----
Just a little note - if you are going to catch errors with mysql_error(), don't forget to
specify link identifier there either, as I do :)
Like
<?
mysql_query("INSERT INTO counter (id,day,preview) VALUES ($id,$day,$preview);",$db)
or die(mysql_error($db));
?>
Btw, if you're working with more than one database concurrently, it's better to specify
link indentifier in php's mysql_* functions everywhere.