Page 1 of 1

Updating a table with php. PLEASE HELP

Posted: Sat Nov 02, 2002 12:08 pm
by Skywalker
It gives me an error on line 5 but i don't know what went wrong? :S


<?php require_once('Connections/Verbinding.php'); ?>

<?php
$ID = $_GET['ID']
$Naam = $_GET['Naam']
$AchterNM = $_GET['AchterNM'];
$WNPlaats = $_GET['WNplaats'];
$Post = $_GET['Post'];
$Straat = $_GET['Straat'];
$Studie = $_GET['Studie'];
$Email = $_GET['Email'];
$Username = $_GET['Username'];
$Password = $_GET['Password'];
$Blok = $_GET['Blok'];
$Table = $_GET['Table'];

$Host = "localhost"
$Gebruiker = "blabla"
$Wachtwoord = "blabla"
$DBNaam = "studiecoach"

$Connectie = mysql_connect ($Host, $Gebruiker, $Wachtwoord);

$Opdracht = "Update $Table ID= $ID, Naam=$Naam, AchterNM=$AchterNM, WNPlaats=$WNPlaats, Post=$Post, Straat=$Straat, Studie=$Studie, Email=$Email, Username=$Username, Password=$Password, Blok=$Blok";
$Result = mysql_db_query ($DBNaam, $Opdracht, $Connectie);
echo ("<font face=\"verdana\" size=\"2\"><b>Gebruiker wordt geblokeerd een ongenblik geduld AUB</b> <META HTTP-EQUIV=\"refresh\" content=\"8;URL=admin.php\"><br>\n");

?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#CCCCFF">
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>

Posted: Sat Nov 02, 2002 1:22 pm
by Skywalker
It is giving me this error

Parse error: parse error in /home/topers/public_html/Blockuser.php on line 5

Posted: Sat Nov 02, 2002 1:42 pm
by MerlinCorey
Lines four and five don't have semicolons...

Code: Select all

$ID = $_GET&#1111;'ID']
$Naam = $_GET&#1111;'Naam']

more missing semicolons

Posted: Sat Nov 02, 2002 4:22 pm
by phpScott
as well as these lines :twisted:
$Host = "localhost"
$Gebruiker = "blabla"
$Wachtwoord = "blabla"
$DBNaam = "studiecoach"
phpScott

Posted: Mon Nov 04, 2002 2:28 am
by twigletmac
Cross posting and double posting is really annoying please do not post the same question more than once in future.

Mac