redarrow Posted June 6, 2006 Share Posted June 6, 2006 if i call this script install.php and goto that url will then i get the installed database information.trying to learn how to install database entry via php.I wont to learn the step by step proceger any links cheers.install.php[code]CREATE TABLE `members` ( `id` MEDIUMINT(8) UNSIGNED NOT NULL AUTO_INCREMENT, `Name` varchar(30) NOT NULL default '', `address` varchar(30) NOT NULL default '', PRIMARY KEY (`id`)) TYPE=MyISAM AUTO_INCREMENT=1[/code] Quote Link to comment https://forums.phpfreaks.com/topic/11287-installphp-help/ Share on other sites More sharing options...
poirot Posted June 6, 2006 Share Posted June 6, 2006 Why don't you use something like that:sql.txt - stores queries.install.php - executes the queries:[code]<?php// Connect to db and stuff$query = file_get_contents('sql.txt');mysql_query($query)?>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/11287-installphp-help/#findComment-42258 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.