Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
ne rade mjeseci

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
jojo



Joined: 27 Jan 2005
Posts: 1591
Location: insula aurea

PostPosted: 07.09.2006 12:11    Post subject: ne rade mjeseci Add user to your forum ignore list Reply with quote

switch (date('m')) {
case 01:
$mjesec='sijeÄŤnja';
break;
case 02:
$mjesec='veljaÄŤe';
break;
case 03:
$mjesec='oĹľujka';
break;
case 04:
$mjesec='travnja';
break;
case 05:
$mjesec='svibnja';
break;
case 06:
$mjesec='lipnja';
break;
case 07:
$mjesec='srpnja';
break;
case 08:
$mjesec='kolovoza';
break;
case 09:
$mjesec='rujna';
break;
case 10:
$mjesec='listopada';
break;
case 11:
$mjesec='studenog';
break;
case 12:
$mjesec='prosinca';
break;
}
$datumvrijeme = date ('d').'. '.$mjesec.date(' Y. - H:m');


pred par mjeseci je radilo sad neće. u konačnom stringu nema imena mjeseca.
date ('d. m.' Y. - H:m') radi normalno. u bazi je polje definirano ko varchar[40]

_________________
deviant / malomorgen / videoholik / cimer fraj
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
ON AIR
Guest





PostPosted: 07.09.2006 12:16    Post subject: Reply with quote

Laughing wordpress bi mogao biti rješenje ..
Back to top
jojo



Joined: 27 Jan 2005
Posts: 1591
Location: insula aurea

PostPosted: 07.09.2006 12:30    Post subject: Add user to your forum ignore list Reply with quote

ON AIR wrote:
Laughing wordpress bi mogao biti rješenje ..

zahvaljujem na prijedlogu i za nagradu ti poklanjam jednu narodnu:
šutnja je zlato

_________________
deviant / malomorgen / videoholik / cimer fraj
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
ON AIR
Guest





PostPosted: 07.09.2006 12:34    Post subject: Reply with quote

jojo wrote:
ON AIR wrote:
Laughing wordpress bi mogao biti rješenje ..

zahvaljujem na prijedlogu i za nagradu ti poklanjam jednu narodnu:
šutnja je zlato

nisi to trebala reci ..
Back to top
retro_one



Joined: 16 Sep 2003
Posts: 880
Location: DUBRAVA.

PostPosted: 07.09.2006 13:26    Post subject: Add user to your forum ignore list Reply with quote

Code:

function mjesec($m)
{
   $mjeseci = explode(' ', 'Sijecanj Veljaca Ozujak Travanj Svibanj Lipanj Srpanj Kolovoz Rujan Listopad Studeni Prosinac');
   return $mjeseci[$m - 1];
}
echo mjesec(date('m'));

_________________
Just your average eccentric programmer.
Back to top
View user's profile Send private message
retro_one



Joined: 16 Sep 2003
Posts: 880
Location: DUBRAVA.

PostPosted: 07.09.2006 13:37    Post subject: Add user to your forum ignore list Reply with quote

ona tvoja funkcija ne radi jer 01 nije broj nego string.... da radis switch '01' '02' .... trebalo bi radit

_________________
Just your average eccentric programmer.
Back to top
View user's profile Send private message
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 07.09.2006 16:01    Post subject: Add user to your forum ignore list Reply with quote

ON AIR wrote:
jojo wrote:
ON AIR wrote:
:lol: wordpress bi mogao biti rješenje ..

zahvaljujem na prijedlogu i za nagradu ti poklanjam jednu narodnu:
šutnja je zlato

nisi to trebala reci ..


nisi se ti uopce trebao ni javiti ovdje... chillaj malo, vidim neke zute kartone po tvom profilu...

_________________
UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group