It could be because you need a space before the * in the select statement.
Also the variables you have below that I gave you I don't know if they are right. I gave you $id and $name, I don't know what fields you put in the table in your database. You might want to post that here so I can see that.
Well we are making headway now on it for you now :-)
|