PHP MySQL Page Template


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



Copy this code and paste it in your HTML
  1. <?php
  2. /*--------GLOBAL PROCEDURES--------*/
  3. require "configFile.php";
  4. mysql_connect($host,$username,$password) or die
  5. ("Could Not Connect".mysql_error());
  6. mysql_select_db($db) or die ("Could Not Connect".mysql_error());
  7.  
  8. /*--------SPECIFIC PROCEDURES-------*/
  9.  
  10. /*--------CLOSING PROCEDURES-------*/
  11. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.