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