You are here: Re: PDOStatement error : Call to a member function execute() on a non-object « PHP Programming Language « IT news, forums, messages
Re: PDOStatement error : Call to a member function execute() on a non-object

Posted by loudwinston@gmail.com on 11/15/06 20:28

Okay figured it out. Somehow the server has two version of mySQL
(4.1.18 and 4.0.20) and the 4.0 version was running. Once I got the
4.1 install up and running everything worked fine.

Thanks for your help!

~Kevin

On Nov 15, 3:19 pm, Michael Fesser <neti...@gmx.de> wrote:
> .oO(loudwins...@gmail.com)
>
> >I added a print_r of $db->errorInfo() before the execute statement and
> >get the following
>
> >Array
> >(
> > [0] => 00000
> > [1] => 1047
> > [2] => Unknown command
> >)I should have had a look on your MySQL version before - prepared
> statements require MySQL 4.1 or higher.
>
> Your client lib supports them, but not the server itself.
>
> Micha

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация