Which is the best method to fetch the data from mysql?
1.mysql_fetch_array()
2.mysql_fetch_object()
3.mysql_fetch_row()
4.mysql_fetch_assoc()
Answer Posted / vinoth
My Opinion is at the developer point of view
mysql_fetch_assoc() is the Best method to fetch data but at
the same time at the user point of view we can use
mysql_fetch_object()for faster execution of the data.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to check a variable is array or not in php?
What is the difference between the functions strstr() and stristr()?
What is curl php?
How come the code works, but doesn’t for two-dimensional array of mine?
How to check if a string contains a character or word in php?
What is an anti csrf token?
What are the encryption functions in php?
where do we use htaccess?
What is var_dump?
How to call php function from javascript using ajax?
Which function you can use in php to open a file for reading or writing or for both?
Can you define an argument as a reference type?
What is cURL in PHP?
Explain briefly about a search-friendly site looks like?
Can you specify the "new line" character in single-quoted strings?