Jump to content

help with preg_match()


dan_bsb

Recommended Posts

Hey, I'm having a trouble with a code:
 

 

Warning: preg_match(): Unknown modifier ')' in C:\xampp\htdocs\simulado\1\cadastro_query.php on line 24

 

 

Line 24 is:

        if(!preg_match("/^image\/(pjpeg|jpeg|png|gif|bmp/i)$", $img["type"])){
            $error[1] = "This is not a valid image type.";
            }

Can someone help?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.