Question:
Which is a better database to connect to php?
anonymous
2009-01-26 07:39:25 UTC
I am building a website and plan to use a database and php. but what is easier to connect? Php to MS SQL 2005 - 08? or MySQL? any sources on how?

which is more simpler?
Five answers:
JuCo
2009-01-26 07:53:58 UTC
There really is little difference in complexity when scripting PHP to connect and query either. As for which database you use, you should probably conduct some research to discover the pros and cons of both. I personally use MySQL.



MsSQL PHP docs: http://php.net/mssql



MySQL: http://php.net/mysql



Although, you should probably be doing it OOP style, with MySQLi (improved): http://php.net/mysqli
anonymous
2009-01-26 07:49:59 UTC
Only the connection string changes - neither one is "difficult", it's just a line of text.



MySQL is the better database, but if the site you're on only has MSSQL you have no choice. It's usually Windows-ASP-MSSQL and Linux-PHP-MySQL, but some hosting companies may not do it that way. If I had the choice I'd definitely go with MySQL. (And an ADO connection, but that's just me.)
?
2016-10-29 04:41:59 UTC
you're lacking the database call. you need to use the recent mysql library for extremely own homestead page, it extremely is mysqli instead of mysql. This mysql library which you're using will quickly be deprecated. it is the recent way of connecting. @ $db = new mysqli('dblocation' ,'username','password', 'dbname');
doomkitty
2009-01-26 07:48:39 UTC
Normal MySQL will most likely be the easiest to get help with. do you have both those downloaded?

WampServer an easy way to download them.

how are you making the site?
b-i-n-g-o
2009-01-26 11:15:58 UTC
mysql is what most people uses


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...