what's wrong with my code?

admin

Administrator
Staff member
Hi guys,

I'm trying to show a particular record from a mysql database in php but mysql doesn't accept my querry. It's the first thing i've made with mysql and php.

This is the code:
$result = mysql_query ("SELECT FROM nieuws " . "WHERE ID=$heelbericht");

This is the error
You have an error in your SQL syntax near 'FROM nieuws WHERE ID=21' at line 1

Does anyone know what's wrong??
any suggestions are welcome!
 
Back
Top