Skip to content
Advertisement

Tag: html

Using time zones in a PHP web application

I’ve been looking around for a few hours now about what’s the best way to use timezones in a PHP/MySQL web application, finding a definitive answer is hard. From what I’ve learnt so far it is best to store everyones stuff in the database in UTC (correct me if I am wrong). When a user registers I will ask them

Resize textarea based on lines of text that comes from php/mysql variable

I dont need it to resize automatically as you type, I just need it to be the correct size when the page loads the variable is $row[‘text’];