port5900
New Member
- Messages
- 150
- Reaction score
- 0
- Points
- 0
<?php
mysql_connect("localhost","root","root");
mysql_select_db("cdcol");
$result = mysql_query("SELECT * FROM cds")
while ($row = mysql_fetch_assoc($result))
{
echo $row["titel"];
}
?>
Can some one tell me why am I getting this error?
"Parse error: syntax error, unexpected T_WHILE in C:\xampp\htdocs\phpconnect.php on line 8"
line 8 being
"while ($row = mysql_fetch_assoc($result))"
Thanks
mysql_connect("localhost","root","root");
mysql_select_db("cdcol");
$result = mysql_query("SELECT * FROM cds")
while ($row = mysql_fetch_assoc($result))
{
echo $row["titel"];
}
?>
Can some one tell me why am I getting this error?
"Parse error: syntax error, unexpected T_WHILE in C:\xampp\htdocs\phpconnect.php on line 8"
line 8 being
"while ($row = mysql_fetch_assoc($result))"
Thanks