PHP Coding Help
#8

I believe I have it sorted out but for some reason I'm getting this when I try to open the file on localhost.
Код:
Parse error: syntax error, unexpected 'users' (T_STRING) in C:\xampp\htdocs\cad\setbadge.php on line 26
Here is whats inside the file

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>
Reply


Messages In This Thread
PHP Coding Help - by JasperH - 19.05.2014, 21:30
Re: PHP Coding Help - by KingHual - 19.05.2014, 21:49
Re: PHP Coding Help - by punklord - 21.05.2014, 16:14
Re: PHP Coding Help - by Mark_Weston - 21.05.2014, 17:26
Re: PHP Coding Help - by DaRealShazz - 21.05.2014, 21:05
Re: PHP Coding Help - by JasperH - 24.05.2014, 01:50
Re: PHP Coding Help - by Isolated - 24.05.2014, 11:07
Re: PHP Coding Help - by JasperH - 25.05.2014, 03:34

Forum Jump:


Users browsing this thread: 1 Guest(s)