Search results

  1. R

    how do i connect to mysql with php?

    You just forget one thing ! Where is the database name ? How to fix that : <?php $host = "localhost"; $user = "root"; $pass = "root"; $db = "Your Data Base Name"; $con= mysql_connect($host , $user, $pass) or die('Unable to connect'); mysql_select_db ($db,$con) or die('Unable to select'); ?>...
  2. R

    how do i connect to mysql with php?

    You just forget one thing ! Where is the database name ? How to fix that : <?php $host = "localhost"; $user = "root"; $pass = "root"; $db = "Your Data Base Name"; $con= mysql_connect($host , $user, $pass) or die('Unable to connect'); mysql_select_db ($db,$con) or die('Unable to select'); ?>...
Back
Top