FlashCardsProject/build/project/src/jf/flashcards/address/model/FlashCardDatabase.java
/**
	 * Inserts a new name into flash_card_list
	 * flash_card_list tells the program which flashCardStacks are available 
	 * and displays them on the table on the FlashCardOverview 
	 * 
	 * @param newFlashCardStack
	 * @return true if successful else false
	 */
Inserts a new name into flash_card_list
flash_card_list tells the program which flashCardStacks are available
and displays them on the table on the FlashCardOverview

@param newFlashCardStack
@return true if successful else false
Inserts a new name into flash_card_list flash_card_list tells the program which flashCardStacks are available and displays them on the table on the FlashCardOverview @param newFlashCardStack @return true if successful else false
public static boolean insertIntoFlashCardList(String newFlashCardStack) {
		try {
			String insertQuery = "INSERT INTO flash_card_list(id, name) VALUES (?, ?)"; 
			PreparedStatement pstmt = db.prepareStatement(insertQuery);
			pstmt.setString(1, null);
			pstmt.setString(2, newFlashCardStack.toLowerCase());
			pstmt.executeUpdate();
			pstmt.close();
			newFlashCardStackTable(newFlashCardStack);
			return true;
		}
		catch(Exception e)
		{
			System.out.println("insert failed, thus it must be in the list already");
			System.err.println( e.getClass().getName() + ": " + e.getMessage() );
			return false;
		}
	}
public static boolean insertIntoFlashCardList ( String newFlashCardStack ) { try { String insertQuery = "INSERT INTO flash_card_list(id, name) VALUES (?, ?)" ; PreparedStatement pstmt = db . prepareStatement ( insertQuery ) ; pstmt . setString ( 1 , null ) ; pstmt . setString ( 2 , newFlashCardStack . toLowerCase ( ) ) ; pstmt . executeUpdate ( ) ; pstmt . close ( ) ; newFlashCardStackTable ( newFlashCardStack ) ; return true ; } catch ( Exception e ) { System . out . println ( "insert failed, thus it must be in the list already" ) ; System . err . println ( e . getClass ( ) . getName ( ) + ": " + e . getMessage ( ) ) ; return false ; } }
Inserts a new name into flash_card_list
 flash_card_list tells the program which flashCardStacks are available
 and displays them on the table on the FlashCardOverview
Inserts a new name into flash_card_list flash_card_list tells the program which flashCardStacks are available and displays them on the table on the FlashCardOverview
//id is an autoincrement int 