Jump to content


Photo

what is the driver?


  • Please log in to reply
3 replies to this topic

#1 kusal

kusal
  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts
  • LocationSri Lanka - Colobmo

Posted 27 July 2006 - 10:30 AM

what is the driver used in "mysql_connect" function when connecting to the MySql database ???
www.kuppiya.com

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 27 July 2006 - 10:34 AM

Well its not a driver but an extension, For PHP4 its bultin, but for PHP5 its is php_mysql.dll, however php_mysql.dll requires a file called libmysql.dll in order for the mysql extension to function. In order to use the mysql functions you'll need to enable the mysql extension for PHP5. If you are on Windows and have PHP5, this thread might be able to help you. However with other OS's you'll need to compile PHP with the mysql extension.

#3 kusal

kusal
  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts
  • LocationSri Lanka - Colobmo

Posted 27 July 2006 - 10:41 AM

so what about these things like ODBC myODBC JDBC??? what are these??? why don't we use them ???
www.kuppiya.com

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 27 July 2006 - 10:44 AM

Well you can use those, but PHP has dedicated functions for connecting to mysql. But in order to use them you'll need to compile/enable the mysql extension. If you want to use ODCB, or any of the other DBC drivers you dont use the mysql functions, but the functions for the DBC driver.

For a list of MySQL DBC drivers you can see them on this page, under the Drivers and Connectors heading.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users