RE: Regarding alerts in PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This seems like a really broad question. Feel free to narrow it down for us.

 

If you’re asking how to trigger a style change based on date, it could look something like this:

 

<?php

$alert_color = ‘<span style=”color:#000000;”>’;

If ($current_date > $due_date) {

     $alert_color = ‘<span style=”color:#FF0000;”>’;

}

?>

 

<?php echo $alert_color ?>Your alert message here</span>

 

--

Joe

 

From: php-objects@xxxxxxxxxxxxxxx [mailto:php-objects@xxxxxxxxxxxxxxx] On Behalf Of vijaya lakshmi Vulli
Sent: Wednesday, September 03, 2008 10:41 PM
To: php-objects@xxxxxxxxxxxxxxx
Subject:  Regarding alerts in PHP

 



Hi All,
  I am doing Consultancy project.In that I need to submit alerts to users and jobseekers.When users and jobseekers login then alert may displayed and after due date the text in alerts messages must be red color.Please help me how to do this.
 
thank u in advance
 
vijaya

Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

[Non-text portions of this message have been removed]

 



[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux