How to store values to array from mysql database in php?



How to store values to array from mysql database in php?..

Answer / Ram Kishor Sharma

To store values from a MySQL database into an array in PHP, you can use functions like mysqli_fetch_array() or mysqli_fetch_assoc(). These functions return the fetched row as an associative array or indexed array.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MySQL Interview Questions

How do I run mysql?

1 Answers  


What you can use regular expression for in mysql?

1 Answers  


How to analyze tables with 'mysqlcheck'?

1 Answers  


A select query over a large table runs very slow because of the growing number of entries in that table. What different measures could be taken to improve speed?

5 Answers  


What are the advantages of myisam over innodb?

1 Answers  


What is the use of mysqli_query?

1 Answers  


How can you move the master database

1 Answers   IBM,


How to returns the columns and column information pertaining to the designated table.

1 Answers  


What is DML in MySQL?

1 Answers  


Why is the basic difference between left join, right join and inner join?

1 Answers  


How to shutdown mysql server?

1 Answers  


How to get a list of all tables in a database?

1 Answers  


Categories