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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -