die("Theres little problem: ".mysql_error()); Eh, als hij dood gaat (die) dan noem ik dat niet echt een little problem hoor

die("Theres little problem: ".mysql_error()); 

$query = "CREATE TABLE users (username VARCHAR(255),email VARCHAR(255),password VARCHAR(255))";
if(mysql_query($query)){
echo "Sucessfully created tables in database. Now remove this file from the server";
} else {
echo "Error, tables have not been created."; Bvanhaaren schreef:WTF... Wrm heb je dat nodig? Of maak je een installer?Een deel eruit:$query = "CREATE TABLE users (username VARCHAR(255),email VARCHAR(255),password VARCHAR(255))"; if(mysql_query($query)){ echo "Sucessfully created tables in database. Now remove this file from the server"; } else { echo "Error, tables have not been created.";

Yolofreek schreef:Hij plukt ook geen databases van internet, maar de nodige queries...kerel, watthefuck.. je database moet je zelf maken he, niet van internet plukken.
Yolofreek schreef:toevoeging op 3 oktober 2012, 17:29:41:kerel, watthefuck.. je database moet je zelf maken he, niet van internet plukken.IS hij vanwege deze text gebanned?

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]config.php[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$connection[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR]localhost[COLOR= #007700],[/COLOR] minecaft_brem[COLOR= #007700],[/COLOR] vanhaaren123[COLOR= #007700])[/COLOR]
or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
[COLOR= #0000BB]$db[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL][COLOR= #007700]([/COLOR]minecaft_login[COLOR= #007700],[/COLOR] [COLOR= #0000BB]$connection[/COLOR][COLOR= #007700])[/COLOR]
or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
[COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"CREATE TABLE users (username VARCHAR(255),email VARCHAR(255),password VARCHAR(255))"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700])){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Sucessfully created tables in database. Now remove this file from the server"[/COLOR][COLOR= #007700];
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Error, tables have not been created."[/COLOR][COLOR= #007700];
}[/COLOR]
?>