You are here: Re: [PHP] PHP5 qne MySQL « PHP « IT news, forums, messages
Re: [PHP] PHP5 qne MySQL

Posted by Charles FENDT on 10/20/11 11:16

Terrence Mullin a écrit :

>>I have been trying to set an area at home to run and
>>test php and MySQL applications. I used the tutorial
>>on http://www.ricocheting.com/server/cgi.html
>>to install Apache, PHP, and MySQL. Everything is
>>working great except for trying to test a simple
>>connection to the MySQL database through php. I have
>>seen some other people quote on how PHP5 no longer
>>
>>
>has
>
>
>>a direct link to MySQL. My platform is Windows XP at
>>the moment. I will shortly be partitioning two hard
>>drives for use of Linux on one of them. I would like
>>to know if there is a solution for WIndows XP. I
>>
>>
>have
>
>
>>seen people just go back to php4 to correct this. I
>>was wondering if there is a simple way I can stick
>>with PHP5 and make my connections. I receive this
>>error right now:
>>
>>Fatal error: Call to undefined function
>>mysql_connect() in C:\public_html\MySQLphptry.php on
>>line 18
>>
>>Where line 18, is just the mydsql_connect ();
>>
>>
>command.
>
>
>>Thank you for your help in this I know myself as
>>
>>
>well
>
>
>>as other forums out there would like to know a
>>
>>
>simple
>
>
>>solution if there is one.
>>
>>
>
>SIncerely,
>Terry Mullin
>
>
>
Try to edit your PHP.INI file
check if PHP_MYSQL.DLL in declared as module...
if the file is in the path...

But try to use MySQLi or PDO (PHP 5.1 or PECL modules for PHP 5.0)

This is a must better way to acces mysql Database...

regards,

FENDT Charles

 

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

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