Ive tried just running the php script in the browser and I get the above error message. Heres my code
<?php require "config.php"; $model = $_REQUEST['model']; $select = 'SELECT *'; $from = ' FROM module'; $where = ' WHERE type = $_REQUEST['model']; $queryResult = mysql_query($select . $from . $where) or die("Error!".mysql_error()); while $row = mysql_fetch_array($queryResult)) { echo $row['module_id'] . "\n" . $row['module_name']; mysql_close($conn); ?>
use a code editor with syntax highlighting.
It tells you that ou failed to keep track of your quotes.
You forgot one at the end of this:
$where = ' WHERE type = $_REQUEST['model'];