not fully sure why i get this error. i would understand if in the sql syntax there was a variable that has not been defined but they all have been. hes a snippet of the code:
the error is the 3rd line of code below:
$sql = " SELECT * FROM ".$membertable." WHERE username = ".$username."";
$result = mysql_db_query($db,$SQL,$cid);
$row = mysql_fetch_array($result);
$password = $row["password"];
$id = $row["id"];
echo "<form name='profile' method='post' action='profile.php'>
<table>
<tr><td colspan=2><input name='id' type='hidden' value='".$id."'></td></tr>
<tr><td>Username</td><td><input name='username' type='hidden' value=".$username.">".$username."</td></tr>
<tr><td>Email Address</td><td><input name='email' type='text'></td></tr>
<tr><td>Website URL</td><td><input name='www' type='text'></td></tr>
<tr><td>Highest Game</td><td><input name='hg' type='text'></td></tr>
<tr><td>Highest Series</td><td><input name='hs' type='text'></td></tr>
<tr><td>Current Password:</td><td>".$password."</td></tr>
<tr><td>New Password</td><td><input name='newpass' type='text'></td></tr>
</table>
</form>";
basically it is the edit profile stage of a login script i am working with. login and things works perfectly. only thing left is to get this to grab info from the db into the textboxes.
only thing really is the id and password as the other things have not been edited in yet.