note 41264 added to function.mysql-connect
| From: | Annoymous at rn2 dot php dot net | Date: | Sun, 04 Apr 2004 22:44:02 +0000 |
| Subject: | note 41264 added to function.mysql-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-67633@lists.php.net to get a copy of this message | ||
You can call all other mysql functions without the $link varaible. The following will work fine:
<?php
$link = mysql_connect('localhost'. 'user', 'pass') or
die("Can't connect');
mysql_select_db('sample');
$query = "select * from test";
mysql_query($query);
mysql_close();
?>
----
Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41264
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41264&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41264&report=yes
Search -- http://master.php.net/manage/user-notes.php