Getting foreach() error

Links for php scripts

Moderators: egami, macek, gesf

Post Reply
User avatar
New php-forum User
New php-forum User
Posts: 44
Joined: Tue Feb 26, 2013 6:00 am
Location: Mindfire Solutions

Fri May 03, 2013 12:39 am


foreach always takes array.

I think $locations['citynames'] and $locations['countrynames'] are not array that's why its giving the error as Invalid argument supplied for foreach().

If you can post the $locations content and the function cs_get_locations. then it will be easy to solve what should be the exact parameter.

Sandeep Agrawal
Mindfire Solutions

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest