so first is this i use this code for getting latest posters in my page worked finu until made torrent without poster (default poster) that was like handbrake for all page about minute until started to move .. why ? i think in code i missed part what says what to do if default image right ?
other when i hosted my page on localhost as only page on "browse" i see the posters when go to torrent details link but when i seted 2 pages on same host
with same source they disapeard .. wierd because basicli it shoud work right ? because it locates image by using baseurl and then add stuff or maybe i need to add my directory somewhere ?
sorry for long post :D :D have a nice reading (realy respect you if you readed this all )
PHP Code:
// Start of Last X torrents with poster mod
print("<h2>Latest images");
print("</h2>\n");
$query = "SELECT id, name, poster FROM torrents WHERE poster <> '' ORDER BY added DESC limit 15";
$result = mysql_query( $query );
$num = mysql_num_rows( $result );
// count rows
if ( $CURUSER) {
echo "<table width=100% border=1 cellspacing=0 cellpadding=10><tr><td align=center>\n";
echo '<tr><td><marquee scrollAmount=3 onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=3" scrolldelay="0" direction="right">';
$i = 20;
while ( $row = mysql_fetch_assoc( $result ) ) {
$id = unsafeChar( $row['id'] );
$name = safeChar( $row['name'] );
$poster = safeChar( $row['poster'] );
$name = str_replace( '_', ' ' , $name );
$name = str_replace( '.', ' ' , $name );
$name = substr( $name, 0, 50 );
if ( $i == 0 )echo'</marquee><marquee scrollAmount=3 onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=3" scrolldelay="0" direction="right">';
echo "<a href=$BASEURL/details.php?id=$id title=\"$name\"><img src=\"" . safeChar( $poster ) . "\" width=\"100\" height=\"120\" title=\"$name\" border=0 /></a>";
$i++;
}
echo "</marquee></td></tr></table>";
}
// ////////End poster mod