Falscher rid, Umleitung auf andere Seite

pid =
____________________
MySQL-Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND (Pg_kanr=) AND (Pg_nr=) ) ORDER BY Pg_monr ASC,Pg_kanr ' at line 7
Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/www/webextern/tutorserver/sensorlab/php/test_pid2.php on line 13 MySQL-Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND (Pg_kanr=) AND (Pg_nr=) ) ORDER BY Pg_monr ASC,Pg_kanr ASC,Pg' at line 11
Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/www/webextern/tutorserver/sensorlab/php/test_pid2.php on line 28