"; if ($rep < ' '){ $result = pg_Exec ($conn, "Select message,name,date,subject,pic,ip from mboard where id = '$id' order by repid ASC"); echo "
";
printf ( "Subject: %s ",pg_result($result,0,3)); printf ( "Posted by: %s",pg_result($result,0,1)); printf ( " On %s",pg_result($result,0,2)); printf ( " Poster IP: %s |
",pg_result($result,0,5));
printf ( "Message: %s ",nl2br(pg_result($result,0,0))); $picexists = pg_result($result,0,4); if ($picexists != ""){ printf ( "Attachment: ",pg_result($result,0,4)); } printf ( " |
";
printf ( "Subject: %s ",pg_result($result1,0,3)); printf ( "Posted by: %s",pg_result($result1,0,1)); printf ( " On %s",pg_result($result1,0,2)); printf ( " Poster IP: %s |
",pg_result($result1,0,5));
printf ( "Original Message: %s",pg_result($result1,0,0)); $picexists = pg_result($result1,0,4); if ($picexists != ""){ printf ( " Attachment: ",pg_result($result1,0,4)); } echo " |
";
printf ( "Replied by: %s",pg_result($result,0,1));
printf ( " On %s",pg_result($result,0,2));
printf ( " Poster IP: %s |
",pg_result($result,0,5));
printf ( "Reply Message: %s",pg_result($result,0,0)); $picexists2 = pg_result($result,0,4); if ($picexists2 != ""){ printf ( " Attachment: ",pg_result($result,0,4)); } echo " |