|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-04 13:45 UTC] derick@php.net
[2004-03-04 15:08 UTC] leonard at den dot ottolander dot nl
[2004-03-04 16:33 UTC] leonard at den dot ottolander dot nl
[2004-03-04 16:35 UTC] derick@php.net
[2004-03-04 16:40 UTC] leonard at den dot ottolander dot nl
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 12:00:01 2025 UTC |
Description: ------------ dbx gives a syntax error when using COUNT: SELECT COUNT (`ID`) FROM `category` WHERE `packageID` = 593 You have an error in your SQL syntax near '(`ID`) FROM `category` WHERE `packageID` = 593' at line 1 First seen on Red Hat Linux 9, php-4.2.2, but reproduced on Fedora Core 1, php-4.3.4. Reproduce code: --------------- $q = ...COUNT...; echo $q; $res = dbx_query($link, $q); if ($res == 0) { echo dbx_error($link); }