$id=$_GET['id']; require_once("../connexion/connexion-mysqli-only.inc"); require_once("functions.php"); $sql="SELECT city,UNIX_TIMESTAMP(date) as date,title,tag,body,auteur from news WHERE id='$id' AND code='1' "; $result = $mysqli->query($sql); $total=0; $page=""; while ($row = $result->fetch_assoc()){ $city=$row['city']; $city=ucfirst($city); $date=$row['date']; #get unix time $auteur=$row['auteur']; $date=date("j/m/y H:i",$date); #format unix time $title=$row['title']; $body=$row['body']; $body=stripslashes($body); $title=stripslashes($title); #$body = preg_replace('/[\r\n]+/s', '
', $body); # $body = preg_replace('/[\r]+/s', '
', $body); # $body = preg_replace('/[\n]+/s', '
', $body); } ?>
abp.bzh
|
echo "$title\n"; echo ""; echo ""; echo "$city $date par $auteur\n"; echo ""; ?> echo $body; ?>
|