Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Just post the id, then on the posting_details.php script, use that id to execute another query and get all the details.
  2. trq

    class?

    Yes. Functions within a class are referred to as methods of that class.
  3. trq

    class?

    To use method chaining as in your example you simply need to ensure that each method returns $this.
  4. SELECT COUNT(id) as cnt, color FROM tbl GROUP BY color
  5. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=314051.0
  6. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=314053.0
  7. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=314038.0
  8. mysql_fetch_row returns a numerically indexed array, not an associative array.
  9. There are literally thousands of tutorials around for file uploading with php, you sure you couldn't find 1?
  10. 1. sprintf is used to format a string, printf is used to format and output a formatted string. 2. Your query makes little sense as is.
  11. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=314030.0
  12. I'm no cryptography expert but, there is always hash_file.
  13. <?php $new = file_get_contents('http://mydomain.com/TheUpdatedxmlFile.xml'); file_put_contents('/path/to/old/file.xml', $new);
  14. You need to use the OS's scheduler program. In the case, Windows Scheduler on Linux you would use Cron. This really has nothing to do with PHP.
  15. Considering that http is stateless and that every time a user hits submit button they make a new request which is completely unrelated to the last, your theory wouldn't work.
  16. Sounds to me like your looking to implement a basic MVC. I wrote an example a long while ago here: http://www.phpfreaks.com/forums/application-design/fully-understanding-mvc-concept/msg729041/#msg729041
  17. I'd start by defining 'not work properly'.
  18. Sorry, but your post makes little sense. Your question is what exactly?
  19. trq

    baki

    Firstly, when you post a new topic the subject should describe the contents of your post, not your user name. Secondly, you need to actually describe the problem. 'Not working' is NOT enough information.
  20. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=313909.0
  21. Post your code and tell us what error you are getting.
  22. trq

    JSON help

    That is not at all what your original post described.
×
×
  • 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.