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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux