Reputation: 5732
What is wrong with this php code?
$sql = mysql_query("select * from news where isActive = 1 and partnerid_fk = '$partnerid'");
$news = "";
while($row = mysql_fetch_assoc($sql)) {
news .= "<li class='news-item'><a href='#'>" . $row['news'] . "</a></li>";
}
Error on the news append line:
Syntax error.
Upvotes: 0
Views: 51