TEI Survey Responses

"; if (!$result1) { echo ""; echo "
No responses found
"; exit; } $num1 = mysql_numrows($result1); $i=0; while ($i<$num1) { $r1 = mysql_fetch_row($result1, $i); $result2 = mysql_query ("select * from teisurvey where id='$r1[61]'"); if (!$result2) { echo "A database error has occurred."; echo ""; exit; } $num2 = mysql_numrows($result2); $r2 = mysql_fetch_row($result2, $b); echo " Date: $r2[0] Organization Type: $r2[1] $r2[2] Funding Source: $r2[3] $r2[4] Data Language: $r2[5] Data Period: $r2[6] Data Description: $r2[7] Data Genre: $r2[8] Data Quantity Encoded: $r2[9] Data Quantity Planned (6 months): $r2[10] Data Quantity Planned (2 years): $r2[11] Software Used For Encoding: $r2[12] Software Used For Publishing: $r2[13] "; $b++; $i++; } echo ""; $a=$a+10; echo "Chunk: $chunk
Remaining: $remaining
"; echo ""; //no previous results if ($chunk-10<0) { echo ""; echo "
No previous results"; echo "
"; echo ""; echo ""; echo ""; echo "
"; echo "
"; echo "

"; echo ""; exit; } //previous and next results elseif ($chunk>0 && $chunk+10<$remaining) { $c=$a-20; echo ""; echo "
"; echo ""; echo ""; echo ""; echo "
"; echo ""; echo ""; echo "
"; echo ""; echo ""; echo ""; echo "
"; echo ""; echo "

"; echo ""; exit; } //no next results elseif ($chunk+10>$remaining) { $c=$a-20; echo ""; echo "
"; echo ""; echo ""; echo ""; echo ""; echo "No next results"; echo "
"; echo ""; echo "

"; echo ""; exit; } else { exit; } } ?>