Many thanks for your reply.
what I want to do is, if Fail = 1, then instead of outputting 1, output "Failed. Or if Fail = 2, output Pass.
I know I can do this with a php if statement but in this case I am outputting to a PDF using FPDF and PDF_MySQL_Table.
The code to output the query is:
$pdf->Table('SELECT SeqID, SeqText, Fail
FROM Avail, Table01Q
WHERE Avail.UniqueID = "' . $_SESSION['UniqueID'] . '"',$prop);
Is it not possible to code it so it out puts "Fail" or "Pass".
Again, many thanks for your time.