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
Rofl, np.
No offense but.. You are making a forum but don't even know something simple like this...
I was going to say that Tom but I realised that isn't going to help him or this thread in anyway.
@Jaffa:
You are allowed to CHMOD to 0777 because a file's pemissions have to be set to 0777 for you to write to it or change its properties [:
The purpose of me doing it is to learn :) Thanks for your concern though.
Sometimes even the simplest thing, can be the hardest... :)
Its easier to learn if your enjoying what your doing.I enjoy doing big projects like this.Not little forms and echoing Hello World xD
Hello worlds are the best things you can EVER make ^^.
Lol xD
I'm making installer, so i need the crap.I need to loop through the queries to create all like 12 of them. xD Thanks anyway.
TBH Mr. Macro, if you can't figure that out and you put the ; after $query, I don't see how you can make a forum?
Im learning...