Current Path : /webspace/www.alexishaulot.be/html/admin/ |
Current File : /webspace/www.alexishaulot.be/html/admin/db.php |
<?php require_once("../config.php"); $q = "Select * from reportage"; $res = mysql_query($q,$link); while ($rec = mysql_fetch_assoc($res)) { $titre = preg_replace('/th/','titre',$rec['image_som']); $upd = "update reportage set image_som_titre='".chop($titre)."' where id=".$rec['id']; #echo $upd."<br>"; $x = mysql_query($upd,$link); } ?>