Outputting an HTML table [closed]

Zz Flash zZ

New Member
This is my php file:\[code\]<?phpini_set('display_errors','off'); //$abc= $_POST['name'];$abc= "One Day in Rajkot"; list($first,$second) = explode(' in ',$abc); $text1[]=$first; $text2[]=$second; foreach($text1 as $event){$event;}foreach($text2 as $region1){$region1;}$r = file_get_contents('reg.xml');$p = file_get_contents('product.xml');$region = simplexml_load_string($r);$product = simplexml_load_string($p);//list($entity,$entity1) = $region->xpath("//*[@value='http://stackoverflow.com/questions/15701535/$event']/@entity_id | //*[@value='http://stackoverflow.com/questions/15701535/$region1']/@entity_id");list($entity) = $region->xpath("//*[@value='http://stackoverflow.com/questions/15701535/$event']/@entity_id");$entity=(string)$entity;if (strlen(trim($entity))==0){ echo $event.' Event not found'; exit;}list($entity1) = $region->xpath("//*[@value='http://stackoverflow.com/questions/15701535/$region1']/@entity_id");$entity1=(string)$entity1;if (strlen(trim($entity1))==0){echo $region1.' Region Not Match';exit;} //check the $entity in product.xmllist($prid) = $product->xpath("//dist_activity[@value='http://stackoverflow.com/questions/15701535/$entity'] | //dist_region[@value='http://stackoverflow.com/questions/15701535/$entity1']/ancestor::product_id/@value");$prid=(string)$prid;echo "Event Name:- $event, Region Name:- $region1, entity:- $entity,$entity1, Product_id:- $prid";?>\[/code\]This is my output:\[code\]Event Name:- One Day, Region Name:- Rajkot, entity:- 10068,5069, Product_id:- 1\[/code\]I want an HTML table around this output.
 
Back
Top