The next line is $ sql2's value assignment, but an error is reported during the running of the program, prompting that $ sql2 is not declared. what is going on?
Source: Internet
Author: User
The previous line is $ sql2's value assignment, but an error is reported during the running of the program, prompting $ sql2 not declared. what is going on? $ Sql2 = & quot; selectcount (id) fromemp & quot; $ sqlHelper-& gt; execute_dql_fenye ($ sql1, $ sq12, $ fenyePage ); $ sqlHelper-the previous row is the value assigned by $ sql2, but an error is reported during the running of the program, prompting that $ sql2 is not declared. what is going on?
$ Sql2 = "select count (id) from emp ";
$ SqlHelper-> execute_dql_fenye ($ sql1, $ sq12, $ fenyePage );
$ SqlHelper-> close_connect ();
------ Solution --------------------
Your second line is sq12 and sq 12.
------ Solution --------------------
Well, haha, one is SQL 2 and the other is sq 12.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.