Your the man ben!
Looks like its workin but now it says:
"Error performing query: Query was empty".
The script now looks like:
=========begin=======
<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%";");
if (!$result) { echo("<P>Error performing query: " . mysql_error() . "</P>"); exit(); }
while($values_ar = mysql_fetch_array($result))
{
// enter the display text here
echo "The value of field 'name' is $values_ar[make]<BR>";
echo "The value of field 'address' is $values_ar[model]<BR>";
// this will cycle through each record until the end is reached.
}
?>
=========end=========
Thanx🙂
Jonathan