• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Executing MySQL queries through PHP

R4g1ng

New Member
I made a blog script which uses MySQL. I would like to know how to execute queries through php, as an installation file. The script is mainly for me, but I'm letting a few friends use it as well, so it will save me time by not going to PHPMyAdmin to manually do the queries.
 
Do you mean installation in the sense to create the mysql db and tables? or to insert a blog?

please list your tables so I can create the code for you.
 
Actually if you know how to use phpMyAdmin, you can "Export" your tables.
It will generate a code of your database structure.
Just copy and paste that code into your $query and then do the usual mysql_query($query); in your php install file
 
i dont know, but i think the guy wants to know how to execute SQL queries through a script file. (i.e hisownscriptfile.php)
 
1. I'm a girl
2. I mean creating tables and all through a php file, I think Kabatak got the answer.
 
Back
Top