Re: Call to undefined function mysql_real_escape_string()]
| From: | David Grant | Date: | Thu, 08 Dec 2005 13:37:36 +0000 |
| Subject: | Re: Call to undefined function mysql_real_escape_string()] | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-227137@lists.php.net to get a copy of this message | ||
Is there no way to specify the database functions in Joomla?
You're getting undefined function because you haven't compiled it with
mysql, but mysqli instead, which means the functions you need are
prefixed with mysqli instead of mysql.
Paul Hickey wrote:
> I have PHP compiled with mysqli.
>
> The standard answer from the Joomla forums is that I need to have
> "mysql" vice "mysqli". I was looking for a more global solution than
> having to modify the code for every component, module, mambot I want to
> use.
>
> 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.
>
> Paul Hickey
> Christian Patriot
> Palm Bay Fl
>
--
David Grant
http://www.grant.org.uk/