if statement - whether this php syntax is correct? -
High people, as I am a newbie, I want to check a file path, is an image or not
My status is correct or not .. My error
unexpected '& lt;'
Your code is incorrect, it should be assumed that your $ line array is valid.
& lt ;? Php $ ext = substr ($ line ['dfilepath'], stropo ($ line ['defy path', '.')); If ($ ext == 'jpg') {? & Gt; & Lt; Img src = "& lt ;? php echo base_ url (). '/ Uploads /'. $ Line ['diff path']? & Gt;" / & Gt; & Lt ;? Php} and {? & Gt; & Lt; Input type = "button" onclick = "loaddetails ('& lt ;? php resonant $ line [' dFilePath '] ;? & gt;';);" Value = "& lt ;? php echo $ row ['dFilePath'];? & Gt;" & Gt; & Lt ;? Php}? & Gt;
Comments
Post a Comment