DangThao 81 Report post Posted August 12, 2018 Hey guys! How to make the below TO: when it takes you to that award&buy=1 It will be like: If you know how, please let me know. Quote Share this post Link to post Share on other sites
EZEQUIEL 7 Report post Posted August 12, 2018 explain better ... and I will help you. Quote Share this post Link to post Share on other sites
quad 17 Report post Posted August 12, 2018 (edited) $id = 0; if (isset($_GET['buy'])) { $id = (int)filter_input(INPUT_GET, 'buy'); // should return 1 in your case } then, you can create your own function to return item data. function GetItemData($id) { $con = ...; // initialize your db connection $query = 'SELECT name, quota, whateveryourneed FROM table WHERE id=$id'; // execute sql query $stmt->$con->prepare($query); $stmt->execute(); return $stmt->fetchAll(); } In your php file you have your param (buy) and your function to gather data (GetItemData), so you use it together. $data = GetItemData($id); Then you pass it to your template file and display it. if ($data) { echo $data['name']; } Edited August 12, 2018 by quad Quote Share this post Link to post Share on other sites
DangThao 81 Report post Posted August 13, 2018 6 hours ago, DangThao said: Hey guys! How to make the below TO: when it takes you to that award&buy=1 It will be like: If you know how, please let me know. As you can see i've shown two pictures, seems like you don't understand. IDK what else to explain 'cause it's so simple. I want when you buy the item it takes you to award&buy=1 (which is picture one) """""""""""""BUT""""""""""""""" i want when it takes you to award&buy=1, it will be like picture 2 instead. Quote Share this post Link to post Share on other sites
Onioni 58 Report post Posted August 13, 2018 3 hours ago, DangThao said: As you can see i've shown two pictures, seems like you don't understand. IDK what else to explain 'cause it's so simple. I want when you buy the item it takes you to award&buy=1 (which is picture one) """""""""""""BUT""""""""""""""" i want when it takes you to award&buy=1, it will be like picture 2 instead. You need to edit .tpl file for that Quote Download: Nightmare Demonic Helm Dimension Pirates Online files: get now New map Project: Flag PK Black Skin 3.1.3 for pko 1: Get now Share this post Link to post Share on other sites
quad 17 Report post Posted August 13, 2018 (edited) never mind. Edited August 13, 2018 by quad Quote Share this post Link to post Share on other sites
V3ct0r 2,151 Report post Posted August 13, 2018 I think it is POST query. Check for hidden input tags Quote Some useful links / Полезные ссылки Tips for making a topic in 'Questions & Help' / Рекомендации по созданию тем в разделе "Помощь" Server Advertising Section Rules / Правила раздела "Реклама серверов" Available e-mail domains for registration / Допустимые e-mail домены для регистрации User groups / Группы пользователей User ranks / Звания пользователей "Broken" pictures on the forum / "Битые" изображения на форуме Beware of scammers! / Осторожно, мошенники! My developments / Мои разработки Mods for client and server / Моды для клиента и сервера PKOdev.NET website for Tales of Pirates Server / PKOdev.NET веб-обвязка для сервера Пиратии I do not provide any help in private messages and outside the forum. Use 'Questions & Help' section please. Thank you for understanding! Я не оказываю какую-либо помощь в личных сообщениях и вне форума. Пожалуйста, используйте раздел "Пиратия: Помощь". Благодарю за понимание! Share this post Link to post Share on other sites