ecabrera Posted March 31, 2012 Share Posted March 31, 2012 it cant display the page i cant find the page i tryed to see whats wrong but it thing all brace and semicolos are were there suppose to be at it gives me a Server error <?php if(isset($_POST['submitbtn'])){ //will open up the db connection include "../includes/connect.php"; $errors = ""; $welcometitle = mysql_real_escape_string($_POST['welcometitle']); $welcomesection = mysql_real_escape_string($_POST['welcomesection']); $infotitle = mysql_real_escape_string($_POST['infotitle']); $infosection = mysql_real_escape_string($_POST['infosection']); $videotitle = mysql_real_escape_string($_POST['videotitle']); $videosection = mysql_real_escape_string($_POST['videosection']); if(isset($welcometitle && $welcomesection)) && !empty($welcometitle && $welcomesection)){ if(isset($infotitle && $infosection)) && !empty($infotitle && $infosection)){ if(isset($videotitle && $videosection)) && !empty($videotitle && $videosection)){ //adding them to the db $query = mysql_query("UPDATE home SET `welcometitle`=`$welcometitle`,`welcomesection`=`$welcomesection`,`infotitle`=`$infotitle`, `infosection`=`$infosection`,`videotitle`=`$videosection`"); header("location: http://www.website.org/control/edithome"); }else{ $errors = "Please fill in the Video Section"; } }else{ $errors = "Please fill in the Info Section"; } }else{ $errors = "Please fill in the Welcome Section"; } mysql_close();//will close the inlcude db connection } ?> Quote Link to comment https://forums.phpfreaks.com/topic/260042-doesnt-display-the-page/ Share on other sites More sharing options...
AyKay47 Posted March 31, 2012 Share Posted March 31, 2012 if(isset($welcometitle && $welcomesection)) && !empty($welcometitle && $welcomesection)) should read: if(isset($welcometitle, $welcomesection) && !empty($welcometitle) && !empty($welcomesection)) Quote Link to comment https://forums.phpfreaks.com/topic/260042-doesnt-display-the-page/#findComment-1332883 Share on other sites More sharing options...
ecabrera Posted March 31, 2012 Author Share Posted March 31, 2012 nothing i change the other two if(isset($welcometitle, $welcomesection) && !empty($welcometitle) && !empty($welcomesection)){ if(isset($infotitle, $infosection) && !empty($infotitle) && !empty($infosection)){ if(isset($videotitle, $videosection)) && !empty($videotitle) && !empty($videosection)){ Quote Link to comment https://forums.phpfreaks.com/topic/260042-doesnt-display-the-page/#findComment-1332884 Share on other sites More sharing options...
ecabrera Posted March 31, 2012 Author Share Posted March 31, 2012 sorry i forgot to remove one ) Quote Link to comment https://forums.phpfreaks.com/topic/260042-doesnt-display-the-page/#findComment-1332887 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.