Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=347272.0
  2. It's saying the id "order" is already somewhere else in the document.
  3. I have no idea what your talking about.
  4. The %s has nothing to do with mysql_real_escape_string, see sprintf Anyway, given your example in your first post. $email = mysql_real_escape_string($_POST['email']); $sql = "INSERT INTO newsletters (email) VALUES ('$email')";
  5. Once you have the url in a variable you would simply echo it something like: echo "<iframe width='640' height='360' src='$url' frameborder='0' allowfullscreen></iframe>";
  6. Why would you want your users to have to type more than they need to. Why not, instead, have your program output the markup, and your users simply provide the link?
  7. Security is generally not something you should think about when your application is 95% complete, it should be thought about during the entire process. As for your question, see mysql_real_escape_string.
  8. Are you getting an error? What? You really need to ensure you sanitise your data before using it any queries as well. See mysql_real_escape_string and use it.
  9. This would be allot simpler if you where using some form of hierarchal data structure as previously suggested.
  10. Why not post your actual code that isn't working?
  11. You'll need to execute a SELECT query first so that you can check for already existing records. Where exactly are you stuck?
  12. If the actual \n chars are showing up your doing it wrong, post your code.
  13. What exactly have you tried? Were not here to write code for people.
  14. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=347238.0
  15. I mean exactly what I said. You can use your own domain with Gmail. http://www.google.com/apps/intl/en/group/index.html
  16. I just showed you how to make a variable a link. Define "can't make it work", the example I posted works as expected. Post your code if you are having trouble.
  17. Be sure to put the whitespace back then: preg_replace("/\b$k\b/", ' replace_with_me ', $str);
  18. That might not solve the problem, but I would start there first.
  19. See all the html before the call to include. That is output. You cannot have any output prior to calling session_start().
  20. I would suggest you try and validate your markup firstly. There are plenty of errors in it.
  21. Post your table structure and some sample data. There is probably a much easier / more efficient method.
  22. So login.php includes this script? And also outputs data? There is your problem.
  23. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=347219.0
  24. echo "<a href=\"http://www.phpfreaks.com\">$q</a>";
  25. I suggest you post the relevant code here within tags.
×
×
  • 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.