<?php
mysql_connect("localhost", "username", "password") or
die("could not connect");
mysql_select_db("news");
$result = mysql_query("SELECT id=1, uname, news, event FROM newscontent");
while ($row = mysql_fetch_array($result, MYSQL_BOTH)) {
printf ("id: %s uname: %s", $row[1], $row["news"]);
}
mysql_free_result($result);
?>
Thats what I am using now. It grabs more than 1 row. ANy help would be great.