Re: PHP want not write in Database

From: Date: Mon, 16 May 2011 10:06:17 +0000
Subject: Re: PHP want not write in Database
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-312804@lists.php.net to get a copy of this message
On Mon, May 16, 2011 at 10:30 AM, Silvio Siefke <lists@silvio-siefke.de>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/

« previous php.general (#312804) next »