Help - Search - Members - Calendar
Full Version: Need Help With The Following Error "warning: Mysql_pconnect"
Zymic Webmaster Forums > Zymic Free Web Hosting > Databases & MySQL
whitestar
I need some help.

Im new to using zymichost and have uploaded my site files and mysql database. My index.html page is fine but when i go to any of the php pages that connect to the database I get this error
QUOTE
Warning: mysql_pconnect() has been disabled for security reasons in /www/zymichost.com/t/h/e/thesecretsoutnow/htdocs/Connections/the_secrets_out.php on line 9

Fatal error: in /www/zymichost.com/t/h/e/thesecretsoutnow/htdocs/Connections/the_secrets_out.php on line 9


which refers to the connection to the database "the_secrets_out.php". This is what the code looks like for the connection
CODE
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_the_secrets_out = "localhost";
$database_the_secrets_out = "************";
$username_the_secrets_out = "************";
$password_the_secrets_out = "************";
$the_secrets_out = mysql_pconnect($hostname_the_secrets_out, $username_the_secrets_out, $password_the_secrets_out) or trigger_error(mysql_error(),E_USER_ERROR);
?>


and line 9 specificaly refers to
CODE
$the_secrets_out = mysql_pconnect($hostname_the_secrets_out, $username_the_secrets_out, $password_the_secrets_out) or trigger_error(mysql_error(),E_USER_ERROR);

Please help!!
ssfdre38
you have to change mysql_pconnect to mysql_connect
whitestar
Thanks so much that did the trick
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.