wickedgenius
New Member
When I try to use the following script i get an error:
And the error says:
Can anyone help me.
PHP:
mysql_connect("localhost", "aurillia_wicked", "maisie")or die("cannot connect");
mysql_select_db("aurillia_clandb")or die("cannot select DB");
$sql = "select * from news limit 5";
$sql_result = mysql_query($sql) or die(mysql_error());
$display_block = "<table cellpadding=10 border=1>"
while ($row = mysql_fetch_array($sql_result)) {
$news = $rows["content"];
$author = $rows["author"];
$added = $rows["added"];
$display_block .= "<tr>
<td>
<div align=left>
". $added ."
</td>
<td>
<div align=right>
". $author ."
</td>
</tr>
<tr>
<td rowspan=2>
". $news ."
</td>
</tr>";
}
And the error says:
Parse error: syntax error, unexpected T_WHILE in /home/aurillia/public_html/login_success.php on line 21
Can anyone help me.