Andrew
2011-05-29 08:45:00 UTC
$sql = mysql_query("SELECT * FROM $table_1989 WHERE'Meta Tags' LIKE'%$search%'");
while($result = mysql_fetch_array($sql))
{
echo $result['Language'];
echo $result['Header'];
echo $result['Introduction'];
}
$matches = mysql_num_rows($sql);
if($matches == 0)
{
echo "
Sorry we couldn't find any matches for your search
";}
Problem with it is the code doesn't error at all it just doesn't work either. The only difference is between mine and their tutorial is the WHERE part of the SELECT function I have to use single quotes
other wise PHP throws an error up but yet they don't use them so how come it works for them without the quotes yet mine is throwing up errors if I don't use them.
Usually because I have been staring at it for hours code that is in general not just this one. I tend to over look certain things so I'm hoping new eyes may spot an error I have made or something.
Any help would be appreciated here thanks.