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

preview_player
Показать описание
Learn how to program OOP in PHP and convert MySQL timestamp to the "Ago" format. Using a PHP class.
Рекомендации по теме
Комментарии
Автор

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

MrShawnlloyd
Автор

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

ssuhotcoco
Автор

this is really amazing ! thanks Adam !

neilrockz
Автор

...watched ALOT of your videos. Basically learned basic PHP from you. Congrats !! Pro teacher !!

AUTODUDE
Автор

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

Caliosg
Автор

@Huda6000 you probably figured it by now, but for others! You put the php code before header tags and in the context of the page where ago should go, just echo the when variable between php brackets!

dejo
Автор

sir please upload video tutorials about larvel framework

webdesigninspire
Автор

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

AaronMcNamara
Автор

how can I do to get the date from a Data Base dynamically using the timestamp i've tried but I can not get the query for this.

// Query your database here and get timestamp
$ts = "2010-01-30 20:19:18";

elsishio
Автор

@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 ;)

ssuhotcoco
Автор

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

destruction
Автор

Heloo Adam, your videos are amazing it help me a lot...this ago script works perfectly in my website.. but i need 'time left' code too... like 2 days ago - 2 month left.. i tried but fail.. i need help :(

usha
Автор

can't work a lot of error, what will i do, wait for the answer

arjaypangilinan
Автор

$periods=array("sec", "min", "hr", "day", "week", "month", "year", "decade")
$lengths=array("60", "60", "24", "7", "4.35", "12", "10");
Here $periods.length = 8 and $lengths.length =7
then how can we compare it thats why I am receiving error when calculating sec and min ago. Adam ! Am I right . Please suggest me.

Thanks

DeepakSahu-wgdu
Автор

@kwvideo please how did you fix the -13536 secs ago error....because i dont understand what you wrote as the answer..i really would like to know

emmanuelonuoha
join shbcf.ru