Thread: Help --- error

    #1
  1. No Profile Picture
    Gianni
    Guest
    Devshed Newbie (0 - 499 posts)
    Ok, this is probably a silly question but I've just started with this whole PHP3 + mySQL thing. I tried implementing a guestbook and got the following message.


    Fatal error: Call to unsupported or undefined function mysql_connect() in connect.inc.php3 on line 14
  2. #2
  3. No Profile Picture
    rod k
    Guest
    Devshed Newbie (0 - 499 posts)
    That error means PHP doesn't have mysql support compiled in.
  4. #3
  5. No Profile Picture
    Gianni
    Guest
    Devshed Newbie (0 - 499 posts)
    I kinda figured somethin like that....

    how do I fix it ??

  6. #4
  7. No Profile Picture
    rod k
    Guest
    Devshed Newbie (0 - 499 posts)
    You need to include:

    --with-mysql=DIR

    in the configuration. (Check the manual for more info). BTW, DIR defaults to /usr/local/ which is the default path for mysql, so you can exclude it as long as you didn't place mysql someplace funky.
  8. #5
  9. No Profile Picture
    Gianni
    Guest
    Devshed Newbie (0 - 499 posts)
    oh by the way I'm running this on NT

  10. #6
  11. No Profile Picture
    rod k
    Guest
    Devshed Newbie (0 - 499 posts)
    Oh, that's where your problem is..

    Did you compile yourself? If so I don't know what to tell you as I've never done that on an Win box. However, you can dl binaries for Win32 that have mysql support compiled in. Check at www.php.net

Similar Threads

  1. error using the useBean tag in JSP
    By naz in forum Java Help
    Replies: 7
    Last Post: June 7th, 2004, 01:53 PM
  2. mysql: getting error description from error code
    By laker in forum PHP Development
    Replies: 1
    Last Post: January 21st, 2004, 06:03 AM
  3. I don't know what this error message means
    By lcham02 in forum Java Help
    Replies: 2
    Last Post: January 13th, 2004, 11:57 AM
  4. How can I start mySQL server
    By jyu1 in forum MySQL Help
    Replies: 2
    Last Post: September 5th, 2003, 11:06 AM
  5. Replies: 3
    Last Post: September 5th, 2003, 08:32 AM

IMN logo majestic logo threadwatch logo seochat tools logo