# Whats wrong with my code. please help me?

**URL:** <https://forum.kirupa.com/t/whats-wrong-with-my-code-please-help-me/216851>\
**Category:** Uncategorized\
**Created:** [February 21, 2007, 2:28am UTC](https://forum.kirupa.com/t/whats-wrong-with-my-code-please-help-me/216851 "2007-02-21T02:28:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wispas](https://avatars.discourse-cdn.com/v4/letter/w/9de0a6/32.png) [@wispas](https://forum.kirupa.com/u/wispas)\
**Post date:** [February 21, 2007, 2:28am UTC](https://forum.kirupa.com/t/whats-wrong-with-my-code-please-help-me/216851/1 "2007-02-21T02:28:11Z")

</div>

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
