
October 8th, 2000, 01:56 PM
|
|
The Dude Abides
|
|
Join Date: Feb 2000
Location: grass valley,ca
Posts: 1,062
Time spent in forums: 1 Day 10 h 1 m 34 sec
Reputation Power: 15
|
|
|
Well if you are really tired of trying to make it work, here's a headline grabber I've used. I made changes to suit your setup and haven't tested it as is, but it gives a general idea.
<?
//Connection info
$result = mysql_query ("SELECT sid, $title FROM stories WHERE sid LIKE '%' order by time desc limit 10");
print ("<ul>");
if ($row = mysql_fetch_array($result)) {
do {
print ("<li>");
print ("<A HREF="http://www.action-figure.com/article.php?sid='.$sid.'">");
print ("<font size="2" face="helvetica, arial" color="000000">");
print $row["title"];
print ("</a></font></li>");
} while($row = mysql_fetch_array($result));
} else {print "";}
?>
[This message has been edited by thedude (edited October 08, 2000).]
|