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('', 'root', 'rhi120281');
  3. if (!$dbconnect) {
  4. exit('Sorry there was a problem connecting to MYSQL');
  5. }
  6. ?>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.