You mean something like:
<?php
//setup db connection
$usr = "username";
$pwd = "yourpass";
$db = "yourdatabase";
$host = "localhost";
$cid = mysql_connect($host,$usr,$pwd);
if (!$cid) { echo("ERROR: " . mysql_error() . "\n" }
$SQL = "SELECT name, owner, species FROM pet";
$retid = mysql_db_query($db, $SQL,
Forum:
WampServer English