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 MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=319085.0
  2. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=319081.0
  3. This can also be done in php-gtk (http://gtk.php.net/), still, I wouldn't recommend either of these approaches.
  4. Are you using the same passwords in all these examples? All that online editor does is md5 hashes the passwords.
  5. That will work fine. Do you see what is expected when you echo $upgrade_next_sql ? Also, you have some extra crap within your array index (it won't effect it, it's just not needed). $profile_data['level_'.$show]
  6. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=319071.0
  7. Your kidding aren't you? Please post what is relevant, no one wants to sift through all that especially when it hasn't been posted in tags.
  8. Have you looked at the .htpasswd file? It might be malformed or something. I see nothing wrong with your code.
  9. You are better off using ODBC to connect to MSSQL. Really though, if you can get the chance to move away from MSSQL I would. I had nothing but trouble getting it to play nicely with PHP at work.
  10. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=319034.0
  11. This topic has been moved to Microsoft SQL - MSSQL. http://www.phpfreaks.com/forums/index.php?topic=319065.0
  12. The manual should be the first place you go for anything!!!
  13. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=319056.0
  14. You should also be getting that done in one query not two.
  15. $query = mysql_query ("SELECT systemkey FROM members WHERE IPaddress='$ip'") or die (mysql_error()); $query2 = mysql_query ("SELECT * FROM members WHERE username='$player'") or die (mysql_error());
  16. document.write("<span id=\"update_totals['.$i.']\"><a href=\"javascript:setCustomOTVisibility(\'update_totals['.($i+1).']\', \'visible\', \'update_totals['.$i.']\');\"><img src=\"' . tep_image(DIR_WS_IMAGES . '../order_editor/images/plus.gif') . '" border=\"0\" alt=\"' . IMAGE_ADD_NEW_OT . '\" title=\"' . IMAGE_ADD_NEW_OT . '\"></a></span>");
  17. If there is only ever going to be one row in that table then you don't need any WHERE clause.
  18. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=319016.0
  19. Strings need to be surrounded in quotes in most (all) programming languages including SQL.
  20. The bigger question is why your using document.write() to write the code to the browser in the first place. Not to mention your wrapping your js in <!-- --> comment tags. Do you actually know why they are there? They haven't been needed since netscape 2.*
  21. It should just be submitting anyway, (after looking a little closer) there is nothing in your code that will trigger the js.
  22. .val() is a jQuery method yet fname etc etc are not jQuery objects. Instead of.... var fname = document.getElementById('firstname'); Use.... var fname = $('#firstname'); This will ensure that fname etc etc are jQuery objects. Your code is a pretty good mismatch of vanilla js and jQuery.
  23. Sorry, $temp shouldn't be setup as an empty array, because it ends up being a string. That's just a blatant mistake on my part. The __construct() is a method which is called automatically when your class is instantiated.
×
×
  • 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.