|
Hi All, I am relativly new to all this and have been wrestling with this problem for the last few hours... I decided it was time to ask for a little help, so HEEEEELP!!
When I try to run this code;
<?php
$category_txt = $_GET['category'];
$_SESSION['category'] = $category_txt;
if ($category_txt=="bar") {$category_disp="Bars";}
if ($category_txt=="hotel") {$category_disp="Hotels";}
if ($category_txt=="restaurant") {$category_disp="Restaurants";}
if ($category_txt=="tours") {$category_disp="Tours";}
$category_yes = "1";
?>
I get an error that says:
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=''' at line 1"
Any help would be greatly appreciated
Chheers,
Dave
|