Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. Read the link in my signature on debugging SQL. You need to use mysql_error()
  2. You're not checking to see if the query failed (which it clearly did) See my signature. Also look up the syntax for mysql update because you have at least one major error.
  3. Your query looks awful. Do you know about JOINS?
  4. Moving this to Misc.
  5. Sure I am, I just don't care if anyone else thinks so :-P
  6. The same way you would save any other data to a database. What database engine do you want to use?
  7. Given your edit, I think your first thought is a stretch too OP: when the register or change password, store when that happened. Then go from there.
  8. Move it out of the web root.
  9. Jazzman. That is WHAT I SAID. That was my point. Thanks for making it over and over again.
  10. Sites like that will have an API.
  11. You realize that IP address is not a good way to identify someone right? What if two people in the same house sign up? What if someone signs up at work then at home? What if they have a dynamic IP?
  12. Again ... That is exactly what I said! What is wrong with this thread?
  13. ... This is a forum, not an IDE
  14. Jesus Christ. That is exactly what I SAID TO DO
  15. Seriously? So on my machine, the full path of an image is C:\wamp\www\project\web\images\image.png. My "web root" or the equivalent of public_html is C:\wamp\www\project\web Are you trying to argue that the image url should be: C:\wamp\www\project\web\images\image.png and not images/image.png? Because if so my computer and every other one I've ever developed on must be special.
  16. If you want to store an image path to display the image in HTML, that IS the path you want.
  17. http://php.net/foreach
  18. Psycho's post at the end of this thread is quite good. http://forums.phpfreaks.com/topic/276705-how-to-make-td-data-spacing-below-if-the-browser-need-to-scroll/?fromsearch=1
  19. Jesus what's with the carriage returns? Look, if you tried it and it didn't work, that's a lot more to go on than just saying you don't know what to do. What didn't work about that method? Having a file path in a database is absolutely NO different from the code I posted. A database is one thing, PHP is another, HTML is another. Your end goal is to print an image in HTML. That IS simple.
  20. So add the children selector...
  21. You're welcome Newbie. Please use code tags in the future.
  22. mail() returns a boolean. However, it does only ensure it was sent, not recieved.
  23. PHP echos HTML. If you have the path, just echo the HTML for the image tag. It's not as complicated as you guys are making it. <?php $img = 'mydir/myimg.png'; echo '<img src="'.$img.'">'; ?>
×
×
  • 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.