i am having an error while trying to log in ... and i have updated my databaseconnection.php but im not too sure about my host it says myhost is unknown ....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
function connectToDB(){
$host="localhost:3306"; // Host name
$username="root"; // Mysql username
$password=""; // Mysql password
$db_name="mass_mailer"; // Database name
// Connect to server and select database.$con=mysqli_connect("$host","$username","$password")ordie("cannot connect");mysql_select_db("$db_name")ordie("cannot select DB");return$con;
}
?>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i am having an error while trying to log in ... and i have updated my databaseconnection.php but im not too sure about my host it says myhost is unknown ....
It seems that your config is wrong... can you post some bits of your code in order to have a better understanding?
function connectToDB(){
$host="localhost:3306"; // Host name
$username="root"; // Mysql username
$password=""; // Mysql password
$db_name="mass_mailer"; // Database name
}
?>
hey it writes cannot connect to Db and my database name is the right one...... what to do?
i am also working the same blog and want that feature but i wanna take some advices from you guys about it that is this feature helpful for me or not.