View Single Post
  #3  
Old 01-14-2009, 06:13 PM
Kev Offline
forum loafer
 
Join Date: Jan 2009
Posts: 5
Quote:
//---------------------------- Making thumbs row

// for each record ...
while(list($id,$title,$name) = mysql_fetch_row($query))
{
// from the thumbnail row. This could be build by tables too.
$title = pullout($title);
$title = htmlspecialchars($title,ENT_QUOTES);
$thumbnail = ltrim($cfgrow['thumbnailpath'], "./")."thumb_".$name;
$thumbnail_extra = getimagesize($thumbnail);
$local_width = $thumbnail_extra['0'];
$local_height = $thumbnail_extra['1'];
$thumb_output .= "<a href='{$cfgrow['siteurl']}" . (($mod_rewrite_urls) ? "p/$id" : "index.php?showimage=$id") . "'><img src='{$cfgrow['siteurl']}".$thumbnail."' alt='".$title."' title='".$title."' width='".$local_width."' height='".$local_height."' class='thumbnails' /></a>";
} //end while
// initialize page counter
$pagecounter=0;
how can i change the "p/&id" to "/$title", cause just like that ..it doesn't work!
Reply With Quote