PHP and MYSQL

Dale dale_n_ks at yahoo.com
Wed Jan 22 16:37:06 CST 2003


$db_id = mysql_connect('server', 'username');
if(!db_id)die("Could not connect to database");
mysql_select_db(database, $db_id) or die("Could not
open database");

that should work for connecting....

=====
o----------------------------------------------------o
  |     The only possible interpretation of any       |
  |     research whatever in the "social sciences"  |
  |     is: some do, some don't.                            | 
  |                                                                       |
  |      -Ernest Rutherford                                   |
  o----------------------------------------------------o

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com




More information about the Kclug mailing list