Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. You do understand the difference between client-side and server-side? How exactly do you expect php to refresh a window?
  2. Why would a User extend a database? They are not at all related. A User might need a database to be able to get data from it, but a User is not a type of database. It makes no sense. There isn't anything particularly good about the design so.....
  3. The first major floor I see is the use of the $_POST array within your methods. This ties your code to the $_POST array, making it un-reusable. The second is that a User would never extend a database. The two are unrelated.
  4. Seriously, can you please change that avatar? Pictures of half naked kids aren't exactly what I'm expecting on a developers forum.
  5. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=315683.0
  6. Functions accept arguments, Use them.
  7. fopen, fread, fwrite. Where exactly are you stuck? Code would be helpful.
  8. 1) Includes are included as and sent as part of the 1 initial page. 2) Its html, what is there to secure? 3) See #1 4)As long as you prepend the user input with the pages/ directory you should be fine.
  9. One is a programming language, the other, a program written in that language. If your not overt to the idea of programming you might be better off simply learning how to use a CMS. Though you might not be able to offer much of a service without being able to customize it. You need to understand though that learning to program isn't something your going to pick up (and run with) quickly, it takes quite a bit of time and a certain mind frame.
  10. A little off topic but there is nothing object oriented about your code.
  11. It might work in some browsers but could have adverse effects in others, the idea is to get your markup to validate to a specific document type. The closing braces are required if you have chosen to use XHTML as your document type. Most people shouldn't be using XHTML as most servers still send XHTML documents with a mime type of text/html. So no, use a HTML doctype and you don't need the closing slashes.
  12. So does using globals. You need to pass your connection to any functions that need it via an argument.
  13. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=315565.0
  14. PHP executes on the server, not the client.
  15. Put the error reporting code at the very top.
  16. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=315554.0
  17. That has no relation to your database driver.
  18. Oh, and I just noticed. What is the while loop there for?
  19. $query2 = "UPDATE locations_all SET city_state='$value' WHERE city_state='$key'";
  20. No new pages need to be created. This is the basic principle of dynamic web pages. Check out this thread: http://www.phpfreaks.com/forums/php-coding-help/now-that-i-know-what-to-ask-here-goes/msg446570
  21. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=315546.0
×
×
  • 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.