On Thu, 19 Apr 2012 14:57:04 -0400
"Steven Staples" <sstaples@xxxxxxxx> wrote:
> I think all you had to do was change this line: (line 27 in the original
> paste)
> $sql = 'INSERT INTO bloggen (date, autor, title, teaser, content)
> VALUES ('' . date( 'Y-m-s H:i:s', time() ) . '', :autor, :title,
> :teaser, :content);';
>
> To this:
> $sql = "INSERT INTO bloggen (date, autor, title, teaser, content)
> VALUES ('' . date( 'Y-m-s H:i:s', time() ) . '', :autor, :title,
> :teaser, :content);";
Thats end with:
PDOException: SQLSTATE[HY000]: General error: 1 near "(": syntax error
I has changed what say Stuart, no Sytax errors but in the database nothing
will write.
Regards
Silvio
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[PHP Home]
[Apache Users]
[PHP on Windows]
[Kernel Newbies]
[PHP Install]
[PHP Classes]
[Pear]
[Postgresql]
[Postgresql PHP]
[PHP on Windows]
[Find Someone]
[PHP Database Programming]
[PHP SOAP]