View Single Post
Old 03-25-2012, 12:59 AM   PM User | #4
Mishu
Banned

 
Join Date: Mar 2012
Posts: 306
Thanks: 1
Thanked 28 Times in 28 Posts
Mishu can only hope to improve
Quote:
Originally Posted by Vernier View Post
Could you give me an example please, not too good with mysql! :P
The IF has nothing to do with mysql. It's php code. You can use the IF to check the current value of active and if it = 1 then create the link like you already do. You are already using column values from a row in your code so getting the value of active will be the same. The php online manual shows how an IF block works.
Mishu is offline   Reply With Quote