Heej,
Ik ben bezig met een script. dit is de code:
Alleen nu krijg ik een Syntax error:
Parse error: syntax error, unexpected ? in /home/uploaden/domains/techhabbo.nl/public_html/scripting/statistieken/index.php on line 36
Wie kan me helpen?
Maffiaklik
Ik ben bezig met een script. dit is de code:
<style type="text/css">
body {
font-family: Verdana;
font-size: 11px;
}
</style>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/ob_start"]ob_start[/URL][COLOR= #007700]();[/COLOR]
[URL="http://www.php.net/error_reporting"]error_reporting[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]/////////////////////////////////////// /////////////////////////////[/COLOR]
[COLOR= #0000BB]$sqlhost[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"localhost"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// host MySQL[/COLOR]
[COLOR= #0000BB]$sqlgebruikersnaam[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"uploaden_db"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// gebruikersnaam MySQL[/COLOR]
[COLOR= #0000BB]$sqlwachtwoord[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"********"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// wachtwoord MySQL[/COLOR]
[COLOR= #0000BB]$sqldatabase[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"uploaden_db"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// database MySQL
////////////////////////////////////////////////////////////////////[/COLOR]
[COLOR= #0000BB]$db[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sqlhost[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$sqlgebruikersnaam[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$sqlwachtwoord[/COLOR][COLOR= #007700])[/COLOR]
or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$message1[/COLOR] [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= #DD0000]"$sqldatabase"[/COLOR][COLOR= #007700]);[/COLOR]
?>
[COLOR= #0000BB]<?php
$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM statistieken"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700])) {[/COLOR]
?>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$instellingen[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]statistieken[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"uit"[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]""[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
?>
[COLOR= #0000BB]<?php[/COLOR]
status [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]procent[/COLOR][COLOR= #007700]][/COLOR] ?>
<b>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]reden[/COLOR][COLOR= #007700]][/COLOR] ?></b><br>
}
?> Alleen nu krijg ik een Syntax error:
Parse error: syntax error, unexpected ? in /home/uploaden/domains/techhabbo.nl/public_html/scripting/statistieken/index.php on line 36
Wie kan me helpen?
Maffiaklik


