hip1/po/functions.php

<?php #Determine what name to display function nameDetermine($nameQuery){ if($nameQuery['first_name']){ $fullname = $nameQuery['first_name']; if ($nameQuery['last_name']) { $fullname = $fullname." $nameQuery[last_name]"; if ($nameQuery['artist_name']){ $fullname = $fullname." \"$nameQuery[artist_name]\""; } } } elseif ($nameQuery['last_name']) { $fullname = $nameQuery['last_name']; if ($nameQuery['artist_name']){ $fullname = $fullname." \"$nameQuery[artist_name]\""; } } else{ $fullname = "\"$nameQuery[artist_name]\""; } return $fullname; } #Convert date to be in correct order function convertdate($date){ $unixtime = strtotime($date); return date("d-m-Y", $unixtime); } ?>

Resultaat

Made by Thijs Aarnoudse