Results 1 to 3 of 3

Thread: Retrieving Data from Database to use in HTML

  1. #1
    Join Date
    Dec 2008
    Posts
    28
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default Retrieving Data from Database to use in HTML

    I'm trying to create a edit form so i can edit my users.
    But i use numbers to say what they can do.

    1 = yes
    0 = no

    but when im getting the information
    its having both of them checked
    because its the same statement.

    is there a way that i can make the other one not check?
    or is there a way to do that in php?

    Javascript? HTML?

  2. #2
    Join Date
    Feb 2009
    Posts
    73
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    You wanna create a form, right?

    If you wanna add a flag like that, I suggested you using HTML (list)

    List Value : 0/1
    then send that form through PHP using Post/Get method

  3. #3
    Join Date
    Dec 2008
    Posts
    28
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default

    Quote Originally Posted by sysout View Post
    You wanna create a form, right?

    If you wanna add a flag like that, I suggested you using HTML (list)

    List Value : 0/1
    then send that form through PHP using Post/Get method
    I don't think that would work.
    Because there are different names to the columns.

    Im just trying to pull the information so the administrative user will know what it was so they don't have to go through all the steps again.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •