PHP echo MySQL value in If/Else -
PHP echo MySQL value in If/Else -
i have php echo value displays value mysql database this:
<?php echo($row_wadahtg_techprops["emptype"]); ?>
i need build if/else value getting syntax error no matter how seek arrange this:
<?php if (echo($row_wadahtg_techprops["emptype"]) = "6001") { echo "have day!"; } else { echo "have night!"; } ?>
try that:
<?php if ($row_wadahtg_techprops["emptype"] == "6001") { echo "have day!"; } else { echo "have night!"; } ?>
php mysql
Comments
Post a Comment