mysqli_result::fetch_array
only fetches a single row as an array, you are looking for
mysqli_result::fetch_all
to fetch all the rows.
More info here
More Related Contents:
- inserting information and image in php and mysql
- mysqli or die, does it have to die?
- MySQL vs MySQLi when using PHP [closed]
- Fatal error: Call to undefined function mysqli_connect()
- PHP error: “Cannot pass parameter 2 by reference”
- How to get count of rows in MySQL table using PHP?
- Correct way to use LIKE ‘%{$var}%’ with prepared statements?
- How to bind mysqli bind_param arguments dynamically in PHP?
- What is the difference between PHP echo and PHP return in plain English?
- mysqli fetch_all() not a valid function?
- Dynamic select mysqli query with dynamic parameters returns error doesn’t match number of bind variables [duplicate]
- Headers and client library minor version mismatch
- MySQLi Bind Param with an array for IN [duplicate]
- How to check if a row exist in the database using PDO?
- PHP PDO and MySQLi [duplicate]
- PHP + MySql + Stored Procedures, how do I get access an “out” value?
- mysqli query results to show all rows
- mysqli_real_connect(): (HY000/2002): No such file or directory
- mysqli + xdebug breakpoint after closing statement result in many warnings
- INSERT query produces “Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given”
- php password_verify() hash and pass won’t match
- How to use mysqli_query() in PHP?
- PHP to MySQL SSL Connections
- Call to undefined method mysqli_result::fetch()
- Which is fastest in PHP- MySQL or MySQLi?
- prepared parameterized query with PDO
- How to make mysqli connect function?
- Dynamically bind mysqli_stmt parameters and then bind result
- Check to see if an email is already in the database using prepared statements
- How to insert into MySQL using mysqli