Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. "How do I tell what to join on". You figured out the problem so stop whining about not understanding my post. Now actually try to figure out the solution ON YOUR OWN FOR ONCE. http://bit.ly/Z8xTjC I'll just leave this here. BTW, the fact that it's been a year and you still don't know the basic syntax of a join, shows me either you're not trying or you do in fact have a learning disability you won't own up to.
  2. You would have a table each for: polls, questions, possible answers, visitors/users, answers given.
  3. Check out the link in my signature on debugging SQL.
  4. I told you what you are NOT doing that is causing the problem. Did you try to do it yet? That's what I mean by refusing to even try. You always just come back and ask for more more more. You claim you can do things in minutes yet none of it works correctly.
  5. As was said before, the format hes using is Not a valid format for PHP functions.
  6. You'll want to use the DateTime library. http://us3.php.net/manual/en/book.datetime.php But mm/dd/yyyy is not a valid format to convert. Where are the dates coming from?
  7. You ask a vague question, you get a vague answer.
  8. Yes.
  9. Of course you don't, because you refuse to try to learn.
  10. Go back to your original code, the one I quoted.
  11. Sounds like the form isn't being posted. You need to do some debugging on your own, especially since you have only shown us snippets of the code. Walk through it and check the values at every step you can find, until you find it doesn't match your assumptions.
  12. You didn't tell it what to join on. It's joining every row to every other row.
  13. When you look at the URL in your address bar when you click on the link - does it have id= and then a number, or no number? It sounds like $row['id']; is not set. You can try doing a print_r($row);
  14. You have a logic problem then. You need to see if the form is submitted before replacing the session value.
  15. You'll need to store the correct answer in the session and use that one to check your form.
  16. You need to escape the single quotes within the string
  17. You'll do a query using a JOIN, then loop through one set of results. Pseudo code: $chapter = 0; $sql = "SELECT * FROM chapters INNER JOIN pages ON pages.chapterID = chapter.chapterID ORDER BY chapterNumber"; //mysql query //loop results if($chapter != $row['chapterNumber']){ $chapter = $row['chapterNumber']; //echo chapter heading } //echo page number //end loop.
  18. You make them actual numbers instead of varchar.
  19. And you have to buy the products and buy the kits and pay membership fees ... And recruit people. It's the same thing but with a product.
  20. If you know how to do a refresh what is the problem?
  21. It might help if you explain what you mean by "browser reset".
  22. Best design is not scamming people.
  23. I'm talking about the part of your code that says RETURN.
  24. You also keep saying "access the keys of an array." That means NOTHING.
×
×
  • 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.