Probleem connecten host

Gestart doorVadid7 reacties36 weergaven

8 berichten · pagina 1 van 1

Vadid

Lid · Topicstarter

Berichten
2.318
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hi,

Ik ben bezig met mn website, alleen ik stuit steeds op een connect-probleem. Bekijk het probleem maar op http://twissy.nl/layout/ .

Stukje code config.php

[spoiler]// Connection to the database!
$dname = a8664524_site;
$dpass = david22;
$database = a8664524_site;
[/spoiler]


Ben niet echt bepaald evaren met dit, de host is niet bij One2xs, want hier stuitte ik op een ander probleem ( de rest deed het wel ).
Hoop dat iemand me een beetje kan helpen, beloning 0,06 punten. emo
Groet,
Vadid
0
Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
is dit de hele code, of maak je ook nog echt een connectie via php » mysql_connect();?

[COLOR= #0000BB]<?php

$mysql_user[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$mysql_password[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]wachtwoord[/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]$mysql_user[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]$mysql_password[/COLOR][COLOR= #007700]);[/COLOR]

?>
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Je gegevens kloppen niet. Daardoor kan ie geen connectie maken.
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Josnl schreef:
is dit de hele code, of maak je ook nog echt een connectie via php » mysql_connect();?
[COLOR= #0000BB]<?php

$mysql_user[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$mysql_password[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]wachtwoord[/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= #0000BB]$mysql_user[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$mysql_password[/COLOR][COLOR= #007700]);[/COLOR]

?>


quotes weglaten wink
0
Vadid

Lid · Topicstarter

Berichten
2.318
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Gegevens kloppen wel.
Xjessex schreef:
Eerdere citaten tonen
Josnl schreef:
is dit de hele code, of maak je ook nog echt een connectie via php » mysql_connect();?
[COLOR= #0000BB]<?php

$mysql_user[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$mysql_password[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]wachtwoord[/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= #0000BB]$mysql_user[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$mysql_password[/COLOR][COLOR= #007700]);[/COLOR]

?>

quotes weglaten wink

Zou deze wel moeten werken?
Dit is hele code:

[quote][COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]/config.php[/COLOR][COLOR= #007700]){[/COLOR]
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Location: index[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/error_reporting"]error_reporting[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]0[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]// Connection to the database![/COLOR]
[COLOR= #0000BB]$dname[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]a8664524_site[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$dpass[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]david22[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$database[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]a8664524_site[/COLOR][COLOR= #007700];[/COLOR]

[COLOR= #0000BB]$link[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$dname[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$dpass[/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]$db[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$database[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$link[/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]$bannerimg[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]http://www.bruidsnet.nl/images/art/d0ea992b203797af2b78d7fe3e0c2b1e.jpg[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$bannerlink[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]http://google.nl[/COLOR][COLOR= #007700];[/COLOR]

?>[/quote]
0
Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Vervang:

$link = mysql_connect("", $dname, $dpass) or die(mysql_error());


Eens door:

$link = mysql_connect($database, $dname, $dpass) or die(mysql_error());
0
Berichten
5.957
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nickjexx schreef:
Vervang:
$link = mysql_connect("", $dname, $dpass) or die(mysql_error());


Eens door:

$link = mysql_connect($database, $dname, $dpass) or die(mysql_error());


Leer eens eerst php.

toevoeging op 15 december 2011, 191829:
Upload eens een normale versie, zo kan ik niet helpen ...
0
Vadid

Lid · Topicstarter

Berichten
2.318
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Alemaalte schreef:
Eerdere citaten tonen
Nickjexx schreef:
Vervang:
$link = mysql_connect("", $dname, $dpass) or die(mysql_error());


Eens door:

$link = mysql_connect($database, $dname, $dpass) or die(mysql_error());

Leer eens eerst php.

toevoeging op 15 december 2011, 191829:
Upload eens een normale versie, zo kan ik niet helpen ...

Veel kan ik er niet normaler aan maken.
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