fout melding

Gestart doorPatricka11 reacties22 weergaven

12 berichten · pagina 1 van 1

Patricka

Lid · Topicstarter

Berichten
12.729
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik krijg deze foutmelding, maar heb de SQL uitgevoerd en succesvol aangemaakt..]

Parse error: syntax error, unexpected : in /home/zzeldje/domains/zzeldje.s2.one2xs.com/public_html/portfolioCMS/config.php on line 8
0
Berichten
515
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
plaats even een stukje van de code zo kunnen we nog niks
0
Patricka

Lid · Topicstarter

Berichten
12.729
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Justafool schreef:
plaats even een stukje van de code zo kunnen we nog niks
Welke code?emo
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Die in config.php staat
0
Patricka

Lid · Topicstarter

Berichten
12.729
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dit is me config.php

Quote:
$site = array();
$site[dbHost] = localhost;
$site[dbUser] = ******;
$site[dbPass] = ******;
$site[dbData] = ******;
$web = "http://www.jouwsite.nl";
$web_email = "jouwemail@hotmail.com";
if ( !get_magic_quotes_gpc() )
{

$_POST = array_map(htmlspecialchars,$_POST);
$_POST = array_map(trim,$_POST);

// get beveiligen en strippen
$_GET = array_map(addslashes,$_GET);
$_GET = array_map(trim,$_GET);
}

$link = mysql_connect($site[dbHost],$site[dbUser],$site[dbPass]);
mysql_select_db($site[dbData],$link);
?>
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Is dat de config.php die in de map portfolioCMS staat? Ik zie er namelijk geen fout in
0
Patricka

Lid · Topicstarter

Berichten
12.729
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik zie dat ik de verkeerde he gegevenemo
Dit is hem:

Quote:
include(adminconfig.php);
$hostadres = "http://zzeldje.s2.one2xs.com";
$username = "zzeldje_test1";
$password = "****";
$database = "zzeldje_test";

if( http://www.zzeldje.s2.one2xs.com($link_id = mysql_connect($hostadres, $username, $password))) die(mysql_error());
mysql_select_db($database);
?>
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]adminconfig.php[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$hostadres[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"http://zzeldje.s2.one2xs.com"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$username[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"zzeldje_test1"[/COLOR][COLOR= #007700];[/COLOR] 
[COLOR= #0000BB]$password[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"****"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$database[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"zzeldje_test"[/COLOR][COLOR= #007700];[/COLOR]

[COLOR= #0000BB]$link_id[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$hostadres[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$username[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$password[/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]$database[/COLOR][COLOR= #007700]);[/COLOR] 
?>


Probeer het zo eens
0
Patricka

Lid · Topicstarter

Berichten
12.729
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hmm, volgens mij werkt hetbiggrin bedankt, hoe gaat het trouwens met me systeem?bloos
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Spreek me even aan op MSN, dat hoeft niet op het forum wink
0
Berichten
1.245
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Luukvdo schreef:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]adminconfig.php[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$hostadres[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Localhost"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$username[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"zzeldje_test1"[/COLOR][COLOR= #007700];[/COLOR] 
[COLOR= #0000BB]$password[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"****"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$database[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"zzeldje_test"[/COLOR][COLOR= #007700];[/COLOR]

[COLOR= #0000BB]$link_id[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$hostadres[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$username[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$password[/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]$database[/COLOR][COLOR= #007700]);[/COLOR] 
?>
Probeer het zo eens

Moet toch localhost zijn?
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nee, je kan ook met een MySQL server connecten die niet localhost draait
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