|
ALL-COMPUTER
Vedita ed Assistenza Computer
Via Roma, 11
86081 Agnone (IS)
Tel./Fax:
+39 0865 79461
|
require("manager1/config.php");
$connection = mysql_connect($dbhost, $dbusername, $dbpassword);
$cShowMax = 5;
?>
|
NEWS
- OFFERTE
|
$content = mysql_db_query($dbname, "SELECT * FROM newscontent ORDER BY event DESC");
$Xcontent = mysql_fetch_array($content);
if (($cShowMax == "999") OR ($cShowMax>=mysql_num_rows($content)))
{
$cShowMax = mysql_num_rows($content);
}
for ($y=1; $y<=$cShowMax; $y++)
{
$news = stripslashes($Xcontent["title"]);
$date = date("d/m/Y", strtotime($Xcontent["event"]));
$id = $Xcontent["id"];
echo " >";
echo $date."";
echo $news." >> ";
$Xcontent = mysql_fetch_array($content);
}
mysql_free_result($content);
?>
|
|
|
|