PDA

View Full Version : Need help with a install script.



Jae
24-11-2006, 02:41 PM
I need a script that when run will install some queries, +REP to all trys, i have tried a few ways and failed.I'm thinking maybe setting the queries in a array then using a mySQL query to install them all ?

Heinous
24-11-2006, 03:25 PM
mysql_query($query);

...

Or be more specific as why you can't use that?

Jae
24-11-2006, 03:38 PM
I didn't try that, I thourght of it but didn't now the syntax.Ty rep+

PS: How could i make a if statement to see if it worked ?

Heinous
24-11-2006, 03:43 PM
Just create the table(s) via phpmyadmin, and once it's done, click "create php code", or something like that, voila. Time saver.

Jae
24-11-2006, 03:50 PM
I'm making a script for my radio panel and i need the script to install all the queries when the page is loaded, and for it to tell them if its done.

Heinous
24-11-2006, 03:52 PM
So just make a dud database, add all the tables, after each one, paste the code from "create php code" into a mysql_query and do it all at once.

Jae
24-11-2006, 03:55 PM
kk tyvm :)

Want to hide these adverts? Register an account for free!