0

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

3
Contributors
5
Replies
6
Views
8 Years
Discussion Span
Last Post by babydolphin
0

Try:

echo $result_row["dates"]."</td>";
echo $result_row["news_desc"]."</td></tr>";
echo $result_row["news_details"]."</td></tr>";
1

thankx so much. problem solved. i can display the text. i tried one more run before posting the updated code and it works. :$

thank you so much....

Votes + Comments
then.mark this as solved...
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.