[snip] Well that could work, but i want to re call it every time it finds the occurance of $row
if you said $row = row_color(); then echo "$row<br>$row<br>$row"; it would output the content of $row1 three times. Because $row =row_color calls it, defines the returned value of row_color as the contents of it, and never calls it again. I need it to dynamicly call it every time around. [/snip] Top posting == bad replying off list == bad Then loop through the rows with either a for loop or while loop. while(TRUE === $row){ echo row_color($row) . "<br>"; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php