topical media & game development

talk show tell print

basic-ajax-12-connect.php / php



  <?php
  define ("MYSQLHOST", "localhost");
  define ("MYSQLUSER", "root");
  define ("MYSQLPASS", "Toby");
  define ("MYSQLDB", "tasks");
  
  function dbConnect() {
  db = mysql_connect(MYSQLHOST, MYSQLUSER, MYSQLPASS);
  
  if (!db) {
          return false;
          }
  else {
          mysql_select_db (MYSQLDB, db);
           }
  return db;
  }
          
  ?>


(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.