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? 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. 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 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 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
Archived
This topic is now archived and is closed to further replies.