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? Quote 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? Quote 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 Quote 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? Quote 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!! Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.