Tags
Asked 30+ days ago
29 Nov 2016
Views 203
jaggy

jaggy posted

PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in

PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in

what should be problem in this error . sorry i am learner at php
Mitul Dabhi

Mitul Dabhi
answered Jan 21 '18 20:16

it simple error arise with mostly if and else statement ,
ideally if .. else .. should be like

if( ..condition.. ){
//some code here
}
else {
// some code here 
}

if you forget any parenthesis it can cause problem "PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in" .

so pls check at line no of error you got solution . still did not get problem write down the code at here i will suggest pin point solution .
Edit Answer
Share
Post Answer