Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Your form code has nothing to do with the issue. Read my previous reply again. Look at this line: Ip address: " . $_SERVER['REMOTE_ADDR'] . “ See that last quote? It should be: Ip address: " . $_SERVER['REMOTE_ADDR'] . "
  2. trq

    $_POST problem

    No, your php4.3 server was configured to hide errors from you. Bad code is bad code, it doesn't matter what version it is written in.
  3. trq

    $_POST problem

    $_POst is an array. As the name suggests parse_str expects a string. This is no different between php4 - 5, it is likely that your php4 install is misconfigured to hide errors form you the developer.
  4. Your using some odd quote, likely from using word or some other word processor. Edit code with a text editor, not a word processor.
  5. trq

    Link Table

    We really don't need the image. This thread should get you started.
  6. trq

    MOVED: MySQL

    This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=350264.0
  7. trq

    MySQL

    You should be doing this check in your query. Whatever MysqlVarExists() does, it does it wrong. $email = mysql_real_escape_string($_POST['email']); $username = mysql_real_escape_string($_POST['username']); $sql = "SELECT id FROM tbl WHERE email = '$email' && username = '$username';"; if ($result = mysql_query($sql)) { if (mysql_num_rows($result)) { // record found } else { // username or email not found } } else { // query failed }
  8. You would put the code in the script that processes the form.
  9. You have come to the right place then. Welcome.
  10. You likely need to refactor your quires and your process. I'm working on a system at work that processes tens of thousands of records and creates pdf's. Allot more of an intensive process than creating excel files. Yet if things are done properly, it can be done. There are many little tricks but without any idea of your current process, we can't really help.
  11. $h = "Hello/"; $w = "World"; $hw = $h + $w; console.log($hw); //Hello World While you can define your variables starting with a $ in JavaScript, you probably shouldn't though.
  12. First result of searching "ajax auto suggest". http://woork.blogspot.com/2009/02/useful-ajax-auto-suggest-scripts.html
  13. Have you tried using google auto suggest to search for help on the subject. Your not the first person to look for it.
  14. Your not testing against $photo_num, your testing against false.
  15. You shouldn't say "No" without testing. Zane's code does exactly what your example shows us you want.
  16. You missing a dimension: message.utf8Data.data.msg
  17. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=350210.0
  18. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=350214.0
  19. Firstly, you shouldn't be storing multiple values in a single database field in the first place. Secondly, explode requires at least two params. A delimiter and the string to split.
  20. Yeah, I've been down that road a little too. I've been playing with these ideas for the last few days and am still convinced that I'll stick with the extra dependency on the Option object. It just seems the cleanest and with the DI ideas I also have kicking around it will be easy enough to override Option if required.
  21. This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=350182.0
  22. Because ../../media/php/classes/Mysql.inc.php quote obviously doesn't exist when called from your sites root.
  23. I use vim so navigation is completely different. I don't use my mouse at all when programming.
  24. Then how exactly do you plan on getting it into JavaScript?
×
×
  • 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.