CI PHP if statement w/ sql syntax
Posted
by Kevin Brown
on Stack Overflow
See other posts from Stack Overflow
or by Kevin Brown
Published on 2009-07-26T23:11:14Z
Indexed on
2010/05/09
5:28 UTC
Read the original article
Hit count: 272
This is a quick syntax question...
I need to block out an HTML element if two SQL statements are true w/ php.
If the status = 'closed', and if the current user is logged in. I can figure out the calls, I just need to see an example of the syntax. :)
So, If SQL status=closed, and if current_user=is_logged_in()...something like that.
© Stack Overflow or respective owner