Current Path : /webspace/www.alexishaulot.be/html/admin/ |
Current File : /webspace/www.alexishaulot.be/html/admin/getphotos.php |
<?php header('Content-type: application/xml'); require_once("../config.php"); $query = "select * from photo where reportage_id=".$_REQUEST['rep']; $res = mysql_query($query,$link); echo "<reportage>"; while ($rec = mysql_fetch_assoc($res)) { echo "<photo id=\"".$rec['id']."\">".$rec['titre']." - ".preg_replace("/\.\.\/imgs_alexis/","",$rec['image'])."</photo> "; } echo "</reportage>"; ?>