Get the full result

Posted by Eragonio on Stack Overflow See other posts from Stack Overflow or by Eragonio
Published on 2010-05-15T14:51:41Z Indexed on 2010/05/15 15:04 UTC
Read the original article Hit count: 664

Filed under:
|
|

Is there a PHP function to get the full result with a mysql query in a multidimensional array?

SELECT * FROM table

Usually I would make something like this:

$query = mysql_query = ("SELECT * FROM table");
while ($result = mysql_fetch_array($query){
    echo $result[0];
}

© Stack Overflow or respective owner

Related posts about php

Related posts about php5