Jump to content

NBG

New Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by NBG

  1. Been out of the "loop" for a while and running into trouble on day one. Trying to figure it out. Parsing Data from a url and getting error message "Class '98007214' not found in" ------------------------------------- code as follows $corpid=array('98007214','98008630'); $x = 1; while ($x<3) { $url="https://api.eveonline.com/corp/CorporationSheet.xml.aspx?corporationID=" .$corpid($x); $data = file_get_contents($url); $list = new SimpleXMLElement($data); foreach ($list->result->corporationName as $result): echo $result; endforeach; $x=$x+1; } -------------------------- So it seems like the $corpid($x) expression is pulling the value it is supposed to be pulling. but then the error is because its looking for a class? Never had this issue back in the day and a bit confused on why its just not adding the varible in as text and creating a class error.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.