View Single Post
  #4 (permalink)  
Old 08-18-03, 12:00 PM
Ryan's Avatar
Ryan Ryan is offline
Coding Addict
 
Join Date: May 2003
Location: Virginia
Posts: 391
Thanks: 0
Thanked 8 Times in 3 Posts
This is the code I use to connect to databases:
PHP Code:

<?php

$db 
mysql_connect("serveraddy""username""password") or die(mysql_error());

mysql_select_db("dbname"$db) or die(mysql_error());
?>
__________________
Ryan Huff
iNET Interactive, LLC

http://www.inetinteractive.com
Reply With Quote