Purpose: Use this page to insert play records in the database.
Form: | yyyy/mm/dd;GameName[/player count][;Player[+teammate][/points]]* |
Examples: | 2002/07/28;Vampire;Andrew;Ed;Dan |
Enter records here:
DEBUG: Got text that explodes into " . sizeof( $records ) . " records.
\n"; $insertRecords = ""; for ( $i = 0; $i < count( $records ); $i++ ) { $record = $records[ $i ]; if ( 0 < strlen( $record ) ) { // First validate that this is a valid record. // validation on, warnings on echo "Processing record: \"$record\"
\n"; // DEBUG // record, sqlExecute, warnings, errors if ( false == insertRecord( $record, false ) ) { // Not inserted. Reattach for another go at it. echo "Record not inserted.
\n"; if ( strlen( $insertRecords ) > 0 ) $insertRecords .= "\n"; $insertRecords .= $record; } else { // validation off, warnings off // echo "DEBUG: Record validated.
\n"; // DEBUG insertRecord( $record, true, false ); // record, sqlExecute, warnings, errors } // if } // if strlen } // for each record // State number of plays // echo "There are " . countRows( "Plays" ) . " record(s) in the Plays table.
\n"; } // strlen > 0} // if issetdisplayInsertForm( $insertRecords );?>