Re: PHP want not write in Database

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

 



On Mon, May 16, 2011 at 10:30 AM, Silvio Siefke <lists@xxxxxxxxxxxxxxxx>wrote:

> Hello,
>
> On Mon, 16 May 2011 09:57:23 +0800 xianhua zhou wrote:
> > VALUES(:autor, :title, :teaser, :teaser, :content, :category, :bild)
> >
> > There are 2 ":teaser",  try remove one.
>
> Yes thats it. Now it work well done! Thank you, im sorry sure was to long
> at
> the pc yesterday.


In order to avoid this problem in future I encourage you to check the return
value of every function call you make that might fail, i.e. every single
one! Had you done that here, and then pulled out the last error message from
PDO you would not have had this problem for longer than a minute.

-Stuart

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

[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