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:
Any thoughts would be greatly appreciated, thanks!
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."&"; ?>
Comment