Hi guys
for PHP and MySQL
use PDO is better or Standard mysql functions?
thank you
7 replies to this topic
#1
Posted 07 May 2011 - 01:32 AM
|
|
|
#2
Posted 07 May 2011 - 01:35 AM
The standard MySQL functions in PHP have not changed nearly in a decade, they are essentially the basic function line to perform any task. MySQLi and PDO provide abstraction and more powerful options for working with a database, I would recommend them over the older set.
I've actually got a tutorial on PDO reference if you already know the older MySQL functions here:
http://forum.codecal...bstraction.html
I've actually got a tutorial on PDO reference if you already know the older MySQL functions here:
http://forum.codecal...bstraction.html
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#3
Posted 07 May 2011 - 01:49 AM
Thank you alexander
MySQLi and PDO is better yeah?
Different "MySQL" and "MySQLi" is what? what's better?
MySQLi and PDO is better yeah?
Different "MySQL" and "MySQLi" is what? what's better?
#4
Posted 07 May 2011 - 01:54 AM
The i in mysqli stands for improved, so it (hopefully) is better.
PDO is a larger database class than MySQLi, although it really depends on what you need. They both can be used in very similar ways, feel free to look at my tutorial and use it if you like the way it looks. PDO would be the option if you were looking for a more advanced extended class for databases.
PDO is a larger database class than MySQLi, although it really depends on what you need. They both can be used in very similar ways, feel free to look at my tutorial and use it if you like the way it looks. PDO would be the option if you were looking for a more advanced extended class for databases.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#5
Posted 07 May 2011 - 02:13 AM
Thank you
Can you give me a full class for PDO and MySQLi?
I need this.
Can you give me a full class for PDO and MySQLi?
I need this.
#6
Posted 07 May 2011 - 03:47 AM
It is an internal class, although you can find the documentation on my tutorial or here:
PHP: PDO - Manual
PHP: PDO - Manual
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#7
Posted 07 May 2011 - 07:46 AM
i cant found mysqli and pdo
found only mysql with pdo
please help
found only mysql with pdo
please help
#8
Posted 07 May 2011 - 07:41 PM
MySQLi can be found on the official PHP site, with its official manuals.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









