[Solved] how do you update a row in mysql with php from a user [closed]


I found two errors in your query additional , at the end of field list and missing ' in where condition. Update it to following:

if (mysqli_query($db,"UPDATE division2 SET Pos="".$pos."", played ='".$played."', won ='".$won."', drawn ='".$drawn."', lost="".$lost."", goalsfor="".$goalsfor."", goalsag ='".$goalsag."', goalsdif="".$goaldif."", points="".$points.""  WHERE team = 'Treaty Celtic'") === true) {

3

solved how do you update a row in mysql with php from a user [closed]