...

View Full Version : Error Problem



SDP2006
10-18-2003, 01:23 AM
<?php
include ('config.php');
$link = @mysql_pconnect($location, $username, $password)
or die("Could not connect to the databaseserver. Please go back and try again or try again later.");
@mysql_select_db($database,$link)
or die ("Could not select database. Please go back and try again or try again later.");
$sql = "SELECT EntryNo,Name,Date,Subject,Email,TheNews FROM News ORDER BY EntryNo DESC";
$news = mysql_query($sql,$link) or die(mysql_error().'<p>'.$sql.'</p>');

if ($news){
if (mysql_num_rows($news)== 0){
echo ("No newsitems found.");
}
else{
while ($row = mysql_fetch_assoc($news)){
echo("<b>");
echo("<font size=3 color=seagreen>");
echo("<a href=\"viewnewsid.php?id=.$row['EntryNo'].\">"); /*Line 44*/
echo($row['Subject']);
echo("</a>");
}
}
}
else{
echo("Queryproblem");
}
?>

My error is on line 44, but I can't pinpoint what I'm doing wrong.
Can anyone else see it?

Thanks

missing-score
10-18-2003, 01:27 AM
ok, i think i can see it

echo('<a href="viewnewsid.php?id='.$row['EntryNo'].'">');

try that?

SDP2006
10-18-2003, 01:37 AM
Great! It works!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum