#1
  1. No Profile Picture
    nnrao18
    Guest
    Devshed Newbie (0 - 499 posts)
    While i excuteing the below code which is
    encoded between <?php ?>

    i got an error :
    " Call to unsupported or undefined function mysql_connect() in d:Inetpubwwwrootphptestphp.php3 on line 2"

    <?php
    $con=mysql_connect("shaktiserver","narayana","nara");
    $result=mysql_query("select * from clients",$con);
    echo"Connected";

    ?>

    How to fix that bug.
    Please give the solution as early as possible.

  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    27
    Rep Power
    0
    simple

    the error is "undefined function"
    this means, it cant find the function "mysql_connect"
    try to compile php with MySQL support

    and RTFM before starting this
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Location
    Calcutta, West Bengal, India
    Posts
    25
    Rep Power
    0
    If u are using the Redhad distrib RPM's, then the PHP RPM doesnt support MySQL normally. Instead download the PHP source code and apache source and then recompile apache with PHP and MySQL support afresh.

    Just follow the instructions in the help. Its that simple and u get PHP zipping away wtih MySQL data conncetion - propah !

Similar Threads

  1. Custom error message for MySQL connection
    By dbr1066 in forum PHP Development
    Replies: 6
    Last Post: February 12th, 2004, 12:25 PM
  2. java / mysql connection
    By johann8401 in forum Java Help
    Replies: 2
    Last Post: February 9th, 2004, 01:27 PM
  3. MYSQL connection to JSP (not again!! :) )
    By JSP_Neubee in forum Java Help
    Replies: 1
    Last Post: January 20th, 2004, 09:34 AM
  4. MySQL Control Center connection problems
    By FragMaster B in forum MySQL Help
    Replies: 3
    Last Post: January 19th, 2004, 10:44 AM
  5. JSP connection to mySQL
    By rutsyc in forum Java Help
    Replies: 1
    Last Post: December 18th, 2003, 11:50 AM

IMN logo majestic logo threadwatch logo seochat tools logo