Viewing file: stampa.php3 (1.45 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<SCRIPT language="php"> $requiredUserLevel = array(1,2,3,7); include("/home/mnnews/public_html/login/user/phpSecurePages/secure.php"); </SCRIPT>
<html>
<head>
<meta http-equiv="Content-Language" content="sl">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<title>MIN@ - Text Only</title>
</head>
<body>
<p> </p>
<SCRIPT language="php">
mysql_connect (localhost, us10505a, proba);
mysql_select_db (db10505i);
$result = mysql_query ("SELECT title,details,date,Id,Slag,topicId FROM news ORDER BY ID desc LIMIT 70 ");
if ($row = mysql_fetch_array($result)) {
do {
$tip=$row["topicId"];
$before=$row["details"];
$after=str_replace("#","'",$before);
$prazno=nl2br($after);
print ("<p><START></p>
");
print $row["date"];
print ("<br>");
print ("*");
print ("<font size=\"3\">");
print $row["Slag"];
print ("</font>");
print ("<br>");
print ("<br>");
print ("<font size=\"4\"><b>");
print $row["title"];
print ("</font><br></b>");
print ("*");
print ("<br>");
if($tip==3){
print $after;}
else{
print $prazno;}
print ("<p>");
print ("<p><END></p>
");
print ("<br>");
} while($row = mysql_fetch_array($result));
} else {print "Nema clanaka!";}
</SCRIPT>
</body>
</html>
|