Incorrect syntax is the most common offender for newbies. Possibly error lies somewhere in:
- You did not spell SELECT correctly. While typing rapidly, it is very common to misplace an E somewhere.
- You did not include the asterik (*). It Should be "SELECT * FROM table WHERE..."
- You declared the variable containing the query wrongly or did not call it properly. Eg: declaring $query to contain the variable and calling mysql_query to process some other variable like mysql_query($qurey).
- You did not connect to the server properly. Either you supplied incorrect login details or chose the incorrect database/table.
It will tell where you went wrong without having to spend time searching the internet.
No comments:
Post a Comment