* Thus wrote Tom Wollaston ([EMAIL PROTECTED]): > > $null=getinfo('0'); > > for ($i=1; $i<=sizeof($null); $i++); > { > print_r($null); > /* print $nul[$i]['name'];
. This wont print (even uncommented) it should be $null! > $j=$null[$i]['id']; . your sql statement doesn't fetch the 'id' column. > /*$fisrt=getinfo["1"]; . s/(fisrt)/first/ . functions use () not []. Your script shouldn't even be able to load . for some reason everywhere else you use '' but here you use "" > for ($k=1; $k<=sizeof($first); $k++); > { > echo $first[$k]['name']; > $l=$first[$k]['id']; > $second=getinfo['$m']; . too much talk bout single quotes being good :) . un-quote your $m var. . again functions use () not [] . again, no 'id' colum was ever returned. > for ($m=1; $m<=sizeof($second); $m++); > { . now I'm lost as to what $k, $l, $i, $m is used for . pay attention to detail, it will save a lot of headaches like this. Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php