Location: PHPKode > projects > DDL CMS > Upload these files to your webspace/instantle/links.inc
<?php
	switch($instantLEsort)
	{
		case 'asc':
			$sortLinks = 'sitename';
			break;
		case 'date':
			$sortLinks = 'id';
			break;
		case 'random':
			$sortLinks = 'RAND()';
			break;
	}
	$linkQuery = dbcom("SELECT * FROM instantle ORDER BY $sortLinks LIMIT $instantLEmaxLinks;");
	if(mysql_num_rows($linkQuery) > 0)
	{
?>
									<table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
<?php
		$links = 1;
		while($linkArray = mysql_fetch_assoc($linkQuery))
		{
			if($links == 1)
			{
?>
										<tr>
<?php
			}
			$url = $linkArray['siteurl'];
	    	if($instantLEclean != 1)
			{
				$url = $site_url . '/fwd.php?url=' . $url;
			}
			$description = $linkArray['description'];
			$title = $linkArray['sitename'];
?>
											<td width="20%" align="center"><a href="<?php echo $url; ?>" target="_blank" title="<?php echo $description; ?>"><?php echo $title; ?></a></td>
<?php
			if($links == 5)
			{
?>
										</tr>
<?php
				$links = 1;
			}
			else
			{
				$links++;
			}
		}
		if($links > 1)
		{
?>
										</tr>
<?php
		}
?>
									</table>
<?php
    }
?>
Return current item: DDL CMS