Is there any auto add PHP script?
NOTE: sorry im double posting in the javascript and php forum. Im not sure which code language will be able to do what i need.
I have a HUGE SQL file with 1000s of queries, but i need to convert that to xml. It is the Quran (huge holy book) and i need to covert it to xml for a module i am making for Joomla.
Here is an example of one line
Code:
INSERT INTO quran VALUES (1, 'The Opening', 1, 1, '1 . In the name of Allah , the Beneficent , the Merciful');
There are thousands of lines like this one.
Bascially <query> before every INSERT INTO quran it detects? And insert a </query> after every )' it detects?
If thats not possible, is there any code that will insert a </query><query> after every enter it detects?
Or is this kind of job not possible with Javascript? Maybe PHP?