View Single Post
Old 05-22-2009, 09:29 PM   #4 (permalink)
allworknoplay
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

Quote:
Originally Posted by Sirupsen View Post
Any chance you can show me a small bunch of code with what you exactly mean? :)
Sure, here's a snippet, you should be able to figure out the rest based on the pattern..

PHP Code:
<?                    
$result 
mysql_query("SELECT id,thumb,p1,p1d,p2,p2d FROM Portfolio ORDER BY id DESC");

while(
$row mysql_fetch_assoc($result)) {
$id $row['id'];
$thumb $row['thumb'];
$p1 $row['p1'];
$p1d $row['p1d'];
$p2 $row['p2'];
$p2d $row['p2d'];

echo 
'<a rel="shadowbox[';
echo 
$p1;
echo 
'];" href="';
echo 
$p1;
echo 
'" class="option" id="thumb" title="';
echo 
$p1d;
echo 
'" ><img src="';
echo 
$thumb;
echo 
'" / class="thumbs"></a> ';

I'll take a look at your IF statements, a lot is redundant...
allworknoplay is offline  
Reply With Quote