Re: Got myself confused
| From: | Curt Zirzow | Date: | Sat, 25 Oct 2003 00:37:44 +0000 |
| Subject: | Re: Got myself confused | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167509@lists.php.net to get a copy of this message | ||
* Thus wrote Tom Wollaston (tom@busc.net):
>
> $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/