I was wondering what the best way to go about making an SQL file generator. Basicly I want a form type application that has some variable fields and prints them on a .sql file with other things.
EG:
/*
$Item_name
*/
INSERT INTO `vendors` VALUES ('$npc_id', '$item_number', '1');
And return something like:
/*
Sword
*/
INSERT INTO `vendors` VALUES ('25000', '29362', '1');
I want it to be able to generate a variable amount in 1 .sql file. ( It's 3am, sorry about the grammar)
EG:
/*
<<<<ONE-HANDED SWORDS>>>>
*/
/*
Talon of Azshara
*/
INSERT INTO `vendors` VALUES ('25000', '30082', '1');
/*
The Sun Eater
*/
INSERT INTO `vendors` VALUES ('25000', '29362', '1');
/*
Fang of the Leviathan
*/
INSERT INTO `vendors` VALUES ('25000', '30095', '1');
Thanks alot.
-Linden