little error for expertize

Discussion in 'PHP' started by saqqa, Jun 22, 2006.

  1. #1
    :D hi all

    im new with PHP and Mysql
    so i have this stuipt errer each time
    -----------------------------------------------------------------
    Fatal error: Call to undefined function mysql_pconnect() in c:\Inetpub\wwwroot\lesson7\testconn.php on line 8

    ------------------
    for this code
    <?php
    $username = "root";
    $password = "123";

    $link = mysql_pconnect("localhost", $username, $password)
    or die ("Connection <font color='#FB0209'>Not</font> Complete<hr>".mysql_error());

    echo "Connection <font color='#1A5816'>Complete</font>!!! ";


    ?>

    plz help
     
    saqqa, Jun 22, 2006 IP
  2. Chemo

    Chemo Peon

    Messages:
    146
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm guessing that you did not compile PHP with MySQL support since that function has been available since v3.X

    Bobby
     
    Chemo, Jun 22, 2006 IP
  3. sadcox66

    sadcox66 Spirit Walker

    Messages:
    496
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #3
    sadcox66, Jun 22, 2006 IP
  4. saqqa

    saqqa Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thank you all ,, i wil try apache then
     
    saqqa, Jun 22, 2006 IP
  5. bmelton

    bmelton Peon

    Messages:
    69
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yeah, administering PHP on IIS can be a grade A nightmare. If it's possible, switch to using Apache, or better yet, a Linux OS with a decent package manager.
     
    bmelton, Jun 24, 2006 IP