sql - Php select fields query error -
can me understand why update query isn't updating fields in database? have in php page retrieve current values database:
ok select
assuming mean isn't setting $id, $username etc.
it because not fetching associative array mysql_fetch_array function. need reference columns $row[0], $row[1] etc.
change while line to:
while ($row = mysql_fetch_array ($query, mysql_assoc))
you'll able reference columns in $row name. ie. $row['id']
Comments
Post a Comment