ssffcc
05-10-2006, 08:35 AM
my php pages was working yesturday, when i opened it again try to run it, it stoped working and show this message:
Fatal error: Call to undefined function mysql_pconnect() in c:\Inetpub\wwwroot\DreamWeaverSites\webadmin\dbinfo.php on line 10.
the code on dbinfo.php is:
<?php
// replace with your own MySQL details
define('MYSQL_HOST', 'localhost');
define('MYSQL_USER', 'root');
define('MYSQL_PASS', '');
define('MYSQL_DB', 'db_sss');
if (! mysql_pconnect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS) )
{
echo "Failed to connect to the server " . MYSQL_HOST;
exit;
}
mysql_select_db(MYSQL_DB);
?>
my index page has a line on top:
require('dbinfo.php');
please help
btw, I upgraded phy to the latest version of PHP 5.1.4 just now.
is this causing the problem? some articles say that is because i have PHP5+. but the version of PHP i had before was 5.1.2, which i had no problem with.
how come it happened with 5.1.4?
Fatal error: Call to undefined function mysql_pconnect() in c:\Inetpub\wwwroot\DreamWeaverSites\webadmin\dbinfo.php on line 10.
the code on dbinfo.php is:
<?php
// replace with your own MySQL details
define('MYSQL_HOST', 'localhost');
define('MYSQL_USER', 'root');
define('MYSQL_PASS', '');
define('MYSQL_DB', 'db_sss');
if (! mysql_pconnect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS) )
{
echo "Failed to connect to the server " . MYSQL_HOST;
exit;
}
mysql_select_db(MYSQL_DB);
?>
my index page has a line on top:
require('dbinfo.php');
please help
btw, I upgraded phy to the latest version of PHP 5.1.4 just now.
is this causing the problem? some articles say that is because i have PHP5+. but the version of PHP i had before was 5.1.2, which i had no problem with.
how come it happened with 5.1.4?