Hey All,
How do i get the phpMyAdmin to automatically insert a date in a field and the time in another when a DB entry is made????
Please Help
SOLID
Moderators: macek, egami, gesf





function mysql_to_php_time($mysql_date)
{
//-- mktime order = hour,min,sec,month,day,year
return(mktime(substr($mysql_date,11,2),substr($mysql_date,14,2),substr($mysql_date,17,2),substr($mysql_date, 5,2),substr($mysql_date, 8,2),substr($mysql_date, 0,4)));
}Users browsing this forum: No registered users and 2 guests