$dbhost = 'localhost';
$dbuser = 'jlmsguy';
$dbpass = 'wildcat10!';
$dbname = 'jlms';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
mysql_select_db($dbname);
$sql = "SELECT ID FROM sampletable where ID > 1";
$rs = mysql_query($sql, $conn);
$row = mysql_fetch_assoc($rs);
|