Hi i have a Select query which display the data on the databse currently the on the databse the format is YYY / M/ D how can i change so it be D /M/YYYY
i tried echo "<td>" .$row ("d/m/Y"["news_date"]."</td>";
but did not work help please??
$query = "SELECT * FROM news";
$result = mysql_query($query);
// see if any rows were returned
if (mysql_num_rows($result) > 0) {
// yes so print them one after another
echo "<table cellpadding=10 border=1>";
while($row = mysql_fetch_array($result)) {
echo "<tr>";
echo "<td>".$row["news_id"]."</td>";
echo "<td>".$row["subject"]."</td>";
echo "<td>".$row["news_date"]."</td>";
echo "<td>".$row["news_artical"]."</td>";
echo "<td><a href=delete2.php?id=".$row["id"].">Delete</a></td>";
echo "<td><a href=modifyform.php?id=".$row["id"].">Modify</a></td>";
echo "<td><a href=add.php?id=".$row["id"].">Add Row</a></td>";
echo "</tr>";
} //End While
echo "</table>";
} //End if rows