http://php.flashwebhost.com/melbin/days.php
In this code when i use == on line no:3PHP Code:<?php
$day='Sunday';
if ($day="Sunday") {
echo 'Have a nice Sunday';
}
else {
echo 'Have a nice day';
}i am getting the result as FALSE. Why ?if ($day=="Sunday") {
Doubt 2
Is it possible to get the day by using PHP date and time function ?






Reply With Quote

Bookmarks