Well i want it to be something like
$datejoined = date("z", somethinghere);
$currentdate = date('z')
then go
echo("Days in clan: ");
echo($currentdate - $datejoined);
But i cant seem to setup the datejoined variable.. i have something like this.
Functions
function date_from_timestamp_from_mysql($col, $table){
$sql_viewlogs = 'Select UNIX_TIMESTAMP(' . $col . ') as ' . $col . '
from ' . $table . ';';
$view = mysql_query($sql_viewlogs);
$array_date = mysql_fetch_array($view);
$date = date("M j Y",$array_date['' . $col . '']);
return $date;
and
date_from_timestamp_from_mysql(joined, users)
Shows the date they joined.. But i cant put date("z", "date_from_timestamp_from_mysql(joined, users)"); i get an error for it being to long or something.. SO any help?


Sign In
Create Account


Back to top









