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 -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -