Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. What does that even mean? If the values are posted in a form, they're in $_POST. And you can use Barand's code exactly. What you're trying to accomplish isn't clear at all though. Wah wah wah. You're asking us to devote our time for free to help you, and you're not asking decent questions. Imagine if your boss came to you and said "Make me a website that displays the current time", and you did it, then he said "Oh but really I meant the time in every time zone and make it display daylight savings time, and make the background cycle through random colors. Wait nevermind since you didn't do it the first time I'll just hire someone else, and not pay you at all." Kind of whiny eh?
  2. For one, you should probably use some keys that mean something. An array can not have two or more values at the same key.
  3. How do you know what user is viewing the page?
  4. Anyone tried Tonic? The docs seem very lacking. A friend suggested I check it out for a project he needs help on, but I thought it was pretty... Lacking.
  5. Oh I see you did that - but you need them around each variable. So where you have {$row['Food'] - $row['calories']} It has to be {$row['Food']} - {$row['calories']}
  6. You can use curly braces Echo "abc{$var['key']}123";
  7. Select * where group = 5 Then if group == 1 do something How does that make any sense?? Neither of your cases do anything though.
  8. You're not going to find enterprise level software like that for free..
  9. Just concatenate the two values either in PHP or mysql.
  10. 100% agree with requinix But it's great to see someone so eager to learn.
  11. Try making your max tries a number instead of a string, and defining $tries.
  12. My word. The HTML name can be an array. Change them to name="answer[$x]" Etc and see the print_r
  13. I think you need to do some basic research on how the database works. What a column is, what a row is, what a table is, what phpMyAdmin is, what syntax goes with what query, etc. Cause none of what you're saying makes any sense. You should not re-use IDs.
  14. The field should be a DATETIME type
  15. What was your code? Because that's what strtotime does. You have to still use the date() function you were using.
  16. Store them as normal. Your script that displays posts, should only query for posts where the published date is in the past. SELECT * FROM posts WHERE published_date <= NOW() etc.
  17. I've never seen SQL like that before. What DB are you using? MySQL (and every other SQL engine I've seen) would be: INSERT INTO `table` (column, column) VALUES (value, value)
  18. If you don't want to reload the whole page, yes.
  19. Exactly.
  20. Is there a question mark? This is the introductions forum, there shouldn't be questions posted in here.
  21. .... Yours was the first post on this thread to mention MySQL
  22. Of course you can.
  23. We are not here to do your homework for you. Our rules specifically state that.
×
×
  • 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.