Welcome Guest, Not a member yet? Register   Sign In
doesn't work sprintf
#1

[eluser]dimaomni[/eluser]
hello, dear experts

I have that piece of code:
Code:
&lt;? for($day_of_month=1; $day_of_month<=31; $day_of_month++) {
        $mark = $dates[$date1 = sprintf('2010-04-d', $day_of_month)];
?&gt;
But must be sprintf('2010-04-percent02d'...

and it involve problem:

A PHP Error was encountered
Severity: Notice
Message: Undefined index: 2010-04-04 etc...

I've just pasted this piece of code in php file and it work ok, but in CI dosen't work


thanks!


Messages In This Thread
doesn't work sprintf - by El Forum - 05-29-2010, 01:33 PM
doesn't work sprintf - by El Forum - 05-29-2010, 02:04 PM
doesn't work sprintf - by El Forum - 05-29-2010, 03:13 PM
doesn't work sprintf - by El Forum - 05-29-2010, 10:34 PM
doesn't work sprintf - by El Forum - 05-30-2010, 06:33 AM
doesn't work sprintf - by El Forum - 05-30-2010, 08:32 AM
doesn't work sprintf - by El Forum - 05-30-2010, 10:23 AM
doesn't work sprintf - by El Forum - 05-30-2010, 11:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB