Jump to content

Miss_Rebelx

Members
  • Posts

    71
  • Joined

  • Last visited

    Never

About Miss_Rebelx

  • Birthday 09/16/1990

Profile Information

  • Gender
    Female
  • Location
    Ottawa

Miss_Rebelx's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Ahh. Then yes your suggestion of total divided by two. You may want to incorporate the modulus for the cases where it's an odd total: http://php.net/manual/en/internals2.opcodes.mod.php
  2. Try an ORDER BY desc (then add the LIMIT again).
  3. What error message are you getting? What results are you expecting that you are NOT achieving? What's going wrong?
  4. Do you have the field set to auto increment, or some other sequence/trigger, or are you manually setting the value?
  5. I'm not sure that you can do a post action to an included page. You could, however, include the results page in the process page (that being the only include). Therefore, you go to the quiz page, it directs you to the process page upon posting results, and it includes (or rather, it displays) the results page.
  6. Pick up a PHP book, read it and do the exercises at the end of the chapters. That way you get practice, solutions, learn, there won't be designing to do, and you won't have to spend extreme amounts of time developing code you won't use again.
  7. Can you post a screenshot of what it does exactly?
  8. Not sure I'm following. "put these key/value pairs into variables in my "action" page, for example..."
  9. Correct. For example you can do this: $variable = "A hidden value";//Then you make your form here...echo "<input type='hidden' name='something' value='$variable'>";// Rest of your form and submit button So then on the next page you could do... $variable = $_POST['something'];echo $variable;//This would echo out "A hidden value"
  10. What else would you want it to contain? It can contain values of any variables from the first page through hidden fields for example.
  11. It would be in the page that receives the information from your form, so the page the form submits to. The page where your form is wouldn't have any of the posted data, unless it was also posted to from another page.
  12. This sticky thread should be of use to you: http://www.phpfreaks.com/forums/index.php/topic,37442.0.html
  13. Maybe just incorporate an if empty statement: http://php.net/manual/en/function.empty.php if (!empty ($var)) { // continue }
  14. I think I messed up when I said to use " += ". I think a string concatenation is " .= ". Can you try switching that in at the 3 places in the code? Also, switch blank() with empty().... I'm about to leave work so please accept my apologies for this.
  15. You're missing a double quote: $sql = INSERT INTO jobs VALUES Should be: $sql = "INSERT INTO jobs VALUES
×
×
  • 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.