Any idea why this is not working:
$result = mysql_query("SELECT cust_name, description from `projects` where project_no = '".$project_no."'") or die(mysql_error());
while ($row = mysql_fetch_array($result)) {
echo json_encode(
array("message1" => '".$row['cust_name']."',
"message2" => '".$row['description']."')
)
}
This is the error: Parse error: syntax error, unexpected T_STRING, expecting ')' in /admin/customerfilter.php on line 14
Line 14 is the line starting with "array..."
Thanks :)