-4

This is the php code thats getting the record from view

the html code

the update code which z not working

1 Answers1

-1

First Read This Documentation

Notice the WHERE clause in the UPDATE syntax: The WHERE clause specifies which record or records that should be updated. If you omit the WHERE clause, all records will be updated!

$sql = "UPDATE table SET field = '$variable',field2 = '$variable2'";

In Your code problem is in your update query. check that manualy.

TarangP
  • 2,711
  • 5
  • 20
  • 41