|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-02-27 01:45 UTC] rasmus
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 10:00:01 2025 UTC |
the code is: $result = mysql("Graduate","SELECT DISTINCT gyear FROM graduate" + " WHERE degree='$degree' ORDER BY gyear"); but got the error message: Warning: MySQL query failed: parse error near '0' at line 1 in lib_simple.html on line 6 And if I change the code to one line. (don't use the "+" operator) $result = mysql("Graduate","SELECT DISTINCT gyear FROM graduate WHERE degree='$degree' ORDER BY gyear"); It's will run successfully.