Jump to content

Zimdale

New Members
  • Posts

    1
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Zimdale's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. This is why I usually try to completely avoid having anything "NULL". Why not make it easier with a simple 0 or 1. Then through php all you have to do is check if the answer chosen has a value of one. Could be as easy as a count in sql. SELECT COUNT(*) FROM answer_table WHERE ID=selected_answer_id AND correct=1 if the count turns up 0 you know it's wrong, if it comes up 1 then they got it right, then a simple counter using a session variable can add up the total score at the end.
×
×
  • 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.