You are here: Re: [PHP] Call to undefined function mysql_real_escape_string()] « PHP « IT news, forums, messages
Re: [PHP] Call to undefined function mysql_real_escape_string()]

Posted by David Grant on 12/08/05 16:33

Hi John,

John Nichel wrote:
> Paul Hickey wrote:
>> I don't understand why I'm getting "undefined function" errors.
>> PHP.ini has no reference to mysqli. I don't know if changing this would
>> enable the functions specific to PHP > 4.x.
>
> In your configuration line (how php was configured then compiled), you
> have...
>
> --with-mysqli=/usr/local/mysql/bin/mysql_config
>
> That is why you are getting undefined function errors. Your version of
> php is using mysqli, not mysql. You have two options: a) Recompile php
> or b) Change all mysql_* functions to their counterparts in mysqli_*


Hmm, that's how I *should* have put it. :)

Cheers,

David
--
David Grant
http://www.grant.org.uk/

 

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

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