Im trying to execute this query from a previous page where all the variable are entered...the values are not inserted into the db.It connects fine.heres the code....maybe someone can help....
<?
$dbh=mysql_connect("localhost","patrickh_test","slalom");
@mysql_select_db("patrickh_ratemypub") or die( "could not connect to database!");
$query="INSERT INTO pubs VALUES('$pubname','$street','$town','$county','$openinghours','$contactnumber','$lounge','$barandnightclub','$barwithnonightclub','$barandrestaurant','$barrestaurantnightclub','$description','$dance','$hiphop,'$pop','$rock','$eightys','$ninetys','$techno','$traditional','$other','$pubfood','$italien','$american','$irish','$mexican','$foodtime','$reservation')";
mysql_query($query) or die("did not work");
mysql_close();
?>
cheers
Paddy 🙂