Treasure Coast -Local News & Local Events
Home » formnew

formnew

Cyndi

$con = mysql_connect (“localhost“, “treasur1_test”, “Buck6969!”);
mysql_select_db (“treasur1_DaleSorensen”, $con);

if (!$con)
{
die (“Could not connect: ” . mysql_error());
}
$sql = mysql_query(“SELECT * FROM Listings New WHERE Description LIKE ‘%term%'”) or die
(mysql_error());

while ($row = mysql_fetch_array($sql)){
echo ‘Primary key: ‘ .$row[‘PRIMARYKEY’];
echo ‘
Code: ‘ .$row[‘Code’];
echo ‘
Description: ‘.$row[‘Description’];
echo ‘
Category: ‘.$row[‘Category’];
echo ‘
Cut Size: ‘.$row[‘CutSize’];
}

mysql_close($con)
?>

%d bloggers like this: