-3

Li shows an error in the control panel is a fault in the line No. 70 in the php file that is the line

while ($ result_class = mysql_fetch_array ($ query_class)) {

I hope help me

Thamilhan
  • 12,752
  • 5
  • 35
  • 59

2 Answers2

0

Use the following correction

while ($result_class = mysql_fetch_array ($query_class)) {

There should be no gap between $ and variable name

Apoorv
  • 231
  • 1
  • 8
  • When the space made between $ query_class afternoon and this error Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in /home/a9736557/public_html/admin/form/in_class.php on line 70 – user6418991 Jun 03 '16 at 10:26
0

Without seeing the rest of your code, that error message is consistent with $query_class being a boolean false, which means whatever created it failed. We'd need to know how it was created before we could really advise. Try popping

die(var_dump($query_class));

before the line you've quoted and see what it says.

And as a bonus, please don't be using mysql_ functions, they're already obsolete and for good reason.

gedq
  • 578
  • 7
  • 19
  • $query_class=mysql_query("SELECT * FROM `site-class` WHERE class_type='$class_type' and in_class='root' ORDER BY class_sort"); while($result_class=mysql_fetch_array($ query_class)){ – user6418991 Jun 03 '16 at 10:31
  • Then try putting die(mysql_error()); after $query_class= line and before the while one, see what error message you get. – gedq Jun 03 '16 at 10:34
  • Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/a9736557/public_html/admin/form/in_class.php on line 70 – user6418991 Jun 03 '16 at 10:41