On my NotePad++, the line at 116 shows the closing bracket of the ELSE black. Really really puzzling!I know my code is not neat but I will tidy it up based on the feedback I got so far but in the meanwhile my great mind is filled with the question why the line at 116 shows the closing bracket of the ELSE black.

$conn->query&#40;"UPDATE $user SET Status_To_Public $status_to_public WHERE Username = &#39;".$user."&#39;"&#41;; if&#40;$conn->query&#40;$sql&#41;===TRUE&#41;{echo"posted status for public to $user table!";$conn->close&#40;&#41;; exit&#40;&#41;;}else{echo"posting status for public to $user table failed!";$conn->close&#40;&#41;; exit&#40;&#41;;}

//Post User Status To Public in users table.$conn->query&#40;"UPDATE users SET Status_To_Public $status_to_public WHERE Username = &#39;".$user."&#39;"&#41;; if&#40;$conn->query&#40;$sql&#41;===TRUE&#41;{echo"posted status for public to users table!";$conn->close&#40;&#41;; exit&#40;&#41;;}else{echo"posting status for public to users table failed!";$conn->close&#40;&#41;; exit&#40;&#41;;}

Who is online

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum