Re: Table sorting with PHP/MySQL
| From: | Simon Steed | Date: | Tue, 30 May 2000 14:18:05 +0000 |
| Subject: | Re: Table sorting with PHP/MySQL | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-633@lists.php.net to get a copy of this message | ||
Heh heh, didn't spot that! Now I get more errors!
Warning: Wrong parameter count for mysql_fetch_array() in /home/testsour/html/mysql/tips/admin.php3 on line 357
Parse error: parse error in /home/testsour/html/mysql/tips/admin.php3 on line 357
I am really trying to find the error & understand whats going on here, honest!
Simon
At 15:01 30/05/00 +0100, James Lyon wrote:
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.