How do I display/compare a dynamic value of a mysql row in a if statement?

Posted by Ralph The Mouf on Stack Overflow See other posts from Stack Overflow or by Ralph The Mouf
Published on 2010-03-25T21:02:10Z Indexed on 2010/03/25 21:03 UTC
Read the original article Hit count: 135

Filed under:
|
|
|
|

I have a checkboxes on my site that when unchecked, update their row in in the db as unchecked, and if checked,update their row in the db as checked. I am creating an ifstatement that will commence with its command if checked, and not if unchecked. I have echoed the variable and it is holding the proper value (checked or unchecked) but not sure if I am syntactically correct on displaying the state of the row in the db.

This is what I am trying and will not work. I am new at php still and thank you very much for any help.

if($auth->check_prof == 'checked'){// do the stuff in here}

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql