everlifefree Posted January 15, 2008 Share Posted January 15, 2008 Ok I have a report button on several pages that uses this php code: elseif (isset($_GET["mode"]) and $_GET["mode"] == "rp") { $select = myQ(" UPDATE `[x]gallery` SET `isbroken` = '1' WHERE `id` = '{$_GET["id"]}' "); $select = myQ(" SELECT SQL_CALC_FOUND_ROWS * FROM `[x]gallery` WHERE `processed` = '1' ORDER BY `date` DESC LIMIT ".(($page * $CONF["EZINE_SEARCH_RESULTS_PER_PAGE"]) - $CONF["EZINE_SEARCH_RESULTS_PER_PAGE"]).",{$CONF["EZINE_SEARCH_RESULTS_PER_PAGE"]} "); } but when I tried to add it to a different page that doesn't have all the other get things before it. It doesn't work. Here the coded I changed it to and added. if (isset($_GET["mode"]) and $_GET["mode"] == "rp") { $select = myQ(" UPDATE `[x]users` SET `isbroken` = '1' WHERE `id` = '{$_GET["id"]}' "); "); } Anybody know the correct way I could add this and have it work with out the extra? Link to comment https://forums.phpfreaks.com/topic/86063-solved-report-button-code-error/ Share on other sites More sharing options...
everlifefree Posted January 17, 2008 Author Share Posted January 17, 2008 anyone? Link to comment https://forums.phpfreaks.com/topic/86063-solved-report-button-code-error/#findComment-441499 Share on other sites More sharing options...
teng84 Posted January 17, 2008 Share Posted January 17, 2008 insert you code inside the code tags.. [ code][ /code ] and what is that special character on your update statement Link to comment https://forums.phpfreaks.com/topic/86063-solved-report-button-code-error/#findComment-441510 Share on other sites More sharing options...
everlifefree Posted January 17, 2008 Author Share Posted January 17, 2008 Ok I have a report button on several pages that uses this php code: elseif (isset($_GET["mode"]) and $_GET["mode"] == "rp") { $select = myQ(" UPDATE `[x]gallery` SET `isbroken` = '1' WHERE `id` = '{$_GET["id"]}' "); $select = myQ(" SELECT SQL_CALC_FOUND_ROWS * FROM `[x]gallery` WHERE `processed` = '1' ORDER BY `date` DESC LIMIT ".(($page * $CONF["EZINE_SEARCH_RESULTS_PER_PAGE"]) - $CONF["EZINE_SEARCH_RESULTS_PER_PAGE"]).",{$CONF["EZINE_SEARCH_RESULTS_PER_PAGE"]} "); } but when I tried to add it to a different page that doesn't have all the other get things before it. It doesn't work. Here the coded I changed it to and added. elseif (isset($_GET["mode"]) and $_GET["mode"] == "rp") { $select = myQ(" UPDATE `[x]users` SET `isbroken` = '1' WHERE `id` = '{$_GET["id"]}' "); } Anybody know the correct way I could add this and have it work with out the extra? Link to comment https://forums.phpfreaks.com/topic/86063-solved-report-button-code-error/#findComment-441580 Share on other sites More sharing options...
everlifefree Posted January 17, 2008 Author Share Posted January 17, 2008 HELP!! Link to comment https://forums.phpfreaks.com/topic/86063-solved-report-button-code-error/#findComment-441617 Share on other sites More sharing options...
everlifefree Posted January 18, 2008 Author Share Posted January 18, 2008 Still need help Link to comment https://forums.phpfreaks.com/topic/86063-solved-report-button-code-error/#findComment-442566 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.