Hello Again.
I´m working on this script now or I should say practicing🙂 . The script is an php script working with AJAX and the script works in a way so if I write like Alo then the script gets all the games in my table that starts with that so an example would be Alone in the Dark and then I can select Alone in the Dark and then I dont have to write anymore.
Right now on my site I save all the news with a game name attached and if the game is in my database it will write out the game info next to the news. But now I would like the script to work as I wrote above so that if I write Alo it would spell out all the games in my table that starts like that but I would like the script to save it with the news with the game ID insted.
As I wrote above right now the script saves it with the game name and if the name changes I would have to change every news with the game. But if I save it with game ID insteed it wouldn´t matter if the game changes name because the ID dont change. So is it possible to get the name of the game with an AJAX script but save it with the ID of the game?