$query='select * from ben where id=$sid';/////////////////这里 不认识$sid
 ||
\  /
$query="select * from ben where id=$sid";