TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   MySQL Connection? (http://www.talkphp.com/general/3543-mysql-connection.html)

Randy 10-29-2008 01:31 AM

MySQL Connection?
 
Alright so I'm coding my first script with MySQL and im kinda confused already.

I'm not sure if i need to state what type of Database the script will be using?

Take vB for example:
PHP Code:

$config['Database']['dbtype'] = 'mysql'

do i need to include that in my script even tho i plan to only support MySQL?

Thanks in advance.

Best Regards,
Randy 8-)

tony 10-29-2008 03:34 AM

no you don't have to, just need to use the mysql or mysqli functions.

I haven't used vB but I am guessing that is used for interoperability independent of type of database.

sketchMedia 10-29-2008 09:35 AM

I'm guessing vB has some form of DB Abstraction Layer for cross platform compatibility.

Just using the mysql_* functions for your app will be just fine.


All times are GMT. The time now is 06:51 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0