Jump to content

cmaximus

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

cmaximus's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. That's a good question, I was given this code and thought that all of the clock info was in that code snippet... this part of the code is in the header: $clock = explode(':',''.$quote[9].''); if ($clock >= "4") { if ($clock == "00pm") { $stat = '<b><font color="red">Closed</font></b>'; } else { $stat = '<b><font color="green">Open</font></b>'; } } else { $stat = '<b><font color="green">Open</font></b>'; } and this part of the code is in the body where the display needs to be: <?=$stat// show market status?> The website that I'm trying to implement this is http://www.stockowls.com The market opens at 9:30am and closes at 4:00pm but the display just shows the green 'Open' all of the time...
  2. I'm working with this code that is suppose to display when the stock market is open or closed based on the users computer clock, but it's not working, could anyone please tell me what I'm doing wrong... Here's the code: $clock = explode(':',''.$quote[9].''); if ($clock >= "4") { if ($clock == "00pm") { $stat = '<b><font color="red">Closed</font></b>'; } else { $stat = '<b><font color="green">Open</font></b>'; } } else { $stat = '<b><font color="green">Open</font></b>'; }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.