Saahil Posted November 29, 2020 Share Posted November 29, 2020 if($a==1) {?> <div class="container-fluid"> <div class="row"> <div class="col-lg-6 col-md-offset-3"> <div class="panel panel-primary"> <div class="panel-heading "> <h2 class="panel-title text-center ">Information</h2> </div> </div> </div> </div> </div> ?>php } Can you please help to identify and correct the above code error Quote Link to comment https://forums.phpfreaks.com/topic/311777-unexpected-end-of-file/ Share on other sites More sharing options...
Barand Posted November 29, 2020 Share Posted November 29, 2020 The most common causes of that error are an opening { or " without a corresponding closing } or " Quote Link to comment https://forums.phpfreaks.com/topic/311777-unexpected-end-of-file/#findComment-1582696 Share on other sites More sharing options...
jodunno Posted November 29, 2020 Share Posted November 29, 2020 look closer at the last line in the code that you have posted: ?>php } try this instead: <?php } ?> Quote Link to comment https://forums.phpfreaks.com/topic/311777-unexpected-end-of-file/#findComment-1582697 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.