Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Nov 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    error abt my sql_connect

    the error show by the webserver is

    Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\wwwroot\subzero1\include\db_mysql.inc on line 68

    for the code
    mysql_connect($Host,$User,$Password);

    pls tell me wht to do

  • #2
    Senior Coder
    Join Date
    Aug 2003
    Location
    One step ahead of you.
    Posts
    2,815
    Thanks
    0
    Thanked 3 Times in 3 Posts
    It means that you did not load the mysql extension. You have to enable it in the php.ini. Without the extension you won't be able to connect to a MySQL database using mysql_* functions.
    I'm not sure if this was any help, but I hope it didn't make you stupider.

    Experience is something you get just after you really need it.
    PHP Installation Guide Feedback welcome.

  • #3
    New to the CF scene
    Join Date
    Nov 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    now its saying
    PHP Startup: Unable to load dynamic library './php_mysql.dll' - The specified procedure could not be found. in Unknown on line 0

    pls tell me in detail wht 2 do

  • #4
    Senior Coder
    Join Date
    Aug 2003
    Location
    One step ahead of you.
    Posts
    2,815
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Most probably, you need to move the file "libmysql.dll" to a folder accessible from you systems PATH. C:\WINDOWS\system32\ is one such location. The dll is included with the PHP binary distribution (without the installer).
    I'm not sure if this was any help, but I hope it didn't make you stupider.

    Experience is something you get just after you really need it.
    PHP Installation Guide Feedback welcome.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •