Welcome Guest, Not a member yet? Register   Sign In
simple looping
#1

[eluser]metaltapimenye[/eluser]
i'm quiet new in OOP kind of stuff..
how can i make loop kind like $i++ kind of stuf?

i've make..
Code:
$year_present=date('Y');$data['year_present']=$year_present;
$e=$year_present-80;
while ($y >= $e) {
    $data['year_arr'] .= $y;
$y--; }

and put it to view with form helper with
Code:
form_dropdown('birthyear',$year_arr,$year_present)
but its stuck at 'while' part >_<


Messages In This Thread
simple looping - by El Forum - 12-12-2007, 01:13 AM
simple looping - by El Forum - 12-12-2007, 01:43 AM
simple looping - by El Forum - 12-12-2007, 01:58 AM
simple looping - by El Forum - 12-12-2007, 03:08 AM
simple looping - by El Forum - 12-12-2007, 03:23 AM
simple looping - by El Forum - 12-12-2007, 03:41 AM
simple looping - by El Forum - 12-12-2007, 12:10 PM
simple looping - by El Forum - 12-13-2007, 02:29 AM
simple looping - by El Forum - 12-13-2007, 02:37 AM
simple looping - by El Forum - 12-13-2007, 03:09 AM
simple looping - by El Forum - 12-16-2007, 10:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB