You are here: Re: Where is mysql_connect()? « PHP Programming Language « IT news, forums, messages
Re: Where is mysql_connect()?

Posted by Jerry Stuckle on 03/05/07 02:04

brett wrote:
> On Mar 4, 12:43 pm, PDannyD <dan1...@scenicplace.freeserve.co.uk>
> wrote:
>> brett wrote:
>>> I'm running PHP5 on Windows Vista with mysql 5.2. I have a simple php
>>> file with
>>> <?
>>> $dbc = mysql_connect ();
>>> ?>
>>> When I run the file, I get this error:
>>> Fatal error: Call to undefined function mysql_connect() in E:\www
>>> \mysite\connecttest.php on line 2
>>> PHP seems to be installed correctly. What could I be doing wrong?
>> What does phpinfo() bring up? If you can't see MySQL in there then it needs
>> to be installed/configured.
>
> I've installed the extensions and configured php.ini. I renamed php-
> recommended to php.ini since one didn't exist. I set the
> externsion_dir to my "ext" path but phpinfo() keeps showing it as c:
> \PHP5, which doesn't exist. Any idea why that is happening?
>
> Thanks.
>

Are you using the correct php.ini? phpinfo() will tell you.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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