Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. trq

    Link Table

    We really don't need the image. This thread should get you started.
  2. Code speaks volumes.
  3. trq

    MOVED: MySQL

    This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=350264.0
  4. 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 }
  5. You would put the code in the script that processes the form.
  6. You have come to the right place then. Welcome.
  7. 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.
  8. $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.
  9. First result of searching "ajax auto suggest". http://woork.blogspot.com/2009/02/useful-ajax-auto-suggest-scripts.html
  10. Have you tried using google auto suggest to search for help on the subject. Your not the first person to look for it.
  11. Your not testing against $photo_num, your testing against false.
  12. You shouldn't say "No" without testing. Zane's code does exactly what your example shows us you want.
  13. You missing a dimension: message.utf8Data.data.msg
  14. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=350210.0
  15. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=350214.0
  16. 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.
  17. 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.
  18. This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=350182.0
  19. Because ../../media/php/classes/Mysql.inc.php quote obviously doesn't exist when called from your sites root.
  20. I use vim so navigation is completely different. I don't use my mouse at all when programming.
  21. Then how exactly do you plan on getting it into JavaScript?
  22. Have a look at the coding standards of any decent open source php project. They all say to use spaces instead of tabs for the same reasons I stated in my first reply.
  23. Sorry but that response makes little sense. If you want the value of a php variable to be outputted to your page you must echo it. Hence: $("#<?php echo $filename; ?>").organicTabs(); Would output: $("#profile").organicTabs(); If your php variable $filename contained the string "profile".
  24. trq

    Is it there?

    $A = '\public_html\test\BOB';
  25. trq

    Confused

    If you indent your code so it is readable you might find the error. Or you might at least attract help. Personally, if I see code formatted like that, I usually just hit the back button.
×
×
  • 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.