-1
I did a quick search but did not find, so I’m posting here. Well, here’s the thing, I want when the person click one link (in the case <a href=.......>inserir</a>
) execute the following SQL code:
INSERT INTO `rooms` (`id`, `roomtype`, `caption`, `owner`, `description`, `category`, `state`, `users_now`, `users_max`, `model_name`, `public_ccts`, `score`, `tags`, `icon_bg`, `icon_fg`, `icon_items`, `password`, `wallpaper`, `floor`, `landscape`, `allow_pets`, `allow_pets_eat`, `allow_walkthrough`, `allow_hidewall`, `wallthick`, `floorthick`, `achievement`) VALUES
('', 'private', '', '', 'Novo modelo de quarto', '1', 'locked', '0', '100', 'model_recep2', 'hh_room_nlobby2', '538', '', '12', '0', '', '', '0.0', '407', '0.0', '0', '0', '1', '1', '-2', '-2', '0');
From what I saw on the Internet js
, I even created a page with the hash $inserirroom
and this SQL above, but I don’t know how to do this so that by clicking on link such code is executed. Thank you!
Simply point the href of your link to the php that does this Insert. Or there’s something I don’t understand?
– bfavaretto