Jump to content

Checkbox's, Forms and MySQL

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
Bioshox

Bioshox

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 207 posts
Hey everyone!

#2
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
I think something is missing here?
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#3
Bioshox

Bioshox

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 207 posts
Apparent Browser Fail!

Okay,

I'm looking at having a Guest Message that is shown to guest and is personalized via the ACP;

Id like there to be a check box option that asks the admin if they want the guest message to be displayed or not.

But I'm not sure how to do this, I know how to code the IF statement, but id like the values of the check box to be stored in a MySQL database, and the check box to be checked or unchecked accordingly to the users selection, iv never really used any check boxes in my forms before.

Thank's in advance.

#4
Bioshox

Bioshox

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 207 posts
Anybody got an idea about this?!

#5
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
Well in the database, if I understand you correctly, would have a value for "showing" or not... boolean or int I guess. 1 for yes 0 for no. Just be able to change this in your current admin panel. If it's a 1 then display it :]

Post up some code, we like to look at pretty code!