laughs One of the more original examples I've seen.
Okay, try this. First create a new table. You could call this one tblGuyStatus. Give it at least two fields (AutoID, StatusText). Have the AutoID field be the primary key Then, place the different status texts in there ("I slept with ", "Thank God I didn't sleep with ", "Why won't anyone sleep with " ... ad infinitum). Also put whatever formatting you like in this field.
Now, add a field (I'll call it StatusID) to your guystable for the status. The status number will refer to an entry in the tblGuyStatus field.
How are you selecting which guys you want to print? That could affect how the code is written.
One example could look something like this:
<?php
// Assuming we have the guys' IDs in a comma separated string
$guystring_st = "1,5,15,6,20";
$guy_array = explode(",", $guystring);
$sel_st = "SELECT guystable., tblGuyStatus. FROM guytable LEFT JOIN guystable.StatusID=tblGuyStatus.AutoID";
$sel_rs = mysql_query($sel_st);
while($sel_ar = mysql_fetch_array($sel_rs))
{
if(in_array($sel_ar[id]))
{
"<p align='right'>-- $sel_ar[StatusText] . $sel_ar[name] ."</p>";
}
}
?>
That what you're looking for?