Hi everyone!
Can someone please check this code for me as it wont work and i have been trying for hours🙁
Thanx for your time,
Jonathan
================
<body><?php
$dbcnx = mysql_connect("localhost", "username", "password");
if (!$dbcnx) { echo( "<P>Unable to connect to the database server at this time. Please try again later.</P>" ); exit();}
mysql_select_db("catalog", $dbcnx);
if (! @mysql_select_db("catalog") ) { echo( "<P>Unable to locate database at this time.</P>" ); exit();}
$result = mysql_query("SELECT make, model, derivative, product, description, price FROM hsc_products WHERE
make LIKE '%$make%' AND
model LIKE '%$model%' AND
derivative LIKE '%$derivative%' and
description LIKE '%$description%'");
while($values_ar = mysql_fetch_array($result))
{
// enter the display text here
echo "$values_ar[make] ";
echo "$values_ar[model] ";
echo "$values_ar[derivative] ";
echo "$values_ar[description]";
}
?>
</head>
==============