blasterstudios
Technical User
I am trying to store the image filename in my database for a given field. The user has the option of using an image for a field or inputing text. I need to be able to check if the text in the field is an image or actual text. The field type is LONGTEXT and basically if its an image, it will just say "blah.gif" or "blah.jpg". If its text, it will have way more text in the field or may just say "leave empty" or something. How do i check to see if the text in the field is the filename of an image or just plain text?