If the id doesn't exist how to redirect to id=1?

Codes here !

Moderators: macek, egami, gesf

Post Reply
User avatar
Nullsig
php-forum Fan User
php-forum Fan User
Posts: 981
Joined: Thu Feb 17, 2011 6:52 am
Location: Racine, WI

Re: If the id doesn't exist how to redirect to id=1?

Post by Nullsig » Thu Aug 09, 2012 12:31 pm

SELECT * FROM demotivators WHERE id IN ('$id',1) ORDER BY id DESC LIMIT 1

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest