query("select * from articulos where ar_codigo = '$id'");
if($consulta_->num_rows > 0)
{
$fila = $consulta_->fetch_assoc();
$titulo= $fila['ar_titulo'];
function invertirfecha($fecha)
{
$fech = strtok ($fecha,"-");
$fech1 = "";
while ($fech)
{
if ($fech1 =="")
{
$fech1 = $fech;
}
else
{
$fech1 = $fech."/".$fech1;
}
$fech = strtok ("-");
}
return $fech1;
}
$fecha= invertirfecha($fila['ar_fecha']);
?>