I have the following code, it's not working. What the goal is to allow the client to either add a news story to display on the site from the database or to add a news story to an external source. I can handle the first part and the second part, but trying to combine them is giving me fits...
<?
// Loop through the player recordset outputting a row of the table for each player with a link to the player page
while ( ! $news_rs->EOF ) {
$headline = $news_rs->Fields("news_headline");
$CID = $news_rs->Fields("CID");
$url = $news_rs->Fields("news_url");
$external = $news_rs->Fields("news_external");
$date = date ( "F d, Y", $rumor_rs->Fields("news_date") );
?>
<?
if ( $news->Fields("external") == 0 ) {
print "<a href=\"story.php?CID=<?=($CID)?>\"><?=($headline)?></a>"
}
else {
print " - <a href=\"<?=($url)?>\"><?=($headline)?></a>"
}
?>
<?
$news_rs->MoveNext();
}
?>
Right now it's getting an error, "Unexpected } in line 28." Line 28 is directly above "else {".
Thanks for any help!