Viewing file: stampa.php3 (1.23 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<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 (db10505g);
$result = mysql_query ("SELECT title,details,date,Id,Slag,topicId FROM news WHERE Id=$Id ");
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>
|