Question
DW and Database conections
Hello
I´m using DW8 and easyphp on my pc, and my page works just fine, with dynamic elements
The code for the connection is:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_connDB = "localhost";
$database_connDB = "dados";
$username_connDB = "admin";
$password_connDB = "***********";
$connDB = mysql_pconnect($hostname_connDB, $username_connDB, $password_connDB) or trigger_error(mysql_error(),E_USER_ERROR);
?>
In server for the webpage, the CPanel give´s me this code to connect to Database:
$dbh=mysql_connect ("localhost", "nunomath_admin", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("nunomath_dados");
My question is, what should i do to make this work???
Best regards
Mathiotte
I´m using DW8 and easyphp on my pc, and my page works just fine, with dynamic elements
The code for the connection is:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_connDB = "localhost";
$database_connDB = "dados";
$username_connDB = "admin";
$password_connDB = "***********";
$connDB = mysql_pconnect($hostname_connDB, $username_connDB, $password_connDB) or trigger_error(mysql_error(),E_USER_ERROR);
?>
In server for the webpage, the CPanel give´s me this code to connect to Database:
$dbh=mysql_connect ("localhost", "nunomath_admin", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("nunomath_dados");
My question is, what should i do to make this work???
Best regards
Mathiotte
