PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
hi all
actually, im new with php -mysql
i always this error regarding database conection
[b]Fatal error: Call to undefined function mysql_pconnect() in c:\Inetpub\wwwroot\lesson7\testconn.php on line 8[/b]
and her is the code to test conection
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
1) First off, welcome to the PHP Developers Network Forums.
2) Second, please wrap your PHP code in php BBCode tags (that little PHP button at the top of the posting textarea).
3) Third, please search the forums and google for what you are looking before posting. This problem has been addressed several times in the last week.
The reason you are getting this problem is more than likely you have not loaded the php_mysql extension in your php.ini. If you are using PHP 5, then the mysqli extension should be loaded by default. For all PHP version below 5, you are going to have to load the extension manually by editing your php.ini file.
Search these forums and google for 'enabling php_mysql extension' or 'loading php_mysql extension' and you should find your answer fairly quickly.