how can i pass mysql_fetch_array() to array()
If you want to use it for multiple results you may want to assign within the while statement. Such as
$query = mysql_query("SELECT * FROM users");
$resultSet = array();
while($result = mysql_fetch_array($query))
{
$resultSet[] = $result;
}
did you mean:
$variable = mysql_fetch_array($result); //$variable is now an array
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With