468,556 Members | 2,400 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,556 developers. It's quick & easy.

mysql_pconnect fatal error

18
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\htdocs\flash.php on line 11

Here's the code:

Expand|Select|Wrap|Line Numbers
  1.  <?php 
  2. mysql_pconnect ("localHost", "root", "wooty");
  3.  
  4. mysql_select_db ("blog_db");
  5. $qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC");
  6.  
  7. $nRows = mysql_num_rows($qResult);
  8. $rString ="&n=".$nRows;
  9.  
  10.  
  11. for ($i=0; $i< $nRows; $i++){
  12.     $row = mysql_fetch_array($qResult);
  13.     $rString .="&id".$i."=".$row['id']."&"."&title".$i."=".$row#['title']."&"."&date".$i."=".$row['date']."&"."&entry".$i."=".$row['entry']."&";
  14. }
  15. echo $rString."&";
  16.  
  17. ?>
  18.  
Any thoughts would be greatly appreciated, thanks!
Jan 22 '06 #1
1 1707
Why don't you use mysql_connect?
Apr 24 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by Tim Tyler | last post: by
4 posts views Thread by Angelos | last post: by
1 post views Thread by WhatsPHP | last post: by
11 posts views Thread by =?ISO-8859-1?Q?J=F8rn?= Dahl-Stamnes | last post: by
9 posts views Thread by John Murtari | last post: by
1 post views Thread by UniDue | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.