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 PHPFreaks.com Questions, Comments, & Suggestions. http://www.phpfreaks.com/forums/index.php?topic=338359.0
  2. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=338361.0
  3. Actually, a quick look at your code reveals that you need to buy yourself a newer book. Your code is relying upon functionality that has been removed from php by default over 8-9 years ago.
  4. Your going to need to describe the problem allot better than 'not working'.
  5. Can you read your post back to yourself? Does it make any sense to you?
  6. Your server needs permission enough to execute these commands. I suggest you have a look at sudo.
  7. Do you know how to insert data from a form into a database with php? That is essentially all your doing.
  8. No, the slashes should not show up in the database. They are only there to insure that your data can be used within queries properly. You must double double escaping the data. this can often happen if you have magic quotes enabled on your server. You should check get_magic_quotes_gpc and if that returns true, use stripslashes prior to mysql_real_escape_string.
  9. Look at the query. That would produce.... SELECT firstname FROM usertable WHERE ID = $UserID LIMIT 1; If you don't understand the code, don't use it. I wouldn't recommend using this function in the first place as it has holes that have the potential to cause security concerns.
  10. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=338165.0
  11. How did you create these directories exactly?
  12. Ok, well you might want to better explain the issue.
  13. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=338129.0
  14. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=338157.0
  15. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=338146.0
  16. $needle and $hackstack are used as criteria for the query. They have nothing to do with what filed is returned, that is $field. LIMIT (as the name suggests) limits your results to a certain number of results.
  17. I'm not 100% sure this is what your getting at but if you name form elements as arrays you can loop through them in php. eg; <input type="text" name="foo[]" /> <input type="text" name="foo[]" /> <input type="text" name="foo[]" /> Will allow you to do: foreach ($_POST['foo'] as $foo) { echo $foo; }
  18. I'm sorry but your post makes little to no sense at all.
  19. This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=338104.0
  20. Are you saving the return value of this loadFile() function?
  21. Files included within functions (or class methods) only exist within that functions scope.
  22. This code creates a self executing function. <script type="text/javascript"> (function() { // your code here })(); </script>
  23. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=338072.0
×
×
  • 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.