View Single Post
  #3  
Old 1st November 2011, 08:54
alleks alleks is offline
Senior Member
 
Join Date: Nov 2010
Posts: 157
Thanks: 9
Thanked 9 Times in 9 Posts
Default

Ok I've managed to do it by doing this:

PHP Code:

if (strpos($videosJson'<error>'))
            {
                
preg_match('/<message>(.+?)<\/message>/'$videosJson$match);
                
show_error("<strong>$tag</strong>: $match[1]");
            } 
Reply With Quote