Add a new pokemon here. Please separate multiple inputs with a comma. If null, please use '-'.
I'm sorry that the project is on pokemon, atleast I'm only doing gen 1 pokemon. ;PAny way, i need to be able to open my forms.html, fill in the form boxes, click submit and have it INSERT INTO my sql document (will paste my sql db at the send), and also be able to use my API to see that newly submitted info.I DO NOT WANT CODE SNIPPETS, I WANT TO LEARN AND UNDERSTAND HOW THIS WORKS, SO ANY RESOURCES WOULD BE MUCH MORE BENEFICIAL TO ME THAN A COPY PASTA. THANK YOU.heres my sqldb: CREATE TABLE pokemon (id INTEGER PRIMARY KEY, name TEXT, type TEXT, immuneTo TEXT, strongResist TEXT, resits TEXT, weakTo TEXT, veryWeakTo TEXT, evolutionName TEXT); /* id | name | type | immuneTo | strongResist | resists | weakTo | veryWeakTo | evolutionName | */ INSERT INTO pokemon VALUES (1, "Pikachu", "Electric", NULL, NULL, "Electric, Flying", "Ground", NULL, "Raichu"); INSERT INTO pokemon VALUES (2, "Haunter", "Ghost, Poison", "Fighting, Normal", "Poison", "Grass", "Bug, Ghost, Ground, Psychic", NULL, "Gengar"); INSERT INTO pokemon VALUES (3, "Kadabra", "Psychic", "Ghost", NULL, "Fighting, Psychic", "Bug", NULL, "Alakazam"); INSERT INTO pokemon VALUES (4, "Snorlax", "Normal", "Ghost", NULL, NULL, "Fighting", NULL, NULL); INSERT INTO pokemon VALUES (5, "Diglett", "Ground", "Electric", NULL, "Poison, Rock", "Grass, Ice, Water", NULL, "Dugtrio"); INSERT INTO pokemon VALUES (6, "Geodude", "Ground, Rock", "Electric", "Poison", "Fire, Flying, Normal, Rock", "Fighting, Ground, Ice", "Grass, Water", "Graveler"); SELECT * FROM pokemon;Submitted April 27, 2018 at 05:37PM by extDASH
No comments:
Post a Comment