Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. You need to put it within the classes constructor. class newRecord { private $temp = array(); public function __construct() { $this->temp = $this->listCat('gallery_menu', 'submenu', 'submenu_id'); } // rest of code. }
  2. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=319007.0
  3. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=318996.0
  4. This topic has been moved to Other. http://www.phpfreaks.com/forums/index.php?topic=318586.0
  5. What exactly do you plan on doing with 50,000 results? Surely no one is going to want to view them all at once?
  6. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=318987.0
  7. Data passed through the url belongs to $_GET. They are two different request types.
  8. This topic has been moved to Other Web Server Software. http://www.phpfreaks.com/forums/index.php?topic=318962.0
  9. You haven't checked that $result is a resource. If your query fails (which it must be) $result will be the boolean false, not a resource which is what mysql_num_rows expects. Always check variables are what you expect them to be before using them.
  10. Learn Python, then take a look at mod_python or even better, a wsgi framework or application. This has nothing to do with PHP.
  11. No need to get feisty. You need to understand, mod_rewrite doesn't actually change the underlying urls, so your form will still need to have its action point to wherever it need be whether that be a nice neat url that gets rewritten to something else, or straight to that something else). Leaving your action as is in your last post, you simply need to rewrite /mysite/testwebsite.co.uk/Search/ to /mysite/testwebsite.co.uk/index.php and pass the querystring params along with it. Something like..... RewriteRule ^mysite\/testwebsite.co.uk\/Search$ mysite/testwebsite.co.uk/index.php [QSA] ps: Those urls don't exactly look valid. Do you access your site via http://somedomain.com/mysite/testwebsite.co.uk ?
  12. Why are you hard coding these id's into your logic?
  13. Do yourself a favor and install virtualbox, from there you can install a Linux distro and have a development environment that is allot closer to any production environments you'll be using.
  14. Sorry but your last reply makes no sense at all.
  15. Your dreaming if you think you can get a web request to execute within a few milliseconds. How long does it take your browser to get the same page?
  16. No. All you can access via php (which runs on the server) is whatever the client sends you.
  17. That won't get you 'who' is logged in. The method denno020 suggested is the typical method used. You simply update a timestamp every time a user hits a page. You then (where you want to display the logged in users) query for all users with a timestamp within the last ten minutes and display them, the rest can be removed (all in this same process).
  18. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=318895.0
  19. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=318875.0
  20. What exactly do you want to match?
  21. $_GET is just like any other array.
  22. Firstly, there is no need for all caps in your subject line. Your post is no more important than anyone else's. Your going to need to change the way the link is generated within newssite.php.
×
×
  • 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.