Thread: Help!!!

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2010
    Posts
    21
    Rep Power
    0

    Help!!!


    I am currently following a training video for Mysql, Apache and php i have done the code exactly how they do it on the video but im getting error codes while the people on the video have it working perfectly admittedly im using php 5 mysql 5.1 and Apache 2.2 and the people on the video are using lower versions of the software but does that make much difference?

    anyway this is the code im using and the error i get returned;

    THE CODE

    <?php
    require($_SERVER["DOCUMENT_ROOT"]."/config/bd_config.php");
    $link = mysql_connect($db_host, $db_user, $db_password); or die ("error in connection)
    echo "connection made";
    ?>




    THE ERROR

    Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\htdocs\temp_con.php on line 3




    Can anyone please help me

    Cheers

    RichE
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2010
    Posts
    1
    Rep Power
    0
    It looks like PHP on your systems doesn't have MySQL support enabled.

    Try the following:
    Code:
    <?php
    echo phpinfo();
    and see if --with-mysql is listed there.

IMN logo majestic logo threadwatch logo seochat tools logo