Installation Problem
am 15.11.2006 17:03:38 von Abdou Karim Jallow
------=_Part_86179_11519305.1163606618134
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
I have just upgraded to PHP 5.2 from PHP 4. I am using Apache 2 with MYSQL.
Before the upgrade, everything was working well. (Was able to connect to my
MYSQL database from PHP interface. However, now with the same PHP codes, I
am not able to connect to the MYSQL database instead I am getting errors
such as:
*Fatal error*: Call to undefined function mysql_connect() in
*C:\Program Files\Apache Group\Apache2\htdocs\viewusers.php* on line
*7
Line 7 is: $dbc = mysql_connect ('localhost') OR die ('Could not
connect to mysql: ' .mysql_error() );
*However, this was working fine before the upgrade. WHAT DO I NEED TO DO.
In a second attempt to fix the problem, I dited the system path to the
directory where php is installed. Now the error message is gone but still
cannot to the database. Whilst I tried to retrieve data from the database
using the PHP scripts, nothing comes from the database. Also I tried to post
but the data is not put in the data.base
Note when I upgraded to PHP 5, I still left the PHP 4 files in the computer.
PLEASE HELP ME
--
Thank you very much.
Abdou Karim Jallow
------=_Part_86179_11519305.1163606618134--
Re: Installation Problem
am 15.11.2006 17:11:20 von Brad Bonkoski
Check out the installation instructions for Windows...
MYSQL support is not working with your PHP, if memory serves me
correctly you just need to uncomment a dll in your php.ini file, but
check out:
http://www.php.net/manual/en/ref.mysql.php
-B
Abdou Karim Jallow wrote:
> I have just upgraded to PHP 5.2 from PHP 4. I am using Apache 2 with
> MYSQL.
>
> Before the upgrade, everything was working well. (Was able to connect
> to my
> MYSQL database from PHP interface. However, now with the same PHP
> codes, I
> am not able to connect to the MYSQL database instead I am getting errors
> such as:
>
> *Fatal error*: Call to undefined function mysql_connect() in
> *C:\Program Files\Apache Group\Apache2\htdocs\viewusers.php* on line
> *7
>
> Line 7 is: $dbc = mysql_connect ('localhost') OR die ('Could not
> connect to mysql: ' .mysql_error() );
>
>
> *However, this was working fine before the upgrade. WHAT DO I NEED TO DO.
>
> In a second attempt to fix the problem, I dited the system path to the
> directory where php is installed. Now the error message is gone but still
> cannot to the database. Whilst I tried to retrieve data from the database
> using the PHP scripts, nothing comes from the database. Also I tried
> to post
> but the data is not put in the data.base
>
> Note when I upgraded to PHP 5, I still left the PHP 4 files in the
> computer.
>
> PLEASE HELP ME
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Installation Problem
am 15.11.2006 17:14:17 von Ankur Dave
Hey,=0D
Chk you phpinfo(); is that is showing the mysql support enable. ??
And chk for linux that mysql.so is not-commented. ??
That are 2 main-basic things to chk the mysql & php relation.
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-
@nkur d@ve || http://ullu.wordpress.com
-----Original Message-----
From: Abdou Karim Jallow [mailto:akjallow@googlemail.com]=0D
Sent: Wednesday, November 15, 2006 9:34 PM
To: php-db@lists.php.net
Subject: [PHP-DB] Installation Problem
I have just upgraded to PHP 5.2 from PHP 4. I am using Apache 2 with
MYSQL.
Before the upgrade, everything was working well. (Was able to connect to
my
MYSQL database from PHP interface. However, now with the same PHP codes,
I
am not able to connect to the MYSQL database instead I am getting errors
such as:
*Fatal error*: Call to undefined function mysql_connect() in
*C:\Program Files\Apache Group\Apache2\htdocs\viewusers.php* on line
*7
Line 7 is: $dbc =3D mysql_connect ('localhost') OR die ('Could not
connect to mysql: ' .mysql_error() );
*However, this was working fine before the upgrade. WHAT DO I NEED TO
DO.
In a second attempt to fix the problem, I dited the system path to the
directory where php is installed. Now the error message is gone but
still
cannot to the database. Whilst I tried to retrieve data from the
database
using the PHP scripts, nothing comes from the database. Also I tried to
post
but the data is not put in the data.base
Note when I upgraded to PHP 5, I still left the PHP 4 files in the
computer.
PLEASE HELP ME
--=0D
Thank you very much.
Abdou Karim Jallow
The information contained in, or attached to, this e-mail, contains=
confidential information and is intended solely for the use of the=
individual or entity to whom they are addressed and is subject to legal=
privilege. If you have received this e-mail in error you should notify the=
sender immediately by reply e-mail, delete the message from your system=
and notify your system manager. Please do not copy it for any purpose, or=
disclose its contents to any other person. The views or opinions presented=
in this e-mail are solely those of the author and do not necessarily=
represent those of the company. The recipient should check this e-mail and=
any attachments for the presence of viruses. The company accepts no=
liability for any damage caused, directly or indirectly, by any virus=
transmitted in this email.
www.aztecsoft.com
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Installation Problem
am 15.11.2006 18:43:35 von zoticaicpassion
Hi Abdou,
The " Call to undefined function ..." error is usually caused by an
extension that provides that function that is not loaded or is not
available.
1. Make sure that you have the php_mysql.dll extension on the PHP extension
dir.
2. Furthermore if the extension exists check that it is properly loaded by
looking through your php.ini file for 'extension=php_mysql.dll'
HTH
Jervin
> -----Original Message-----
> From: Abdou Karim Jallow [mailto:akjallow@googlemail.com]
> Sent: Thursday, November 16, 2006 12:04 AM
> To: php-db@lists.php.net
> Subject: [PHP-DB] Installation Problem
>
> I have just upgraded to PHP 5.2 from PHP 4. I am using Apache 2 with
> MYSQL.
>
> Before the upgrade, everything was working well. (Was able to connect to
> my
> MYSQL database from PHP interface. However, now with the same PHP codes, I
> am not able to connect to the MYSQL database instead I am getting errors
> such as:
>
> *Fatal error*: Call to undefined function mysql_connect() in
> *C:\Program Files\Apache Group\Apache2\htdocs\viewusers.php* on line
> *7
>
> Line 7 is: $dbc = mysql_connect ('localhost') OR die ('Could not
> connect to mysql: ' .mysql_error() );
>
>
> *However, this was working fine before the upgrade. WHAT DO I NEED TO DO.
>
> In a second attempt to fix the problem, I dited the system path to the
> directory where php is installed. Now the error message is gone but still
> cannot to the database. Whilst I tried to retrieve data from the database
> using the PHP scripts, nothing comes from the database. Also I tried to
> post
> but the data is not put in the data.base
>
> Note when I upgraded to PHP 5, I still left the PHP 4 files in the
> computer.
>
> PLEASE HELP ME
>
> --
> Thank you very much.
>
> Abdou Karim Jallow
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Installation Problem
am 15.11.2006 20:53:14 von Niel Archer
Hi
If you're on a windows platform, this will be because MySQL support is
built in on v4.1 but not on 5.x. As the others have suggested,
uncomment the php_mysql.dll entry in the modules to add it.
Niel
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php