I am having problems in trying or order it from bottom up.Code:<? include("--.php"); mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die("Error : unable to connect to database!"); $query="SELECT * FROM datatable"; $result=mysql_query($query); $rows=mysql_numrows($result); mysql_close(); echo "<b>Output</b><br><br>"; $i=0; while ($i < $rows) { $id=mysql_result($result,$i,"id"); $title=mysql_result($result,$i,"title"); $notes=mysql_result($result,$i,"notes"); echo "ID : $id<br>Title : $title<br>Notes : $notes<br><br>"; $i++; } ?>
Can someone give me a clue?


Reply With Quote
Bookmarks