mysql_connect("localhost","mmaaaco_muyeda","286066");
mysql_select_db("mmaaaco_muyeda");
$something = $_GET['cortez'];
$sql = mysql_query("select id,name,descrip from t4mma_products where name like '%$something%' or descrip like '%$something%'");
if (strlen($something)>1)echo '
You entered '.$something.'
';
$num = mysql_num_rows($sql);
echo "There were ".$num." results";
while ($row = mysql_fetch_array($sql))
{
echo ''.$row[1].'
';
}
?>