zelfde soort

Gestart doorQfrijters11 reacties52 weergaven

12 berichten · pagina 1 van 1

Qfrijters

Lid · Topicstarter

Berichten
7
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hallo kan iemand eenzelfde soort website als http://lolhoek.nl/ maken ik heb niet heel erg veel punten.
0
Berichten
6.485
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
dat is een 9gag kloon?Volgens mij staat hier ergens op het forum ook een kloon gratis.
0
Qfrijters

Lid · Topicstarter

Berichten
7
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
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."
?>
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
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]
?>
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Mooie titel ook, ik zag meteen waarover het topic ging en of ik in aanmerking kwam om je te helpen of niet.
0
Qfrijters

Lid · Topicstarter

Berichten
7
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
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]
0
Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Sluit de "die" af? Je mist een aanhalingsteken, haakje en puntkomma...
0
Qfrijters

Lid · Topicstarter

Berichten
7
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
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]
?>
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Probeer het?
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Dat slaat nergens op.
quotes weg om je die, want het is een functie, geen string.

Toon eens meer relevante code?
0
Qfrijters

Lid · Topicstarter

Berichten
7
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
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
0
Berichten
6.485
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Je moet je query zo schrijven dat hij wel voldoet aan de syntax.
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren