hi,
I am having trouble finding the problem here. i also can't really find anything great on the net to help me. I keep getting an error saying: 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
here is my code. hope you can help!
<?php
$id = $_POST['id'];
$timestamp = time();
$days = date("dFY", $timestamp);
@mysql_connect ("localhost","down2par_down2pa","4m329aMh") or die ("could not connect to MySQL");
@mysql_select_db ("down2par_d2pdb") or die ("no database");
mysql_query("UPDATE approval SET `approved`= 1 WHERE userid = $id") or die (mysql_error());
mysql_query("UPDATE login SET `submit`=1 AND `date`=$days WHERE ID = $id") or die (mysql_error());
header("location: http://www.down2party.com/Nathan/home_page/homepage/approve.php");
?>