Sunday, 25 August 2013

Redirect user if record doenst exist in database

Redirect user if record doenst exist in database

I'm working on a small php script which call records from databse. I'm
using this code : ` mysql_query("select * from kalimat where cat=$id order
by id");
` I want to redirect user to 404 error page if the cat id doesnt exist in
the database !

No comments:

Post a Comment