25.05.2014, 03:34
I believe I have it sorted out but for some reason I'm getting this when I try to open the file on localhost.
Here is whats inside the file
Код:
Parse error: syntax error, unexpected 'users' (T_STRING) in C:\xampp\htdocs\cad\setbadge.php on line 26
PHP код:
<html>
<head>
<style type="text/css">
a { text-decoration:none }
button {
color: #00FF00;
border: 1px solid #00FF00;
background: #000000;
font-weight: bold;
}
</style>
<title>SASD CAD - Set Badge</title>
</head>
<body bgcolor="black" text="00FF00" alink="00FF00" link="00FF00" vlink="00FF00">
<font face="Lucida Console">
<br /><br /><p align=center>
<?php
require("common.php");
UPDATE users SET badge='{$badge_val}' WHERE user_id='{$user_val}'
?><center>
<h1>Set Badge</h1>
<form action="setbadge.php" method="post">
Username:<br />
<input type="text" name="username" value="<?php echo $user_val; ?>" />
<br /><br />
Badge:<br />
<input type="badge" name="badge" value="<?php echo $badge_val; ?>" />
<br /><br />
<input type="submit" value="Submit" />
</form>
<a href="supervisor.php">Go Back</a>
</center>