Re: [PHP] Mysql statement works in phpmyadmin but not in php page

[email protected] (Kim Madsen)
Newsgroups php.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.