#1
|
||||
|
||||
grr Last Bred
is printing out weird numbers. how can i get it to show the date? I'm getting super annoyed =(
Last edited by SilverDragonTears; 08-09-2011 at 10:17 PM. |
#2
|
||||
|
||||
This is going to make me lose my mind =(
|
#3
|
|||
|
|||
It looks like the last bred just stores the return value of time()
http://php.net/manual/en/function.time.php (for more info) you could echo out the date with the date function, like: date('Y-m-d', $lastweek) to see what it is. beyond that I am not sure, I haven't work with the time() or the breeding script that much. |
#4
|
||||
|
||||
where do i put that?
|
#5
|
||||
|
||||
ok I put it like this
PHP Code:
Last bred: 1969-12-31 |
#6
|
|||
|
|||
well that is a long time ago. so what are you trying to do with the last bred just display it as a date?
|
#7
|
||||
|
||||
Yes I want it displayed so that the members know when they last bred each pet. And if they haven't been bred yet, display nothing. That's not the hard part though... the hard part is getting it to display the date they were bred.
|
#8
|
|||
|
|||
ok, so i understand the problem more now.
so when you get last bred from the adopt it displays 1969-12-31 i would get the adoptable last bred and then display PHP Code:
|
#9
|
||||
|
||||
neat... it gives me
Last bred: 2011-08-10 2011-08-10; So I guess I can remove one? |
#10
|
||||
|
||||
hmmm i'm confused... this is my code.
PHP Code:
Last bred: 1969-12-31 2011-08-10 but the rest print nothing including laid eggs which is how it's suppose to be oh i see why... some say nothing for last bred and some say 0. how can i fix that? and a pet i bred today shows Last bred: 2011-08-10 2011-08-10 Last edited by SilverDragonTears; 08-10-2011 at 07:24 PM. |
|
|
What's New? |
What's Hot? |
What's Popular? |