I'm using an Oracle database, and I have written a query that takes a users input and retrieves that info from the database. The whole thing works fine except when the user wants to search for records between 2 dates.
This call works fine:
Player.player_id LIKE'%"+ rsGS__v_PlayerID.replace(/'/g, "''"
+"%'
But this doesn't:
Games.game_date > ("+ rsGS__v_GameID.replace(/'/g, "''"
+", 'DD-MON-YYYY')AND Games.game_date <
("+ rsGS__v_GameID.replace(/'/g, "''"
+", 'DD-MM-YYYY')
I figure the call to the database has to be goofed up somehow, because if I just harcode the values in, it works fine.
This call works fine:
Player.player_id LIKE'%"+ rsGS__v_PlayerID.replace(/'/g, "''"
But this doesn't:
Games.game_date > ("+ rsGS__v_GameID.replace(/'/g, "''"
("+ rsGS__v_GameID.replace(/'/g, "''"
I figure the call to the database has to be goofed up somehow, because if I just harcode the values in, it works fine.