I have a database which I want to update the individual records using PHP / My SQL.
I have got as far as the following :
Listing all the records with an edit link after each record.
Listing the specific record, using the zid, in a form which allows the individual items of the records to be updated.
I can get the edited information into a SQL statement to UPDATE the record in the database. I cannot seem to get the zid to go into the SQL statement
So the SQL reads
$sqlQuery = "UPDATE table SET fieldInInfo = '$cleanInfo' where zid = '$cleanZID'";
When I run this, echoing the sql I get :
UPDATE table SET fieldInfo = 'Brian Cowen' where zid = ''
and it doesnt update the database.
Any thoughts ?
I am a newbie so it is probably something very simple that i just cannot see.
Thanks
I have got as far as the following :
Listing all the records with an edit link after each record.
Listing the specific record, using the zid, in a form which allows the individual items of the records to be updated.
I can get the edited information into a SQL statement to UPDATE the record in the database. I cannot seem to get the zid to go into the SQL statement
So the SQL reads
$sqlQuery = "UPDATE table SET fieldInInfo = '$cleanInfo' where zid = '$cleanZID'";
When I run this, echoing the sql I get :
UPDATE table SET fieldInfo = 'Brian Cowen' where zid = ''
and it doesnt update the database.
Any thoughts ?
I am a newbie so it is probably something very simple that i just cannot see.
Thanks