I'm honestly so frustrated right now with php writers block it's driving me nuts so hopefully I can get some answers here.
I'm going to run this while statement
$get_world = mysql_query("select * from championship where belt=4 DESC");
while($dworld = mysql_fetch_array($get_world)) {
// STUFF GOES HERE
And basically from the looks of it, pretty easy to go by.
I have the following columns in the table championship
id
datewon
champid
belt
defeatchampid
So whenever I echo this thing out I want to display
<tr><td>$dworld['datewon']</td><td><a href='member.php?id=$champid'>Champ ID Name</a></td><td><a href='member.php?id=$defeatchampid'>Defeated Champ Name</a></td><td>// Date Lost</td><td>// Length of Championship</td></tr>
Now here is when I run into my confusion state. Because I'm doing a display in DESC order I need to figure out how to figure out how to calculate the date lost. Obviously for the first display in the result it won't have a date lost but after that I'm not real sure how I could figure out through a calculation on when a certain person lost a belt, then I want to figure out how long of a time period that champion had it for.
Hopefully I didn't confuse anyone on my explanation but is what I'm trying to do possible or too confusing?