PHP Convert MySQL Timestamp to Ago Format: OOP Class Tutorial Object Oriented Programming

Posted by: Admin  :  Category: Mysql

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

Learn how to program OOP in PHP and convert MySQL timestamp to the “Ago” format. Using a PHP class. Get the Zip Download Package Here: www.developphp.com

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

20 Responses to “PHP Convert MySQL Timestamp to Ago Format: OOP Class Tutorial Object Oriented Programming”

  1. Huda6000 Says:

    So how do i apply it in the code? Do i paste all that code next to the post or do i put something else next to the post.? Im just really confused how you put in in the page…do you put all of the php code lines and put them in the code on the site?

  2. AsianManTi Says:

    Can this be used with other time format besides unix?

  3. cryde12 Says:

    It’s stupid …
    You don’t use correctly the object (and the POO)
    Use a function to it would have been better

  4. psoupcms Says:

    Hello @ flashbuilding!

    I had a time_ago function and the problem encountered was similar to this. You see, It’s working if my posted article is from yesterday. But, when I try to post an article just a minute ago, the function you provided returns an HOUR instead of minutes. Like this comment is posted today and when I try to use your script it will return 7 HOURS ago? Weird or is it just because of my computer’s local time?

  5. realfun784 Says:

    How to Use from database?

  6. kwvideo Says:

    @kwvideo Works now. I had to Ssh in to both of my servers and change the time. Its 20 seconds behind but thats fine. When i am done with the site i will have it all on one box.

  7. kwvideo Says:

    @kwvideo I think i might of found out what the issue is. My Test server and Mysql server has two different times.

  8. kwvideo Says:

    This has been working for a while for me. Today when i posted on my site. The Time Stamp was 2010-07-04 10:37:33. Its saying -13536 secs ago. I have Php5.

  9. Caliosg Says:

    that’s my post he’s reading out lol
    i can’t thank you enough!

  10. de8struction Says:

    Great tutorial 5/5 or 1thumb up LOL idk but i think another good tutorial would be how u made that very nice chatroom in flash i havent figured out how to make action script code to make an online user …thigy lol for lack of a better word

  11. ssuhotcoco25 Says:

    @flashbuilding Naw I don’t think so at all. It would make my web apps cleaner and more powerful. I’d love to go a little further. You’re awesome. Just thought you’d like to know I also got a call from a client on web intersect 😉

  12. ra2yuri4 Says:

    Adam once again wins!

    thanks man!

  13. rustyroother Says:

    A new YouTube, Cool.

  14. PersonalComputerHelp Says:

    very nice. This will be very handy for my chat app 🙂

  15. MrShawnlloyd Says:

    I only have one problem with your tuts, every time I watch them…I end up getting awesome sauce all over my screen !! You Rock Adam, Thanks for the great tut

  16. danielvasic Says:

    Realy, realy,…… cool man!!!!
    THX :-))

  17. gamemania61 Says:

    Reaaly Coool 🙂

  18. flashbuilding Says:

    @ssuhotcoco25 – Not too dorky? lol we could go a lil further.

  19. ssuhotcoco25 Says:

    I like this. I want to learn more about OOP/DRY programming.

  20. puggsy21 Says:

    sweet dude just what i needed thanks alot bro have 5 * dude and a thumbs up lol

Leave a Reply

*