php forum
php mysql forum
php mysql smarty
 
Topic Options
#216401 - 05/06/02 07:06 AM Pulling dates from the database
hatter Offline
Journeyman

Registered: 01/02/01
Posts: 101
Loc: USA
I'm working on some scripts and am having problems pulling B_Posted & B_Last_Post from the database. It acts as though there is nothing in the field. Here's what I'm trying to do:<br /><br /> <pre><font class="small">code:</font><hr><% TestPosted = DateAdd("s", B_Posted, "01-Jan-70") %> </pre><hr> <br /><br />This is an asp script that is to convert unix time to normal time.<br /><br />It just keeps spitting back the epoch. All of the other fields are pulled without any problem, it's just B_Posted & B_Last_Post. Does anyone have any insight or suggestions? Thanks
_________________________
Hatter
www.carfaxabbey.net

Top
#216402 - 05/06/02 08:54 AM Re: Pulling dates from the database [Re: Neo11223]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
What happens if you don't run DateAdd() on the value, does it come out right then?
_________________________
/Gardener | Complete list of my mods

Top
#216403 - 05/06/02 01:08 PM Re: Pulling dates from the database [Re: c0bra]
hatter Offline
Journeyman

Registered: 01/02/01
Posts: 101
Loc: USA
The strangest thing happened. I worked on this all day yesterday, and even if I tried to display the raw data for B_Posted, nothing would display.<br /><br />Today I go to play with it, hit refresh and it worked. DateAdd is definately the way to go for converting the unix timestamps. Thanks anyway, I feel silly now <img src="/forum/images/icons/confused.gif" alt="" />
_________________________
Hatter
www.carfaxabbey.net

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks