topical media & game development

talk show tell print

server-php-sql-example-connect.php / php



  <h4>connect -- php/mysql</h4>
  <br>
  <?php
  mysql_connect("localhost", "root", "hush") or die(mysql_error());
  echo "Connected to MySQL<br />";
  mysql_select_db("local") or die(mysql_error());
  echo "Connected to Database<br />";
  ?>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.