Pro_Lamer4e
Registered
някой може ли да ми страницира този код
<?php
require "conf.php";
require "functions.php";
echo "<center><font size=\"5\" color=\"red\">Файлове</font></center><hr color=\"red\">";
$query = mysql_query("SELECT * FROM `files` ORDER BY `id` DESC");
if (mysql_num_rows($query) > 0)
{
echo "<table border=\"0\" align=\"center\" valign=\"top\">\n";
while ($row = mysql_fetch_array($query))
{
$size = resize($row['pic']);
echo "<tr><td><table border=\"0\">
<tr><td valign=\"top\"><a href=\"".$row['pic']."\" target=\"_blank\"><img src=\"".$row['pic']."\" width=\"".$size['width']."\" height=\"".$size['height']."\" border=\"0\"></a></td>
<td valign=\"top\">".sakra6tenie($row['subject'])."<br /><br /><a href=\"".$row['file']."\" target=\"_blank\"><font color=\"red\">ИЗТЕГЛИ ФАЙЛА</font></a></td></tr>
</table><hr width=\"50%\"></td></tr>";
}
echo "</table>";
}
else
{
echo "<b>Все още няма файлове!</b>";
}
?>
<?php
require "conf.php";
require "functions.php";
echo "<center><font size=\"5\" color=\"red\">Файлове</font></center><hr color=\"red\">";
$query = mysql_query("SELECT * FROM `files` ORDER BY `id` DESC");
if (mysql_num_rows($query) > 0)
{
echo "<table border=\"0\" align=\"center\" valign=\"top\">\n";
while ($row = mysql_fetch_array($query))
{
$size = resize($row['pic']);
echo "<tr><td><table border=\"0\">
<tr><td valign=\"top\"><a href=\"".$row['pic']."\" target=\"_blank\"><img src=\"".$row['pic']."\" width=\"".$size['width']."\" height=\"".$size['height']."\" border=\"0\"></a></td>
<td valign=\"top\">".sakra6tenie($row['subject'])."<br /><br /><a href=\"".$row['file']."\" target=\"_blank\"><font color=\"red\">ИЗТЕГЛИ ФАЙЛА</font></a></td></tr>
</table><hr width=\"50%\"></td></tr>";
}
echo "</table>";
}
else
{
echo "<b>Все още няма файлове!</b>";
}
?>