please help me-code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
weefy
Forum Newbie
Posts: 1
Joined: Fri Oct 29, 2004 11:14 pm

please help me-code

Post 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]
swdev
Forum Commoner
Posts: 59
Joined: Mon Oct 25, 2004 8:04 am

Post 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
User avatar
harsha
Forum Contributor
Posts: 103
Joined: Thu Jul 11, 2002 1:35 am
Location: Bengaluru (Bangalore) > Karnataka > India

Post by harsha »

try this

Code: Select all

$lycos_link = array();
Post Reply