Przeglądaj źródła

Added primitive ajax.php for testing

Foppe Hemminga 6 lat temu
rodzic
commit
d3cb99d27c
1 zmienionych plików z 1 dodań i 4 usunięć
  1. 1 4
      ajax.php

+ 1 - 4
ajax.php

@@ -36,11 +36,8 @@ function parse_data()
 	try{
 		// create a PostgreSQL database connection
 		$conn = new PDO( $dsn );
+		$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
 
-		// display a message if connected to the PostgreSQL successfully
-		if( !$conn ){
-			test_function();
-		}
 		$query_string = "UPDATE race_program
 			SET torn = TRUE
 			WHERE race_date = %s