SimpleShop - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13) +--- Thread: SimpleShop (/showthread.php?tid=4462) |
SimpleShop - villeristi - 2013-03-13 Hi there, I'm coding a simple Shop plugin to GS from existing shop. I'm stuck to situation where I'm trying to fetch data from db to gs plugin admin area and nothing gets printed... Test code looks like this: PHP Code: require 'plugin/config.php'; config.php is the file where the connections are made and they are ok. Anyone who could help me with this...? RE: SimpleShop - timme - 2013-03-13 Check if there are any Results PHP Code: require 'plugin/config.php'; RE: SimpleShop - villeristi - 2013-03-13 (2013-03-13, 20:43:46)timme Wrote: Check if there are any Results Hey! Thanks for the reply. Alltough there was a minor error in config.php. and now I have a second error While there's only one $_GET (ex. load.php?id=shop&page=category ) everything is fine. When I assign one more (ex. load.php?id=shop&page=edit&id=1 ) errors appear... Aaarrgghh... Thanks again RE: SimpleShop - shawn_a - 2013-03-13 You have 2 ids, id is used internally for the slug or plugin. Also are you using _get variables in your query ? That is an sql injection. RE: SimpleShop - villeristi - 2013-03-13 (2013-03-13, 23:12:50)shawn_a Wrote: You have 2 ids, id is used internally for the slug or plugin. Ok, thanks. I didn't know about the ids used internally. And no, I'm not using global variables in my query Thanks! RE: SimpleShop - shawn_a - 2013-03-13 id=shop&page=edit&id=1 2 ids. probably want to use pid or something. |