note 40556 added to function.mysql-select-db
| From: | cz530516 at tiscali dot cz | Date: | Sun, 07 Mar 2004 21:44:06 +0000 |
| Subject: | note 40556 added to function.mysql-select-db | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-66407@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/function.mysql-select-db.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40556
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40556&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40556&report=yes
Search -- http://master.php.net/manage/user-notes.php