Hi,
I was working in a php application with mySQL and I was testing it locally before posting it in the live site. In my computer it was working perfect but when I posted the db and the page it give me this error:
"No Database Selected"
The database in in mysql folder and the pages are in the html folder.
I think this could be in the connections page which looks like this:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_survey = "localhost";
$database_survey = "Survey1";
$username_survey = "";
$password_survey = "";
$survey = mysql_pconnect($hostname_survey, $username_survey, $password_survey) or die(mysql_error());
?>
Any idea what this could be?
Thanks,
sbayter
I was working in a php application with mySQL and I was testing it locally before posting it in the live site. In my computer it was working perfect but when I posted the db and the page it give me this error:
"No Database Selected"
The database in in mysql folder and the pages are in the html folder.
I think this could be in the connections page which looks like this:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_survey = "localhost";
$database_survey = "Survey1";
$username_survey = "";
$password_survey = "";
$survey = mysql_pconnect($hostname_survey, $username_survey, $password_survey) or die(mysql_error());
?>
Any idea what this could be?
Thanks,
sbayter