If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > when to use ODBC

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-10-11, 06:58
zbath81 zbath81 is offline
Registered User
 
Join Date: Nov 2011
Posts: 15
when to use ODBC

hi

would like to ask a question that might be silly but am still confused...
am trying to draw my system architecture, and am not sure how to provide database connectivity......

am developing a java web application, and i have setup my local web server using apache, php and mysql....

now php is a server scripting language that also can provide connection to mySQL database....what about ODBC, when should i use ODBC to provide connectivity, or is it not necessary if am using PHP.

am sorry for the question, i need to get clearer picture for drawing the architecture of the system....

thanks in advance
Reply With Quote
  #2 (permalink)  
Old 11-10-11, 07:13
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
I'd suggest you use ODBC when there is no native driver for the db within the language, or if you are developing an application which could 'talk' to multiple data store types.
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 11-11-11, 03:55
zbath81 zbath81 is offline
Registered User
 
Join Date: Nov 2011
Posts: 15
so it is not necessary to use any driver for the connectivity if am using 1 data store type......

using PHP only is fine?
Reply With Quote
  #4 (permalink)  
Old 11-11-11, 06:14
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
it all depends on the build of PHP, what modules it has and so on.
I'd expect virtually all PHP builds to be able to connect to MySQL through either the old style native functions
PHP: MySQL - Manual
or the 'improved' extension
PHP: Mysqli - Manual
If I remember correctly all builds of PHP support SQLLite since version 5

a list of native extensions can be found here
PHP: Vendor Specific Database Extensions - Manual
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On