mysql_pconnect fatal error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tom_b
    New Member
    • Jan 2006
    • 18

    mysql_pconnect fatal error

    I get this error when I try to connect to my database

    Fatal error: Call to undefined function mysql_pconnect( ) in c:\program files\apache group\Apache\ht docs\flash.php on line 11

    Here's the code:

    Code:
     <?php 
    mysql_pconnect ("localHost", "root", "wooty");
     
    mysql_select_db ("blog_db");
    $qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC");
     
    $nRows = mysql_num_rows($qResult);
    $rString ="&n=".$nRows;
     
     
    for ($i=0; $i< $nRows; $i++){
    	$row = mysql_fetch_array($qResult);
    	$rString .="&id".$i."=".$row['id']."&"."&title".$i."=".$row#['title']."&"."&date".$i."=".$row['date']."&"."&entry".$i."=".$row['entry']."&";
    }
    echo $rString."&";
     
    ?>
    Any thoughts would be greatly appreciated, thanks!
    Last edited by Niheel; Jan 22 '06, 01:46 AM.
  • pentrac
    New Member
    • Apr 2007
    • 2

    #2
    Why don't you use mysql_connect?

    Comment

    Working...