Title: general php code edit question
Last modified: August 18, 2016

---

# general php code edit question

 *  [hbalagh](https://wordpress.org/support/users/hbalagh/)
 * (@hbalagh)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/general-php-code-edit-question/)
 * 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…
 * Time: <? echo GetTime($input_location_id); ?>
 * Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/general-php-code-edit-question/#post-258569)
 * If $input_location_id is undefined or empty at first, something like the following
   should do:
 * `<?php if($input_location_id) : ?>
    Time: <? echo GetTime($input_location_id);?
   > <?php endif; ?>
 *  Thread Starter [hbalagh](https://wordpress.org/support/users/hbalagh/)
 * (@hbalagh)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/general-php-code-edit-question/#post-258571)
 * Thanks Kafkaesqui it worked like a charm 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘general php code edit question’ is closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 2 replies
 * 2 participants
 * Last reply from: [hbalagh](https://wordpress.org/support/users/hbalagh/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/general-php-code-edit-question/#post-258571)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
