I have made a php code which displays the data of a table in a html table.
Code:
$sql = mysql_query('SELECT users, email, date_joined FROM users LIMIT 0 , 20');
while ($row = mysql_fetch_row($sql)) {
$output .= "<tr>";
foreach ($row as $el) $output .= "<td>".$el."</td>";
$output .= '</tr>';
}
Now, How can i make a exception for the foreach statement?I want to do a function with the column datejoined. I want to output this datejoined:
ti
meFormat($row['datejoined'])But how can i do this?
All help is appreciated.
DuNnkers.


Sign In
Create Account


Back to top









