PHP ERROR!!!!!!!!!!!!!!!

Gestart doorRohimma16 reacties75 weergaven

17 berichten · pagina 1 van 2

Rohimma

Lid · Topicstarter

Berichten
1.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ik heb een gratis inlogscript gedownload maar er komt een error als ik de site open!

de error is:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user vhostswww@localhost (using password: NO) in /www/110mb.com/t/e/s/t/s/i/t/e/testsite321/htdocs/contactdb.php on line 8
Access denied for user vhostswww@localhost (using password: NO)

weten julie wat het betekent(ik begin net met php)
0
Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Je hebt je gegevens waarschijnlijk niet goed ingevuld, want er staat letterlijk:
"Toegang voor gebruiker vhostswww@localhost geweigerd (wachtwoord gebruik: NEE)

Kijk of op die pagina iets geincluded is bijv. config.php, verander in de config dan de gegevens van jouw database etc.
0
Rohimma

Lid · Topicstarter

Berichten
1.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ik heb niet echt verstand van php kan je het wat makkelijker uitleggen?
0
Berichten
592
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Plaats je PHP eens, en dan wel wachtwoord en gebruikersnaam enzo sterretjes maken.

Dan kan ik even kijken wat het probleem is, want dat had ik eerder vandaag ook nog. xd
PS: Ik ben ook pas een weekje bezig met php. smile
0
Rohimma

Lid · Topicstarter

Berichten
1.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
hier zijn ze:

index.php

<html>
<head></head>
<body>
<div id="menu"></div>
<div id="content">
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]login.php[/COLOR][COLOR= #007700]);[/COLOR]
?></div>
</body>
</html>


login.php

[COLOR= #0000BB]<?php[/COLOR]

[COLOR= #FF8000]/*
gemaakt door maikel van der knaap
*/


// sql connectie includen[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]contactdb.php[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #FF8000]// waar moet de bezoeker heengestuurd worden nadat hij/zij succesvol ingelogd is ?[/COLOR]
[COLOR= #0000BB]$redirect_pagina[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"pagina.php"[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]actie[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]inloggen[/COLOR][COLOR= #007700]) {[/COLOR]
[COLOR= #FF8000]// als inlogformulier is verstuurd[/COLOR]

    [COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"SELECT * FROM members WHERE inlognaam="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]inlognaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$resultaat[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700])[/COLOR] OR [URL="http://www.php.net/die"]die[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"Kon geen verbinding maken met MySQL"[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$aantal[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$resultaat[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$aantal[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]0[/COLOR][COLOR= #007700]) {[/COLOR]
    [COLOR= #FF8000]// als er geen resultaat is gevonden[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Het door u ingevulde inlognaam bestaat niet."[/COLOR][COLOR= #007700];
    }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
    [COLOR= #0000BB]$login[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$resultaat[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$login[/COLOR][COLOR= #007700]->[/COLOR]passwoord[COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$login[/COLOR][COLOR= #007700]->[/COLOR]inlognaam[COLOR= #007700];[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]passwoord[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]$login[/COLOR][COLOR= #007700]->[/COLOR]passwoord[COLOR= #007700]) {[/COLOR]
        [COLOR= #FF8000]// als gegevens kloppen met gegevens uit database, cookies setten en doorsturen![/COLOR]
                [URL="http://www.php.net/setcookie"]setcookie[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"inlognaam"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]inlognaam[/COLOR][COLOR= #007700]],[/COLOR] [URL="http://www.php.net/time"]time[/URL][COLOR= #007700]() +[/COLOR] [COLOR= #0000BB]60[/COLOR][COLOR= #007700]*[/COLOR][COLOR= #0000BB]60[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #FF8000]// cookie blijft 60 keer 60 seconden bestaan[/COLOR]
                [URL="http://www.php.net/setcookie"]setcookie[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"passwoord"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord[/COLOR][COLOR= #007700]],[/COLOR] [URL="http://www.php.net/time"]time[/URL][COLOR= #007700]() +[/COLOR] [COLOR= #0000BB]60[/COLOR][COLOR= #007700]*[/COLOR][COLOR= #0000BB]60[/COLOR][COLOR= #007700]);[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"U bent succesvol ingelogd, een moment.. <META HTTP-EQUIV="REFRESH" CONTENT="2; URL="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$redirect_pagina[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"">"[/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]"Uw inloggegevens kloppen niet, klik <a href=""[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"">hier</a> om nogmaals te proberen."[/COLOR][COLOR= #007700];
        }
    }
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]actie[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]registreren[/COLOR][COLOR= #007700]) {[/COLOR]
[COLOR= #FF8000]// als men zich wil registreren[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]versturen[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]ja[/COLOR][COLOR= #007700]) {[/COLOR]
    [COLOR= #FF8000]// als formulier reeds is verstuurd[/COLOR]
            [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]inlognaam[/COLOR][COLOR= #007700]])) {[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Je hebt geen inlognaam ingevuld, <a href=""[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"?actie=registreren">Probeer nogmaals</a>."[/COLOR][COLOR= #007700];
            }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]passwoord[/COLOR][COLOR= #007700]])) {[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Je hebt geen passwoord ingevuld, <a href=""[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"?actie=registreren">Probeer nogmaals</a>."[/COLOR][COLOR= #007700];
            }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]passwoord_controle[/COLOR][COLOR= #007700]])) {[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Je moet ter controle ook het controleveld voor het passwoord invullen, <a href=""[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"?actie=registreren">Probeer nogmaals</a>."[/COLOR][COLOR= #007700];
            }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
                [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]passwoord[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]passwoord_controle[/COLOR][COLOR= #007700]]) {[/COLOR]
                    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"De ingevoerde passwoorden kwamen niet overeen, <a href=""[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"?actie=registreren">Probeer nogmaals</a>."[/COLOR][COLOR= #007700];
                }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]            
                        [COLOR= #0000BB]$registreer[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"INSERT INTO members (inlognaam, passwoord) VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]inlognaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]passwoord[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]")"[/COLOR][COLOR= #007700];[/COLOR]
                        [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$registreer[/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]                
                    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Uw gegevens zijn succesvol opgeslagen! Klik <a href=""[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"">hier</a> om in te kunnen loggen."[/COLOR][COLOR= #007700];        
                }
            }
        }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
        [COLOR= #FF8000]// als formulier nog niet is verstuurd, toon registratieformulier[/COLOR]
    
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<form action=""[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"?actie=registreren&amp;versturen=ja" method="post">
            <table>
            <tr><th colspan="2">Registreren</th></tr>
            <tr><td>Inlognaam</td><td><input type="text" name="inlognaam" size="15"></td></tr>
            <tr><td>Passwoord</td><td><input type="password" name="passwoord" size="15"></td></tr>
            <tr><td>Passwoord <small>(controle)</small></td><td><input type="password" name="passwoord_controle" size="15"></td></tr>
            <tr><td></td><td><input type="submit" value="Registreer"></td></tr>
            </table></form>"[/COLOR][COLOR= #007700];
        }
    
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[COLOR= #FF8000]// inlogformulier[/COLOR]

    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<form action=""[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"?actie=inloggen" method="post">
    <table>
    <tr><th colspan="2">Inloggen</th></tr>
    <tr><td>Inlognaam</td><td><input type="text" name="inlognaam" size="15"></td></tr>
    <tr><td>Passwoord</td><td><input type="password" name="passwoord" size="15"></td></tr>
    <tr><td></td><td><input type="submit" value="Inloggen"></td></tr>
    <tr><td></td><td><a href=""[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"?actie=registreren">Registreren</a></td></tr>
    </table></form>"[/COLOR][COLOR= #007700];
}[/COLOR]

?>


contactdb.php

[COLOR= #0000BB]<?php 

$host[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"localhost"[/COLOR][COLOR= #007700];[/COLOR]   [COLOR= #FF8000]//mysql locatie[/COLOR]
[COLOR= #0000BB]$user[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700];[/COLOR]      [COLOR= #FF8000]//mysql gebruikersnaam[/COLOR]
[COLOR= #0000BB]$pass[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700];[/COLOR]      [COLOR= #FF8000]//mysql wachtwoord[/COLOR]
[COLOR= #0000BB]$db[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700];[/COLOR]   [COLOR= #FF8000]//mysql database[/COLOR]

    [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$host[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$user[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$pass[/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]  
    [URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$db[/COLOR][COLOR= #007700]);[/COLOR]

?>


beveiligd.php

[COLOR= #0000BB]<?php[/COLOR]

[COLOR= #FF8000]// sql connectie includen[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]contactdb.php[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #FF8000]// inlogpagina[/COLOR]
[COLOR= #0000BB]$login_pagina[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"login.php"[/COLOR][COLOR= #007700];[/COLOR]

[COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"SELECT * FROM members WHERE inlognaam="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_COOKIE[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]inlognaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$resultaat[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700])[/COLOR] OR [URL="http://www.php.net/die"]die[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"Kon geen verbinding maken met MySQL"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$aantal[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$resultaat[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$aantal[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]0[/COLOR][COLOR= #007700]) {[/COLOR]
    [COLOR= #FF8000]// de waarde van de aanwezige inlognaam-cookie bij de bezoeker komt niet overeen met een waarde uit de database[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Klik <a href=""[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$login_pagina[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]""></a> om in te kunnen loggen."[/COLOR][COLOR= #007700];
    }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$login[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$resultaat[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_COOKIE[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]passwoord[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #0000BB]$login[/COLOR][COLOR= #007700]->[/COLOR]passwoord [COLOR= #007700]||[/COLOR] [COLOR= #0000BB]$_COOKIE[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]inlognaam[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #0000BB]$login[/COLOR][COLOR= #007700]->[/COLOR]inlognaam[COLOR= #007700]) {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"De cookies konden niet gecombineerd worden."[/COLOR][COLOR= #007700];
        }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
            [COLOR= #FF8000]// de beveiligde inhoud tonen;[/COLOR]
                        
        [COLOR= #007700]}
    }[/COLOR]

?>


hier heb je het (ik hoop dat je er wat mee kan)
0
Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Vul je bij contactdb.php de goede gegevens in en heb je de sql ingevoerd? Voor contactdb.php heb je een database nodig bijv. milan_test
0
Berichten
1.950
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Quote:

$host = "localhost"; //mysql locatie
$user = ""; //mysql gebruikersnaam
$pass = ""; //mysql wachtwoord
$db = ""; //mysql database

mysql_connect($host,$user,$pass) or die(mysql_error());
mysql_select_db($db);

?>

je hebt die niet eens ingevult bij tussen "HIER DUSS" je username van host en bij pass je wachtwoord van je host waar mee je kan inloggen.

Vervolgens maak je een database aan bijv login.
Dan staat er wat de naam is meestal is het HOSTNAAM/usernaam_login

EDIT:
DIT SCRIPT KAN JIJ NIET GEBRUIKEN WANT JE GEBRUIKT DE HOST 110MB.COM EN DAAR KAN JE GEEN MYSQL MAKEN!
0
Rohimma

Lid · Topicstarter

Berichten
1.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
deze error kreeg ik toen ik de site opende
0
Berichten
592
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Zo slim was hij ook al wel, maar niet iedereen hoeft zn logingegevens e.d. te zien, hè hypocrite wink
0
Berichten
1.950
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
DIT SCRIPT KAN JIJ NIET GEBRUIKEN WANT JE GEBRUIKT DE HOST 110MB.COM EN DAAR KAN JE GEEN MYSQL MAKEN!

EDIT ; Warning: mysql_connect() [function.mysql-connect]: Access denied for user vhostswww@localhost (using password: NO) in /www/110mb.com/t/e/s/t/s/i/t/e/testsite321/htdocs/contactdb.php on line 8
Access denied for user vhostswww@localhost (using password: NO)
0
Berichten
592
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hé, zat ik toch goed biggrin
Gebruik deze, veel beter: http://www.prutz0r.nl/

PS: Natuurlijk ook gratis! wink
0
Rohimma

Lid · Topicstarter

Berichten
1.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
oke bedankt allemaal
0
Berichten
592
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik zie de fout denk ik al...

Includen moet je volgens mij zo doen:

include("contactdb.php");
0
Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@ Rubenmaxie, kan alle2
0
Berichten
1.950
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
contactdb.php heeft geen nut met 110mb.com daar kan je geen mysql aanmaken.
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