class MailAuthGen{
var $mail='test@mail.com';
var $findUid = "SELECT uid from 'accounts' where email='$mail'";
function abc() {
echo $this->findUid;
}
}
when I load this page, the page shows
Parse error: syntax error, unexpected '"'
Even
$findUid = "SELECT uid from 'accounts' where email='".$mail."'";
didn't work.
But, when I didn't use 'class', it executed well.
What's the problem?