Login Register


PHP and MySQL filter_list
Author
Message
RE: PHP and MySQL #8
(07-30-2014, 02:16 PM)Anima Templi Wrote: I have pretty much all the same things to say as above, BUT I'll recommend you use PDO for the db integration instead of mysqli. Why this? PDO provides single interface across multiple databases. That means you can use multiple DB without using mysql_query for mysql, mssql_query for MS sql etc. Just use something like $db->query("INSERT INTO..."). No matter what DB driver you are using.

http://php.net/manual/en/intro.pdo.php

That really was a helpful and qualitative reply. :Thumbs-Up: Yes. I am going to use PDO.
PDO has a better API. It has some good features, which protect your code from SQL-injection attacks. Also, yes, your code is more safe. So, that's true that PDO is better choice than MySql way. ( than mysql functions )


Thank you ! :Smile:
______________________________________________________________________________________________________________

@zomgwtfbbq ,
Thank you too ! :Smile: :Thumbs-Up: I appreciate that you recognize my effort.

I will check it.
(This post was last modified: 07-30-2014, 04:36 PM by Pk2Global.)
[Image: T4OUWZ1.png]


Reply





Messages In This Thread
PHP and MySQL - by Legolas - 07-30-2014, 08:05 AM



Users browsing this thread: 1 Guest(s)