dagger2002
Programmer
I have my database and it connects to my site.
I was wondering how to print the information on a specific article when i give it the id.
heres the connection string
thanks
David
I was wondering how to print the information on a specific article when i give it the id.
heres the connection string
Code:
<?
$ntouquery = "SELECT id, title, text, date FROM stories WHERE include = 1 AND supe = 0 ORDER BY date DESC";
$ntouresult = mysql_query($ntouquery) or die("Error with the query.");
$num_ntou_rows = mysql_num_rows($ntouresult);
while ($row = mysql_fetch_array($ntouresult)) {
echo "<li><a href=\"$thisURL/comm_newsPR.php?id=$row[0]\"> $row[1]</a></li>";
// <a href=\"$thisURL/comm_newsPR.php?id=$ntourows[0]\">$ntourows[1]</a>
}
?>
thanks
David