Hi I have looked at a question already posted about this and tried to adapt my code to do a simlar thing. Basicly I have a field in my mysql database that has the date in this format yyyy-dd-mm i need to the format to be dd-mm-yyyy. Currently my code is getting stuck on the line echo "<td><strong> ("d/m/y",". $row['date'] .")</strong></td>";
and reads this Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'. Not sure how to fix this any ideas I would be greatful.
$result = mysql_query("SELECT * FROM dbGigs WHERE CURDATE() < date ORDER BY date");
echo "<table class=\"gigs\">
<tr>
<th>Venue</th>
<th>Town</th>
<th>Date</th>
<th>Time</th>
<th>Status</th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td><strong>" . $row['venue'] . "</strong></td>";
echo "<td><strong>" . $row['town'] . "</strong></td>";
echo "<td><strong> ("d/m/y",". $row['date'] .")</strong></td>";
echo "<td><strong>" . $row['time'] . "</strong></td>";
echo "<td><strong>" . $row['status'] . "</strong></td>";
echo "</tr>";