i dumped a bunch of generic times from an excel spreadsheet into mysql via a script based on fgetcsv(). everything looked good to go-- until now when i'm trying to use that data.
i'm grabbing it w/ a SELECT query and a FOR loop in which i've taken these raw times for which i need to indicate AM or PM (this wouldn't be an issue at all if i didn't want or need to do the AM/PM thing).
hmm-- as i write this, i'm thinking of a possible work around where i could simply do something like
if ($row = "PM") {
$str .= $('field'.$PM);
} else {
$str .= $('field'.$AM);
or something to that effect.
but, what other options might i have? is there something i could/ should do to my db? some SQL shuffling of the data to somehow get those values to be what they need to be at their residence in the mysql tables? the Excel CSV file doesn't indicate AM or PM, by the way. but, i know which is which because it just happens that i am familiar w/ my material. had i not known these values from personal experience, then i might be in trouble, but as it stands, i can probably do a workaround and get away with it.
suggestions? do you want or need to see my query / array / strototime() code, etc to further help me out?
thanks!!