Devboy Posted November 2, 2007 Share Posted November 2, 2007 can you guys see anything wrong with this? $check_contestant = tep_db_query("select contestants_name, contestants_email from " . TABLE_CONTEST . " where contestants_email = '" . tep_db_input($contestant_email) . "'"); $already_entered = $check_contestant['contestants_email']; if ($already_entered == $contestant_email) { tep_redirect(tep_href_link(FILENAME_CONTEST, 'entered=1' , 'NONSSL')); } Does anything look wrong in that code? Quote Link to comment https://forums.phpfreaks.com/topic/75815-right-ok-can-you-see-anything-wrong-with-this-code/ Share on other sites More sharing options...
fenway Posted November 2, 2007 Share Posted November 2, 2007 I don't see any SQL... just PHP code. Echo the query. Quote Link to comment https://forums.phpfreaks.com/topic/75815-right-ok-can-you-see-anything-wrong-with-this-code/#findComment-383726 Share on other sites More sharing options...
Devboy Posted November 2, 2007 Author Share Posted November 2, 2007 well the sql is: tep_db_query("select contestants_name, contestants_email from " . TABLE_CONTEST . " where contestants_email = '" . tep_db_input($contestant_email) . "'"); I will echo the query . never thought of that heh Quote Link to comment https://forums.phpfreaks.com/topic/75815-right-ok-can-you-see-anything-wrong-with-this-code/#findComment-383732 Share on other sites More sharing options...
teng84 Posted November 2, 2007 Share Posted November 2, 2007 I don't see any SQL... just PHP code. Echo the query. yes better to post it in phphelp section Quote Link to comment https://forums.phpfreaks.com/topic/75815-right-ok-can-you-see-anything-wrong-with-this-code/#findComment-383921 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.