Connect to mySQL


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php $dbconnect = mysql_connect('127.0.0.1', 'root', 'rhi120281');
  2.  
  3. if (!$dbconnect) {
  4. exit('Sorry there was a problem connecting to MYSQL');
  5. }
  6. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.