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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -