On Thu, Jun 23, 2011 at 15:46, Chris Stinemetz <chrisstinemetz@xxxxxxxxx> wrote: >> >> Use an if or a switch. For example: >> > > I think your suggestions are exactly what I am looking for. I am not > sure exactly where to place it. Do I insert it after the query > statment? During your while() loop. This line here: <td class="post-content">' . $posts_row['post_tptest'] . If you convert it to a function as Karl suggested, you could do something like this: <td class="post-content">' . getSpeed($posts_row['post_tptest']) . -- </Daniel P. Brown> Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php