Women in Technology

Hear us Roar



Article:
  Using MySQL from PHP
Subject:   trouble getting PHP5 to connect to SQL database
Date:   2005-04-10 23:23:31
From:   jtomsovic
I am new to PHP and MySQL. I am using windows
XP OS. I have installed the Apache server, MySQL and PHP5. When I run "localhost" it shows that the apache sever is running. I can run a test which shows that PHP and Apache work together. I have SQL running and I can create databases, etc uing the command prompt or the MySQL Admin program.
But I cannot get PHP5 to connect to the databases. What am I doing wrong? Help is very much appreciated.


Below are the paths to the various programs
C:\Program Files\Apache Group\Apache2>
C:\Program Files\MySQL\MySQL Server 4.1\bin\mysql.exe
C:\PHP5>

Full Threads Newest First

Showing messages 1 through 4 of 4.

  • trouble getting PHP5 to connect to SQL database
    2005-08-02 03:34:37  Deepak1 [View]

    I m also having same problem
    Kindly reply me in case u find some solution
  • trouble getting PHP5 to connect to SQL database
    2006-03-04 02:07:22  Toshu [View]

    Hi!
    I'm also having same problem.
    I got an error message on my browser:
    Fatal Error: Call to undefined function mysql_connect().
    If you find any solution please reply me.
    or mail me at tushars2001@yahoo.com.
    Any help from any one will be highly appriciated.
    • trouble getting PHP5 to connect to SQL database
      2006-08-06 23:40:15  Jkmaini [View]

      Hello,
      I'm also having same error while connecting, Fatal error: call to undefined function mysql_connect();
      plz help.....
      or reply me at : jas.maini@yahoo.com
      Any help from any one will be highly appriciated.
  • trouble getting PHP5 to connect to SQL database -- FIX
    2006-11-24 17:38:55  bluexv1 [View]

    from
    http://www.phpfreaks.com/forums/index.php?topic=95378.0

    ...

    locate your php.ini file which is most probably located in either the windows folder (C:\WINDOWS), the system folder (C:\WINDOWS\SYSTEM32), or in your php folder.

    Find and set this...
    extension_dir = "C:\php\ext"

    Find and uncomment this...
    ;extension=php_mysql.dll

    restart server, reboot, etc...