ik krijg steeds een zelfde error .. :S
dat is deze :
Warning: mysql_query(): Access denied for user: 'ODBC@localhost' (Using password: NO) in c:\develsteincollege\apache\htdocs\nieuw\systeem\bevestig.php on line 16
Warning: mysql_query(): A link to the server could not be established in c:\develsteincollege\apache\htdocs\nieuw\systeem\bevestig.php on line 16
de pagina's is dit:
<?php
include("include/database.php");
$voornaam = $_GET['a'];
$achternaam = $_GET['b'];
$naam = "" . $voornaam . " " . $achternaam . "";
$slagen = $_GET['c'];
$locatie = $_GET['d'];
$schooltype = $_GET['e'];
$email = $_GET['f'];
if($_POST['login'] == '.....' && $_POST['pass'] == '......'){
$insert = "INSERT INTO `oud_lijst` (naam, slagen, locatie, schooltype, email) VALUES ('{$naam}', '{$slagen}', '{$locatie}', '{$schooltype}', '{$email}')";
mysql_query($insert);
}else{
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<form name="login" method="post" action="<?php echo"bevestig.php?a=" . $naam . "&b=" . $slagen . "&c=" . $locatie . "&d=" . $schooltype . "&e=" . $email . ""; ?>">
<tr>
<td width="50%" align="right">InlogNaam</td>
<td width="50%"> <input name="login" type="text" id="login"></td>
</tr>
<tr>
<td align="right">Password</td>
<td><input name="pass" type="text" id="pass"></td>
</tr>
<tr>
<td align="right"> </td>
<td> </td>
</tr>
<tr>
<td width="50%" align="right"> </td>
<td width="50%"><input type="submit" name="Submit" value="Submit"> </td>
</tr>
</form>
<?php
}
?>
1.400 views