PHP syntax error ??
3 posts by 2 authors in: Forums > CMS Builder
Last Post: November 15, 2015 (RSS)
By kovali - November 13, 2015
Hi,
I can't figure out why I get a php syntax error with this code:
<?php
if($_SESSION['pass'] != "echo htmlencode($paswoord_toegangRecord['content'])") {
echo "Bad password!";
}
else {
?>
I presume it must be a problem with the embedded quotes... ??
Because I don't have any problems when I use the code without the echo:
<?php
if($_SESSION['pass'] != "admin") {
echo "Bad password!";
}
else {
?>
By zaba - November 13, 2015 - edited: November 13, 2015
Try This
<?php
if($_SESSION['pass'] != $paswoord_toegangRecord['content']) {
echo "Bad password!";
}
else {
?>