Would
Would that say if the query made the table or not ?Code:if(mysql_query(); == TRUE)
{
Printable View
Would
Would that say if the query made the table or not ?Code:if(mysql_query(); == TRUE)
{
Im no MySQL or PHP Expert but i think it may do it... :S Ask other people too though.
Dude thats a stupid way to do it and no it wouldn't work im 99.99% sure.
Just do:
PHP Code:$query = mysql_query() or die('Error: '. mysql_error());
echo("yayz it workd");
See, I told you im no Expert :D
So, this would work.
(Variables being in the config page)Code:<?PHP
require('includes/config.php');
for($K = 0; $K<sizeof($query); $K++)
{
$query = mysql_query($query[$K];) or die('Error: '. mysql_error());
echo("Tables created.Now, delete this file.");
?>
Your making some sort of script, with an installer, which means your releasing something ;) or selling it :(
Indeed, i'm making a forum.. which i'm releasing in a few months.
(for free) :P
Nice, Bgi Project to do! It'll be the first opensource forum to be released on this forum lol.
I'd be happy to be a mirror when you release it and would you let me be the first to congragulate you on completion :P xD
Just a nicer touch D:PHP Code:<?PHP
require('includes/config.php');
for($K = 0; $K<sizeof($query); $K++)
{
$query = mysql_query($query[$K]) or die('Error: '. mysql_error());
chmod("install.php", 0777);
unlink("install.php");
if(file_exists("install.php")) {
echo("Tables created! Now please delete this file.");
}
else {
echo("Tables created! This file has been deleted automatically for security reasons.");
}
?>
Your going in the credits list xD tyvm :)
Progress:
Installer made, still to bee tested then BETA'd
Other pages need to be coded, tested then BETA'd
Don't get me started on graphics and public BETA