php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "fetch_assoc"

What are the advantages of using mysqli_fetch_assoc or $result->fetch_assoc over mysqli_fetch_array in PHP?

Using mysqli_fetch_assoc or $result->fetch_assoc over mysqli_fetch_array in PHP provides the advantage of fetching data as an associative array, which...

How can the error "Fatal error: Call to a member function fetch_assoc() on a non-object" be fixed in PHP when using MySqli?

The error "Fatal error: Call to a member function fetch_assoc() on a non-object" occurs when trying to call the fetch_assoc() method on a variable tha...

Can multiple_query be used in PHP if fetch_assoc() and mysqli_fetch_all are used in the same script?

When using both fetch_assoc() and mysqli_fetch_all in the same script, it may cause conflicts as they both fetch data from the database result set. To...

In PHP, what is the significance of using FETCH_ASSOC when retrieving data from a database, and how does it impact array structure?

When retrieving data from a database in PHP, using FETCH_ASSOC in the fetch method is significant because it fetches each row as an associative array,...

What are the advantages of using mysqli_result::fetch_assoc over mysqli_result::fetch_array(MYSQLI_BOTH) in PHP?

When using mysqli_result::fetch_array(MYSQLI_BOTH), the returned array will contain both numeric and associative keys for each row of data retrieved f...

Showing 11 to 15 of 153 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 30 31 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.