Page 1 of 1

please help me-code

Posted: Fri Oct 29, 2004 11:37 pm
by weefy
nigma | Help us, help you. Please use

Code: Select all

and

Code: Select all

tags where approriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]

please help me in my coding. i have some problems in arrays. i have these error: i don't know what to do
Warning: reset(): Passed variable is not an array or object in /home/www/arysta.mybesthost.com/test22/index.php3 on line 43

Warning: reset(): Passed variable is not an array or object in /home/www/arysta.mybesthost.com/test22/index.php3 on line 44

Warning: Variable passed to each() is not an array or object in /home/www/arysta.mybesthost.com/test22/index.php3 on line 45


my coding are like this:

Code: Select all

query_lycos($query);
      $SearchEngine="Lycos";
      reset($lycos_link);
      reset($lycos_desc);
      while (list($key, $desc) = each($lycos_desc)) {
        while (list($key, $link) = each($lycos_link)) {
           $t->set_var("link",$link);
           $t->set_var("desc",$desc);
           $t->parse("Details1","List",true);
        }
      }
      unset($lycos_link);
      unset($lycos_desc);
      unset($SearchEngine);
      $i++;
nigma | Help us, help you. Please use

Code: Select all

and

Code: Select all

tags where approriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]

Posted: Sat Oct 30, 2004 6:14 am
by swdev
weefy

Please post the code where $lycos_link and $lycos_desc variables are defined.

Also, please indicate which line is line 43, etc.

Thanks

swdev

Posted: Sat Oct 30, 2004 7:10 am
by harsha
try this

Code: Select all

$lycos_link = array();