/    Sign up×
Community /Pin to ProfileBookmark

Weird time problem

Ok, weird glitch…

I have this form that pulls information from a db (datetime column) which it uses strtotime() and date to convert the dates into individual pieces.

Anyway, so for the hour, I am using date(‘g’… and it seems to be pulling the data correctly upon print_r of the array, however it won’t select the proper option in the dropdown box…but only for 8 and 9.

1-12 all work except 8 and 9. This leads me to believe there’s something wrong with my dropdown and such, but 8 and 9 look exactly like the rest of the numbers.

I know that was kind of vague, but does anyone have any clue what might be going on?

The times are stored properly in the database.

Thanks for any help ?

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@aj_nscSep 12.2008 — I know that was kind of vague[/QUOTE]

Then show us your code (PHP and HTML) for your dropdown box.
Copy linkTweet thisAlerts:
@tfk11Sep 12.2008 — If you post the markup for the drop down when it's not working I'm sure someone will spot the error.
×

Success!

Help @tgrk35 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...