Updating a table with php. PLEASE HELP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Skywalker
Forum Contributor
Posts: 117
Joined: Thu Aug 29, 2002 3:33 am
Location: The Netherlands

Updating a table with php. PLEASE HELP

Post 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);
?>
User avatar
Skywalker
Forum Contributor
Posts: 117
Joined: Thu Aug 29, 2002 3:33 am
Location: The Netherlands

Post by Skywalker »

It is giving me this error

Parse error: parse error in /home/topers/public_html/Blockuser.php on line 5
MerlinCorey
Forum Newbie
Posts: 6
Joined: Sat Nov 02, 2002 12:35 am
Location: Los Angeles, California

Post by MerlinCorey »

Lines four and five don't have semicolons...

Code: Select all

$ID = $_GET&#1111;'ID']
$Naam = $_GET&#1111;'Naam']
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

more missing semicolons

Post by phpScott »

as well as these lines :twisted:
$Host = "localhost"
$Gebruiker = "blabla"
$Wachtwoord = "blabla"
$DBNaam = "studiecoach"
phpScott
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Cross posting and double posting is really annoying please do not post the same question more than once in future.

Mac
Post Reply