note 4852 modified in mysql_select_db by ronabop
| From: | ronabop@php.net | Date: | Wed, 23 Aug 2000 09:59:35 +0000 |
| Subject: | note 4852 modified in mysql_select_db by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2986@lists.php.net to get a copy of this message | ||
Im a php/MySQL newbie myself and im learning stuff as a go along and from all the tutorials on the
net, i hope the following example helps:
<pre>
mysql_connect()or die ("Problem connecting to DataBase");
$query = "YOUR SQL QUERY GOES HERE";
$result = mysql_db_query("DBname", $query);
http://www.php.net/manual/function.mysql-select-db.php