How many ways to retrieve data in the result set of MYSQL using PHP?

lindanancy

New member
Joined
Jan 22, 2013
Messages
3
Points
0
how many ways we can retrieve data in the result set of MYSQL using PHP?
 

hoangvu

New member
Joined
Jun 6, 2012
Messages
1,835
Points
0
how many ways we can retrieve data in the result set of MYSQL using PHP?
Hi,

I think that we have more than 2 ways to retieve data using PHP
using mysql_fetch_array or mysql_fetch_assoc.
using Php array to fetch database from mysql.
can you give some good ideas than me :D
 

Inquestor

Well-known member
Joined
Feb 1, 2013
Messages
495
Points
63
Hey,

The mysql_... extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQL extension should be used.

You should use prepared statements to avoid SQL Injections. See php.net mysqli for more information
 
Newer threads
Replies
2
Views
3,279
Replies
2
Views
5,914
Replies
2
Views
3,279
Replies
5
Views
4,227
Latest threads
Replies
1
Views
69
Replies
0
Views
131
Replies
0
Views
39
Replies
2
Views
588
Replies
4
Views
634
Recommended threads
Replies
6
Views
3,342
Replies
3
Views
5,500
Replies
1
Views
2,490

Latest postsNew threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top