Jump to content

Check box results


Onloac

Recommended Posts

I haven't coded in PHP for a while and I'm trying to refresh my memory on some things. =( I was hoping someone here could help me with a problem. I have a script I made to post articles to my database, one of the columns includes a number. 1 (yes) and 0 (no). Now i'm using this to keep track of what articles have been approved. When I edit an article I want to include a check box. If my database field contains 1 its checked... if its 0 then its not checked. how would I go about doing that?

Link to comment
https://forums.phpfreaks.com/topic/209204-check-box-results/
Share on other sites

Thanks that worked great!

 

one more quick question!

I have a categories listed from my database on a page with a form to edit them. the problem i'm having is when i edit them, the changes dont take place until i refresh the page. I had it working before so I would see the changes without refreshing but I lost my old code. =( any idea what I have to. I think it was something about database queries. I can't remember though. =(

Link to comment
https://forums.phpfreaks.com/topic/209204-check-box-results/#findComment-1092505
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.