note the single quote takes the string literally while a double quote intrepets the line.
example
$var = "hello world";
echo '$var'; //outputs $var
echo "$var"; //outputs hello world
there is another possible solution for your problem. I think you could use eval().
here are you solutions:
// solution 1
// changed to double quotes
$count =4;
while ($count > 0) {
$DispTitle = "$Title_up".$count;
$DispAuthor = "$Author_up".$count;
$DispDate = "$Date_up".$count;
echo ("<tr><td >$DispTitle</td><td>$DispAuthor</td><td>$DispDate</td></tr>");
$count = $count - 1;
}
//solution 2
// to lazy to try it, but *should* work.
// its my theory.
$count =4;
while ($count > 0) {
$DispTitle = eval($Title_up.$count);
$DispAuthor = eval($Author_up.$count);
$DispDate = eval($Date_up.$count);
echo ("<tr><td >$DispTitle</td><td>$DispAuthor</td><td>$DispDate</td></tr>");
$count = $count - 1;
}
also note that this line:
$DispDate = '$Date._up'.$count;
has a dot after $Date, i'm not sure if you want that there.
edit:
use a for loop, i think its sometimes easier to read
// syntax could be off.
for($count = 1; $count <= 4; $count++){
// same code in while loop
// except for $count = $count - 1;
}