Advertisement
slovacus

Conexion a BD PHP

Jul 28th, 2011
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. function connectDb() {
  2.     // connect and set the
  3.     // working db
  4.     if (mysql_connect( DBHOST, DBUSER, DBPWD ) && mysql_select_db( DBNAME )) return true; else return false;
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement