Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. There's no such thing as <?php= You can use <?= if you are 5.4 or greater. They plan to always support <?= from now on. You can use <?php echo at any time.
  2. What?? You need to insert a value into the column when you do your query. http://php.net/manual/en/mysqli.insert-id.php Also if this is a 1-1 relationship you might as well put them in the same table. *shrug*.
  3. "PHP Coding Help Do you need help with some code you wrote? Ask here! We'll get you the answers!" Did you write code? If not, then why are you posting here? If you wrote code, post it and we can help. Posting an assignment and saying you don't know what to do is not what this forum is for.
  4. You've defined your functions within another function, instead of calling them / executing them from that function.
  5. In your javascript, call the function show() and remove the onclick stuff.
  6. Use either for or foreach, and some variables. We don't do homework, and we don't write it for you. It seems fairly obvious so just try it.
  7. If you try, we will help you. We will not write it for you, that doesn't help you learn. You might think it does, but I promise you, you won't understand it the same way as if you learn how to figure out the problem and solve it. Where are you stuck?
  8. <?= works even when short tags are disabled. (Edit: >=5.4 http://us3.php.net/manual/en/function.echo.php)
  9. I thought you were saying there was a built in way to know, like what he was asking for.
  10. Barand, how do you always know you're on the first?
  11. That's what it actually outputs, or that's where it directs you to when you click it? Sounds like you're missing the http:// at the front of your constant. Do some basic debugging on your own.
  12. See where you echo $base_url? Replace the variable with the constant.
  13. Maybe you should use some reasonable names. There's no way anyone can read that.
  14. A backtick is ` It's usually next to the 1 on your keyboard.
  15. I think OP is trying to enter a line break after every entry except the last.
  16. Typically I would use an array and implode for something like that.
  17. You can't start over? Of course you can.
  18. You're going to need to stop using Dreamweaver, probably get some books on PHP and start from the beginning. Us telling you which bracket is out of place (which it's hard to tell without fixing the spacing, indenting, etc) won't help in the long run. You have a } at the end of a line which make it hard to spot. Did the tutorial go over indenting?
  19. No, you want to store the date the way it is. That's the proper format to store a date. You can reformat it using date() when you want to display it, but store it in the ISO format.
  20. Properly indent your code and learn PHP syntax.
  21. Use = instead of .=
  22. You have too many } If you don't know PHP, time to learn it.
  23. Use <?php instead of <?
  24. What string has both bread and butter in it? A string like "bread and butter". If you want to find strings which have EITHER of those terms, which do you think you should use, AND or OR?
×
×
  • 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.