I want to make a database restore function that will parse a dump made with Php My Admin and will do the queries.
I have already a mysql class that does the query, but it only knows to do a single query. So i am looking of a way to split the file content into single queries.
I tried to play with preg_split ... but didn't managed to get it to work
$queries = preg_split('/[(.+);\s*\n/', $content, -1, PREG_SPLIT_NO_EMPTY);
unfortunately i am not very good with regular expression :( thanks for your help.