Re: Mysql statement works in phpmyadmin but not in php page

From: Date: Thu, 11 Feb 2010 21:29:30 +0000
Subject: Re: Mysql statement works in phpmyadmin but not in php page
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-302018@lists.php.net to get a copy of this message
james stojan wrote on 11/02/2010 22:21:
$query="INSERT INTO upload_history (v_id,hour,visits,date) VALUES (".$v_id.",".$hour.",".$visits.",'$date1'".");";
The ,'$date1'"." is not correct syntax, change it to ,'".$date."' -- Kind regards Kim Emax - masterminds.dk

« previous php.general (#302018) next »