Re: Table sorting with PHP/MySQL
| From: | James Lyon | Date: | Tue, 30 May 2000 14:01:03 +0000 |
| Subject: | Re: Table sorting with PHP/MySQL | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-630@lists.php.net to get a copy of this message | ||
> Thanks for the code. A problem seems to be the line 'while($row =
> mysql_fetch_array($result, MYSQL_ASSOC)) {' where it throws up an error
>
> Parse error: parse error in /home/testsour/html/mysql/tips/admin.php3 on
> line 357 which is of course the above mentioned line
Ooops, looks like one too many close)parentheses after the MYSQL_ASSOC.
> work i.e. what does MYSQL_ASSOC do?
Just tells it you only want an associative array -- the manual has full details
of the arguments to the function. It's optional, and if omitted defaults to both
associative and numbered.