Converting mysql_fetch_array results to multidimensional array

1
2
<?php
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Enjoy!

1 Response

mysql extension has been deprecated as of PHP 5.5.... and you do know that you can access the array by both key and index values correct? I don't see what your code accomplishes that a simple while($row = $sql_result_set->fetch_assoc()) {$array[] = $row;} doesn't do already?

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.