Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. There are literally thousands of tutorials around that cover executing a database query with php. You should find one and read it.
  2. Neither is more secure than the other.
  3. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=341085.0
  4. Yeah, looks good. Are you using urls to include files? You shouldn't be. Post some relevant code.
  5. Having a dig at me now? Nice. I am well aware that my spelling and grammar are not the best, lucky I'm not a writer. This still changes nothing about the fact that the information you are asking us to provide would be covered in any basic mod_rewrite tutorial. Do you really want us to publish another one just for you?
  6. It does mean that you have a standard interface. With all validations being done via the same method. This way you can do things such as: $validators = Validator::get(); foreach ($validators as $validator) { $str = $validator->validate($str); } Doing it with a separate method for each you would need to know all the different method names at runtime.
  7. Yes I read your post. I just assumed you where being lazy, still do.
  8. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=341021.0
  9. You need to escape data going into your database. See mysql_real_escape_string.
  10. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=341022.0
  11. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=341023.0
  12. There has to be thousands of tutorials that would cover these simple rules. Have you searched at all?
  13. The forward slash here: /article.php?url_title=$1 makes the rule direct to a file article.php within your web servers document root. You appear however to be running this within a sub directory (01_MyProject). Try using a relative path.
  14. You really should look into auto loading too instead of arbitrarily loading every library you have whether you need it or not.
  15. Most isp mail servers require authentication which php's mail function doesn't support. You will either need to install a local mail server, or use a third party mail library like PHPMailer.
  16. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=340898.0
  17. Considering we get this kind of spam all day every day here there is no way I'm helping you write a script for it.
  18. That will happen to the best of them on occasions.
  19. You do not need to specify the names of the fields if you have a value set for all of them. The first query looked fine. op: What error are you getting?
  20. Yeah, your title would need to be unique and what you have done is a great idea. It's the same idea as the slug I linked to earlier. So, is it working now?
  21. You obviously need to eventually pass something to your script that it can use in a query to identify a particular article.
  22. Do the titles look like this in your database? all-about-creating-dynamic-content You will likely need to strip the - either that or what most people do is actually have a separate slug field and use that instead. And what I meant by "I'm really not sure where you get this stuff from." is that I never told you to make your title your primary key. You just seem to read things that aren't there.
  23. Where exactly are you stuck?
×
×
  • 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.