Re: SqLite INSERT want not write

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

 



On 19 Apr 2012, at 19:52, Silvio Siefke wrote:

> On Thu, 19 Apr 2012 13:21:46 -0500
> tamouse mailing lists <tamouse.lists@xxxxxxxxx> wrote:
> 
>> Maybe this will make the syntax errors stand out more:
>> 
>> http://dl.dropbox.com/u/571329/Screenshots/Picture%209.png
> 
> 
> ok i have change it to the function date, but now i has the error
> message:
> 
> PDOException: SQLSTATE[HY000]: General error: 1 SQL logic error or missing database
> 
> gentoo-desk ~ # php -l test.php
> No syntax errors detected in test.php
> 
> The script now -> http://nopaste.info/63fe0a9148.html

Using date() is not valid there. It's possible now() might work (don't use PDO so I dunno for sure), otherwise you'll need to bind that parameter in the same way you're binding the others.

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/

-- 
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