include("config.php"); include($configpath."config.dat"); $HEADERNAV=implode("", file($templatepath."headnav.html")); $FOOTER=implode("", file($templatepath."footer.html")); $BRANDS=implode("", file($configpath."right/brands.txt")); $id=$_GET['id']; $sql = 'SELECT id, name, website,role, profile, jobs_rss, image FROM brands WHERE id='.$id; $retval = mysql_query( $sql, $conn ); $count_current=mysql_num_rows($retval); if(! $retval ) { die('Could not fetch testimonials: ' . mysql_error()); } while($row = mysql_fetch_array($retval, MYSQL_ASSOC)) { $name=$row['name']; $website=$row['website']; $role=$row['role']; $profile=$row['profile']; $jobs_rss=$row['jobs_rss']; $image=$row['image']; } if(!empty($jobs_rss)) { $xml = simplexml_load_file ($jobs_rss); $BLOG_NAME=$xml->title; //echo "before loop"; $j=1; foreach ( $xml -> channel -> item as $entry ) { $JOBS.="
".$entry -> description."