Hallo kan iemand eenzelfde soort website als http://lolhoek.nl/ maken ik heb niet heel erg veel punten.
zelfde soort
dat is een 9gag kloon?Volgens mij staat hier ergens op het forum ook een kloon gratis.
ik ben niet goed in scripts enzo maar weet iemand waar ik deze moet installeren?
$db1 = mysql_connect () or die ("Check the database connection."
mysql_select_db () or die ("Check the database connection."
?>
en deze
?php
$db1 = mysql_connect (mysql_host (eg: localhost or host.provider.ext, mysql_user, mysql_password) or die ("Check the database connection."
mysql_select_db (mysql_databasename) or die ("Check the database connection."
?>
$db1 = mysql_connect () or die ("Check the database connection."
mysql_select_db () or die ("Check the database connection."
?>
en deze
?php
$db1 = mysql_connect (mysql_host (eg: localhost or host.provider.ext, mysql_user, mysql_password) or die ("Check the database connection."
mysql_select_db (mysql_databasename) or die ("Check the database connection."
?>
Die waardes moet je gewoon invullen:
[COLOR= #0000BB]<?php
$db1[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]localhost[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]username[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"Check the database connection."[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]databasenaam[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"Check the database connection."[/COLOR][COLOR= #007700]);[/COLOR]
?> Mooie titel ook, ik zag meteen waarover het topic ging en of ik in aanmerking kwam om je te helpen of niet.
ik krijg deze melding (uiteraard laat ik mijn wachtwoord hier niet zien)
Fout
MySQL meldt:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near [COLOR= #0000BB]<?php
$db1[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]localhost[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]qfrijters[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]******[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL] [COLOR= #007700]([/COLOR]"Check th at line [COLOR= #0000BB]1[/COLOR] Sluit de "die" af? Je mist een aanhalingsteken, haakje en puntkomma...
dus dan wordt het dit:
[COLOR= #0000BB]<?php
$db1[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]localhost[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]qfrijters[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700])[/COLOR] or [COLOR= #DD0000]"die"[/COLOR] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"Check the database connection."[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]qfrijters_db[/COLOR][COLOR= #007700])[/COLOR] or [COLOR= #DD0000]"die"[/COLOR] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"Check the database connection."[/COLOR][COLOR= #007700]);[/COLOR]
?> Probeer het?
Dat slaat nergens op.
quotes weg om je die, want het is een functie, geen string.
Toon eens meer relevante code?
quotes weg om je die, want het is een functie, geen string.
Toon eens meer relevante code?
wat moet je doen als sql zegt
FOUT
SQL-query:
{margin :0;
MySQL meldt:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near {
margin:0 at line 1 Je moet je query zo schrijven dat hij wel voldoet aan de syntax.