I got this code off a tutorial - copy and paste. look what it gives me. Please help me and tell me whats wrong.
<?
// Connect database
include(“connectdb.php”);
// Get all records in all columns from table and put it in $result.
$result=mysql_query(“select * from phonebook”);
/*Split records in $result by table rows and put them in $row.
Make it looping by while statement. */
while($row=mysql_fetch_assoc($result)){
// Output
echo "ID : $row[‘id’]
";
echo "Name : $row[‘name’]
";
echo "Email : $row[‘email’]
";
echo "Tel : $row[‘tel’] ";
}
mysql_close();
?>
Error Message:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /homepages/44/d195205520/htdocs/freezer/select.php on line 13