What is the use of mysqli_fetch_array?



What is the use of mysqli_fetch_array?..

Answer / Dileep Kumar Pandey

mysqli_fetch_array() is a function in PHP that fetches a result row as an associative array, a numeric array, or both. This is used to retrieve data from a MySQL database after executing a query.nnExample:n```phpn$result = mysqli_query($conn, $sql);n$row = mysqli_fetch_array($result, MYSQLI_ASSOC);n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MySQL Interview Questions

What is a simple query?

1 Answers  


Explain the difference between delete and truncate.

1 Answers  


What is the function of mysqldump?

1 Answers  


Explain TIMESTAMP DEFAULT ?2006:09:02 17:38:44′ ON UPDATE CURRENT_TIMESTAMP.

1 Answers  


What are the steps involved in query processing?

1 Answers  


How do I view a mysql database?

1 Answers  


How do you index just the first four bytes of the column?

2 Answers  


How to create trigger in mysql phpmyadmin?

1 Answers  


Why is mysql popular?

1 Answers  


How to allow the user "sonia" to connect to the server from localhost using the password "passwd". Login as root. Switch to the mysql db. Give privs. Update privs.

1 Answers  


What can you do with mysql?

1 Answers  


How do I truncate all tables in mysql?

1 Answers  


Categories