Hi again,
i have got a site that calls 5 different tables on the database and they all have a date field, when calling and using the while loop all the $rows[] so to speak are named differently.
The problem is, i have this code to change the date layout
function Date(){
$date = $row['date'];
$date = strtotime($date);
$date = date('d/n/y', $date);
echo $date;
How do i change it so i can modify all the various $rows[]?
eg
function Date(){
$date = $row2['date'];
$date = strtotime($date);
$date = date('d/n/y', $date);
echo $date;
or
function Date(){
$date = $row4['date'];
$date = strtotime($date);
$date = date('d/n/y', $date);
echo $date;
Thanks for your time in looking.