Parse error: syntax error, unexpected T_STRING

hi all

im new to php n sql and have been working on this project for a friend and am having a prob

Parse error: syntax error, unexpected T_STRING

here is the bit of code i cant work it out
[php]mysql_connect($db_hostname,$username,$password);
@mysql_select_db($database) or die( “Unable to select database”);

$query=“SELECT * FROM “shaun” WHERE id =(”$id")"; //// in this line is the error
$result=mysql_query($query);

//$num=mysql_numrows($result);

mysql_close();
[/php]

i have a page that links to a detalis page via this link (<a href=“detalis.php?$id”><img src="/project/thum/$thumbnail" alt="$thumbnail" height=“150” width=“150” />)

and that page has this $id=mysql_result($result,$i,“id”); to store the result

but back to the main point i cant work out the prob above

PLZZZZZZZZZZZZZZZZZ helpl

thanks

nbbcj

Change the line that errors to the following:

[php]$query=“SELECT * FROM shaun WHERE id =’”.$id."’";[/php]

(I have assumed that your table is called shaun)

hi smokey i will give it a go thank you for your time

and MERRY XMASS

mark as closed plz it worked thx smokey

ps got a new prob now if u could take a look iv done a new post

Sponsor our Newsletter | Privacy Policy | Terms of Service