Soldato
- Joined
- 22 Aug 2005
- Posts
- 9,289
- Location
- Clydebank
If I have this code:
How can I count iterate through it to extract both the 'new' and the $querystring part?
count(z$) gives me 1? So if I do a while $item <= count(z$) it obviously doesn't run. I'd expect count($z) to give me 3 ....???
PHP:
$querystringNEW = 'SELECT BLAH BAH NEW';
$querystringOLD = 'SELECT BLAH OLD';
$querystringDUP = 'SELECT BLAH DUP';
$z = array( 'new' => $querystringNEW,
'old' => $querystringOLD,
'dup' => $querystringDUP
);
How can I count iterate through it to extract both the 'new' and the $querystring part?
count(z$) gives me 1? So if I do a while $item <= count(z$) it obviously doesn't run. I'd expect count($z) to give me 3 ....???

