Ik heb dit script:
<?php
session_start();
?>
<html>
<head>
<title>ScriptzNET.nl</title>
<link href="http://stylesheets.scriptznet.nl/input.css" rel="stylesheet" type="text/css">
<link href="http://stylesheets.scriptznet.nl/body.css" rel="stylesheet" type="text/css">
<link href="http://stylesheets.scriptznet.nl/scrollbars.css" rel="stylesheet" type="text/css">
<link href="http://stylesheets.scriptznet.nl/link.css" rel="stylesheet" type="text/css">
<link href="http://stylesheets.scriptznet.nl/alink.css" rel="stylesheet" type="text/css">
<link href="http://stylesheets.scriptznet.nl/vlink.css" rel="stylesheet" type="text/css">
<link href="http://stylesheets.scriptznet.nl/bold.css" rel="stylesheet" type="text/css">
<link href="http://stylesheets.scriptznet.nl/table.css" rel="stylesheet" type="text/css">
<link href="http://icons.scriptznet.nl/favicon.ico" rel="shortcut icon">
<link href="http://icons.scripzsnet.nl/favicon.ico" rel="icon">
<meta http-equiv="charset" content="ISO-8859-1">
<meta http-equiv="content-language" content="dutch">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div align="center">
<?php
$mysql_gebruikersnaam = "scriptzn_root";
$mysql_wachtwoord = "";
$mysql_host = "localhost";
$mysql_database = "scriptzn_forum";
if (@mysql_select_db($mysql_database, @mysql_connect($mysql_host, $mysql_gebruikersnaam, $mysql_wachtwoord))) {
$datum = date("Y.m.d. H:i:s");
$selecteer_topics = "SELECT * FROM topics";
$resultaat_selecteer_topics = mysql_query($selecteer_topics);
$invoegen_reactie = "INSERT INTO reacties SET topic_id = '$_GET[topic_id]', door = '$_SESSION[gebruikersnaam]', reactie = '$_POST[reactie]', reactie = '$datum'";
$resultaat_invoegen_reactie = mysql_query($invoegen_reactie);
if ((isset($_SESSION["lid_id"]) || isset($_SESSION["administrator_id"]) || isset($_SESSION["moderator_id"])) && (isset($_SESSION['gebruikersnaam']))) {
if ($_GET["topic_id"]) {
if ($_GET["topic_id"] <= mysql_num_rows($resultaat_selecteer_topics)) {
echo "
<b>
Reageer
</b>
<br />
Onder bewerking...
";
}
else {
echo "
<b>
Fout
</b>
<br />
Het topic_id is niet geldig!
";
}
}
else {
echo "
<b>
Fout
</b>
<br />
Er is geen topic_id opgegeven!
";
}
}
else {
echo "
<b>
Fout
</b>
<br />
Je bent niet ingelogd!
";
}
}
else {
echo "
<b>
Fout
</b>
<br />
Geen database connectie!
";
}
?>
</div>
</body>
</html>
Maar hij zegt dat ik niet ben ingelod ookal ben ik dat wel... Hoe zit dat? Je moet dus of een admin_id of een mod_id of een lid_id, hebben in combinatie met een gebruikersnaam................
404 views