Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. So, no, you really don't see the difference.
  2. The difference is one site is being used by your users, and has up to date, valuable data. Do you seriously not see that?
  3. floatval Better yet, find at what point the $ is added, and remove it there.
  4. You need to specify on what columns to join those tables.
  5. 1. $index = $_POST["lstAssess$c"]; - you should be using an array, not a variable variable. This applies to the several places in your code you do this sort of thing. 2. $c = $c + 1; - can be $c++, fyi. 3. You can build a multi-insert statement rather than attempt to do many inserts. 4. Your insert is commented out anyway. ?? Finally, :codetags: !! Now, what are you trying to do? Overall?
  6. If you don't care about possibly losing/corrupting your data, and shutting down the site for actual users when a problem occurs, sure.
  7. Then I'd start over with the demo, and add your changes back line by line until it breaks. And look into version control.
  8. And apparently have never worked a cash register.
  9. If you're getting a syntax error, post it. That query however will assign that id to EVERY matching row. Which I doubt is what you want.
  10. Your style and css "stuff" should be included AFTER php processing.
  11. And now you see why posting your ACTUAL code is important. Copy and paste doesn't remove random vital parts of your code. So either you're STILL not showing the actual code, or you lied about loosing it in pasting it.
  12. What is id? Sounds like something you shouldn't be updating...
  13. You're not using an inner join, you're using a left join. Try this. SELECT planets.address FROM planets LEFT JOIN travel ON planets.address = travel.defender_planet WHERE travel.defender_planet IS NULL
  14. If the person hasn't had their birthday yet this year, you'll be off by a year...If you subtract 2012-1974 you'll get 38. Yet my husband is only 37. I realize you addressed how to do the actual age below but I don't think the OP really wants just the difference in years, that's not an age.
  15. Jessica

    Ellipsis

    To add the ellipsis you either need to: a. Use Javascript b. Use PHP c. Use an image You cannot do it in CSS alone.
  16. Well duh. Why would you store data in a format like that is the question?
  17. turn on error reporting, and start adding echo's at various points in the code to track down where your problem is.
  18. Post your actual code, you've clearly edited that one. Also you only have one echo, so there's no evidence you're comparing the two strings.
  19. You may need to combine that with joining to the table on itself. Is there a primary key? Can you post the table structure please? (Edit: and a dump of data) And you want the actual scores or just the sum/average of them?
  20. Select name, sum(scores) from table having count(scores) >2 group by name (I might have the group by / having in the wrong order, on my phone.)
×
×
  • 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.