Mike Anime
02-06-2010, 12:17 AM
i tried the static html option and the php option with varring versions of this code
ini_set ( 'display_errors', '1' );
error_reporting ( E_ALL );
?>
<?php
function cmp ( $a, $b ) {
return strcmp ( $a["name"], $b["name"] );
}
$ilinks = array ();
$filename = "ilinks.txt";
$fp = fopen ( 'ilinks.txt', 'r' );
while ( ( $data = fgetcsv ( $fp, filesize ( 'ilinks.txt' ) ) ) !== false ) {
$ilinks[] = array( "url" => $data[0], "name" => $data[1], "image_source" => $data[2] );
}
fclose ( $fp );
usort ( $ilinks, "cmp" );
$links_per_row = 1;
$count = 1;
echo '<table cellpadding=45 bgcolor=black width=100 cellspacing=0><tr>';
foreach ( $ilinks as $ilink ) {
echo sprintf ( '<td class="eight"><img src="%s" /> <br /><br /><br /> <a href="%s">%s</a> <br /><br /><br /> </td>', $ilink["image_source"], $ilink["url"], $ilink["name"] );
if ( $count % $links_per_row == 0 ) {
echo '</tr><tr>';
}
$count++;
}
echo '</tr></table>';
i am trying to get just the gallery images and links to show up
you can see what happened here http://animerealmz.net/
ini_set ( 'display_errors', '1' );
error_reporting ( E_ALL );
?>
<?php
function cmp ( $a, $b ) {
return strcmp ( $a["name"], $b["name"] );
}
$ilinks = array ();
$filename = "ilinks.txt";
$fp = fopen ( 'ilinks.txt', 'r' );
while ( ( $data = fgetcsv ( $fp, filesize ( 'ilinks.txt' ) ) ) !== false ) {
$ilinks[] = array( "url" => $data[0], "name" => $data[1], "image_source" => $data[2] );
}
fclose ( $fp );
usort ( $ilinks, "cmp" );
$links_per_row = 1;
$count = 1;
echo '<table cellpadding=45 bgcolor=black width=100 cellspacing=0><tr>';
foreach ( $ilinks as $ilink ) {
echo sprintf ( '<td class="eight"><img src="%s" /> <br /><br /><br /> <a href="%s">%s</a> <br /><br /><br /> </td>', $ilink["image_source"], $ilink["url"], $ilink["name"] );
if ( $count % $links_per_row == 0 ) {
echo '</tr><tr>';
}
$count++;
}
echo '</tr></table>';
i am trying to get just the gallery images and links to show up
you can see what happened here http://animerealmz.net/