php - An IF statement is resulting in a Catch error message -
I have a PHP form where one of the fields in the SQL table appears as a link though I I want to display something other than data and then there is something in that area. It's a gig list and I want the option to display a link on 'setlist' I do not want it to display the filename, though it does now, but something like an image icon or 'SET' < P> Someone has suggested that I add
($ line ['gigsetlist'] == "") {code but it An unexpected catch is taken .. The error message
is the code with the above if the statement is included. Can anyone tell if what could be missing or disputed? & Lt; TD & gt; '$ Line [' gigshortdesc ']' & lt; / TD & gt; & Lt; TD & gt; '; If ($ line ['gigsetlist'] == "") {Print '& lt; A href = "set / '. $ Line [' gigsetlist '] .php" onclick = "return openin (this.href, this .target, 480, 480, 1, 0, 0, 0, 0, 1) ; "Rel =" nofollow "target =" _ setlist "& gt; '. $ Line ['gigsetlist'] '& lt; / A & gt; & Lt; / TD & gt; & Lt; / TR & gt; '; }} Print '& lt; / Table & gt; '; $ Dbh = null; } Hold (PDOException $ e) {echo $ e-> GetMessage ();}? & Gt; Many thanks
change
From:
if ($ line ['gigsetlist'] == "") From:
($ Line ['gigsetlist']! = "") You will not see the equivalent of clearing the $ line ['gigsetlist'], which means that there is some data in it, Display the link
Comments
Post a Comment