In how many ways we can retrieve the date in the result set
of mysql using PHP?

Answers were Sorted based on User's Feedback



In how many ways we can retrieve the date in the result set of mysql using PHP?..

Answer / vasan.

4 ways

1. mysql_fetch_rows
2. mysql_fetch_object
3. mysql_fetch_assoc
4. mysql_fetch_array

Is This Answer Correct ?    57 Yes 4 No

In how many ways we can retrieve the date in the result set of mysql using PHP?..

Answer / bijay.behera9911033016@orissa

1. mysqli_fetch_rows
2. mysqli_fetch_object
3. mysqli_fetch_assoc
4. mysqli_fetch_array

Is This Answer Correct ?    22 Yes 4 No

In how many ways we can retrieve the date in the result set of mysql using PHP?..

Answer / naresh

first n second both are right

Is This Answer Correct ?    12 Yes 0 No

In how many ways we can retrieve the date in the result set of mysql using PHP?..

Answer / ankish kumar

What is the difference between all these 4 versions:
1. mysqli_fetch_rows
2. mysqli_fetch_object
3. mysqli_fetch_assoc
4. mysqli_fetch_array

Is This Answer Correct ?    9 Yes 1 No

In how many ways we can retrieve the date in the result set of mysql using PHP?..

Answer / binoyav

1) mysql_result: returns the value of a field in a recordset.
Note: This function is slower than mysql_fetch_row(), mysql_fetch_array(), mysql_fetch_assoc() and mysql_fetch_object()
2) mysql_fetch_array(): function returns a row from a recordset as an associative array and/or a numeric array. Note: Its a misconception that, this function will return all rows. Its completely wrong, it will return only a single row at a time as like mysql_fetch_row
3) mysql_fetch_row(): returns a row from a recordset as a numeric array
4) mysql_fetch_assoc(): returns a row from a recordset as an associative array. No numerical indices available for this
5) mysql_fetch_object(): returns a row from a recordset as an object

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More PHP Interview Questions

Can anyone explain about join?

3 Answers  


hi, i am new for php I want to know where to create & how to run phpscript programme in LAMP?

2 Answers  


What is php built on?

0 Answers  


what is code for email sending through localhost pc..?

2 Answers  


Which php framework is in demand?

0 Answers  






What is difference between required and include in php?

0 Answers  


What is php resource type?

0 Answers  


What is the sign to start variables in PHP?

0 Answers  


How to redirect a url from http to https in .htaccess?

0 Answers  


How can you make a connection with mysql server using php?

0 Answers  


How is it possible to know the number of rows returned in the result set?

0 Answers  


How to get complete current page url in php?

0 Answers  


Categories