Jump to content

mangtas_ka

New Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by mangtas_ka

  1. I've also try $conn = mysql_connect($host,$username,$password) or die(mysql_error("Unable to Connect")); same result
  2. Hello everybody, I am new to php, I have a question for you guys. why I've got an empty page. <?php //MySQL database connection //connect_db.php $host="localhost"; // Host name $username="root"; // Mysql username $password="logans1966"; // Mysql password $db_name="Inventory"; // Database name $conn = mysql_connect("$host","$username","$password") or die(mysql_error()); mysql_select_db("$db_name")or die("cannot select DB"); if ($conn) { echo ("Connection is succeed"); } else { echo ("Connection is fail"); } ?> thanks in advance cris
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.