URGENT: Updating a database!

HERES MY CODE


<?php 

//variables from first page
//number Price
   $num1    = $_POST['num1'];

//update function
$query = "UPDATE price SET 1ft = '$num1'  WHERE id = '1'";
   
   echo'<a href="../admin">GO BACK</a>';
   
?>

Its taking functions from the first page.

This should work… shouldnt it?

If not, does anyone have suggestions? I really need this.