i make a webpage, but an error keeps on appearing:
Parse error: syntax error, unexpected T_STRING in C:\wamp\www\own\test1.php on line 9
Here is my code:
<html>
<body>
<?php
$db1 = @mysql_connect('localhost', 'root', '');
if (!$db1) {
exit('<p>Unable to connect to the database server at this time.</p>
}
if(!@mysql_select_db('test',$db1) {
exit('<p>Unable to connect to the test database server at this time.</p>
}
?>
<p>here are all the data from the test databse</p>
<?php
$result=@mysql_query('SELECT nickname FROM player');
if (!$result) {
exit('<p>Error performing query: ' . mysql_error() . '</p>');
}
while($row=mysql_fetch_array($result)) {
echo '<p>' .$row['nickname'} . </p>;
}
?>
</blockquote>
</body>
</html>
I can't see no error in the code can anyone help me, pls