i'm trying to display the data from one particular table. everything seem to run fine. but not the data from the table. Please advise, anyone.
Codes is as below:
<?php
include ("login.php");
$query = "select * from news";
$result = mysql_query($query);
if(!$result)
{
die("could not query the database: <br>" .mysql_error());
}
echo "<table><tr><td>Date</td><td>Description</td>";
while($rowsql=mysql_fetch_array($result))
{
echo "<tr><td>";
echo " dates";
echo $result_row["news.dates"]."</td>";
echo $result_row["news.news_desc"]."</td></tr>";
echo $result_row["news.news_details"]."</td></tr>";
}
mysql_close($connection);
?>
REsult is as below :
Date Description
dates
dates
dates
dates
dates
dates