hmm...
that does end up working, really though, it ends up just being a rewrite of the code that I had beforehand. Although that code does work just fine, what I'm trying to do is access one specific row defined by its primary key. I'm going to be adding news articles, and I don't want to have to sort them as I add them to the database, I just want the primary key to auto-increment for me and display the most recent 3 posts on the front page. Another page will be used to show all the older articles, and once I can get this code to work, the rest will be a cakewalk.
edit: Sorry... Thank you very much for a very speedy reply.
edit: so i tried just doing it like this:
$sql = "select * from news ORDER BY date DESC";
$r = mysql_db_query("news",$sql);
and it seems to work.
Duh.