<?php require_once(\"../config.php\"); require_once($absolutePath . \"class/mysql.php\"); class modules { var $db; var $in = 0; function modules() { } function get_modules() { $this->db->query(\"select * from modules order by place\"); if($this->db->num_rows == 0) { } else { while($row = $this->db->fetch_array()) { $this->in++; } } } function build_menu() { for($a = 0; $a <= $this->in; $a++) { print(\"<a href=\"index.php?id=\" . $this->modules[$a][1] . \"\">\" . $this->modules[$a][2] . \"</a><br />n\"); } } function return_module($id) { $this->db->query(\"select * from modules where id='\". $id .\"'\"); while($row = $this->db->fetch_array()) { return $row[3]; } } function list() { $this->db->query(\"select * from modules order by place\"); if($this->db->num_rows == 0) { } else { while($row = $this->db->fetch()) { print(\"<tr><td>\".$row[0].\"</td><td>\".$row[1].\"</td><td>\".$row[2].\"</td><td>\".$row[3].\"</td></tr>\"); } } } } ?>
pokazuje błąd w linijce 42 tam gdzie zaczyna się funkcja list()
Kod
Parse error: parse error, expecting `T_STRING' in /home/bela/public_html/bela/class/modules.php on line 42
może ktoś wie czemu?