Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. A priority over 'ready made scripts' should be tutorials in my opinion. We need more tutorials!!!
  2. The PDO statement object has a rowCount() method. http://php.net/manual/en/pdostatement.rowcount.php
  3. Besides the fact that your code is obviously from some dated tutorial (your using allot of deprecated functions) what exactly is the issue?
  4. This topic has been moved to Editor Help (Dreamweaver, Zend, etc). http://www.phpfreaks.com/forums/index.php?topic=313366.0
  5. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=313361.0
  6. This topic has been moved to PHP Installation & Configuration. http://www.phpfreaks.com/forums/index.php?topic=313336.0
  7. You simply need to tell it what smtp server your using.
  8. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=313325.0
  9. You need to check that $_GET['rsTown'] exists before you start using it.
  10. As long as you lock down the Apache users entries within the /etc/sudoers file and limit them to only the commands / arguments you require, I don't see an issue.
  11. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=313317.0
  12. Both send and validate do not sound like Models to me. If that is your question.
  13. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=313299.0
  14. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=313310.0
  15. mysql_query() executes queries. The code you have posted is used to loop through the results of a SELECT query. You are executing an UPDATE query which does not return any result resource.
  16. Your not executing that query anywhere. And even if you did, you would need to use a separate SELECT query to display any of this data.
  17. Make sure you have session_start() at the top of your page, then just swap... $kw = trim($_POST['keyword']); $kw = mysql_real_escape_string($kw); For.... if (isset($_POST['keyword'])) { $kw = mysql_real_escape_string(trim($_POST['keyword'])); } else if (isset($_SESSION['srch'])) { $kw = $_SESSION['srch'] // rest of your code goes in here. }
  18. Your executing an UPDATE query not a SELECT query. UPDATE queries are for editing data, not retrieving & displaying it. Really, what exactly are you trying to do?
  19. This topic has been moved to Other Web Server Software. http://www.phpfreaks.com/forums/index.php?topic=313115.0
  20. Your query is no good also.... $result = mysql_query("UPDATE `codes_update_no_join_1d` SET `orig_code_1` = 'new_code_1', `orig_code_2` = 'new_code_2' WHERE `old_code_1` = 'orig_code_1'") or die(mysql_error());
  21. The error pretty clearly states that there is problems with whatever you are passing to mysql_num_rows() and mysql_fetch_array(). Can we see ALL your code? This is going nowhere fast.
  22. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=313287.0
  23. [ot] Why would a User extend a mysql? There is no relation at all. [/ot]
×
×
  • 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.