require('php/auth.inc');
if (!empty($_GET['id'])) {
$query = "SELECT titlu,subtitlu,articol,issue,has_photo,url FROM t_articol JOIN t_issues ON id_issue=t_issues.id WHERE t_articol.id='".$_GET['id']."'";
$result = mysql_query($query);
if (!$result) {
die(mysql_error());
} else {
$row = mysql_fetch_array($result, MYSQL_ASSOC);
$titlu=$row['titlu'];
$subtitlu=$row['subtitlu'];
$text=$row['articol'];
$text = str_replace("\n","
",$text);
$nr_art=$row['issue'];
$has_photo = $row['has_photo'];
$url = $row['url'];
}
}
?>
Untitled Document
error_reporting(0);
require('php/f_count.php');
?>
|
//$articol = ''.$titlu." "."\n";
$articol = $articol.'
'.$titlu.'
'.$subtitlu.'
'.$text.'
Source : http://www.thediplomat.ro/';
echo " ".$nr_art." | ";
echo ' ';
echo '';
echo ' | ';
echo ' ';
echo ' | ';
echo ' ';
echo ' | ';
echo '
';
echo '';
echo '
| ';
echo '
';
echo '';
echo ''.$articol.' | ';
echo '
';
?>
|
|