NameSilo

Code edit

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch
I have a script that when you select the a certain time zone it will show you the current time in that zone...

But before you select the time it says

Time:

then after you select the time it would say something like this

Time: 2005-09-06 02:04 GMT

this is the part of the code that pulls up the info... how can i edit this, so Time: doesn't show up untill after the zone is selected...hope this all makes since...

<br />Time: <? echo GetTime($input_location_id); ?>



Thanks :)

Never mind, i got the answer on another board...

<?php if($input_location_id) : ?>
Time: <? echo GetTime($input_location_id); ?>
<?php endif; ?>

is what i did (if interested)
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
This is what all members should do...

Ask a question and answer it for others to use (If they find the answer on their own, of course). Good work!:)

-Steve
 
0
Close
try using the strftime() function
 
0
Close
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

A browser tab with a favicon next to the page title
Search members
You can now search for members by name, company, location and more. Open the search at the top of any page and choose Members. You will...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back