Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Best way to connect to MySQL 1

Status
Not open for further replies.

Zych

IS-IT--Management
Joined
Apr 3, 2003
Messages
313
Location
US
I have been doing some Internet research on how to connect to a MySQL database. It seems that there are two ways to do this. One is mysql connect() or using ODBC. Which one is best or are they the same? I would imagine having a direct connection would be faster but I am new to PHP. I have used ColdFusion using ODBC with MS Access but this is a little different.

Thanks,

Zych
 
mysql_connect is the best way...uses the native apis to make the connection...odbc will also work but uses more overhead...

Bastien

Cat, the other other white meat
 
That is what I thought. Thank you for replying so quickly.

- Zych
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top