PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
include ("config.php");
$price=$_POST['price'];
$sql="UPDATE customers WHERE Price = '$price'";
$query=mysql_query($sql);
?>
When you pick one in the list of company name the price of their service will be fetch in the textbox and I want that price to edit but unfortunately I can't update it. Any help will much appreciated within bottom of my heart. Cheers!
<?php
$sql="UPDATE customers WHERE Price = '$price'";
?>
To update the price you need the old price kept somewhere or you won't have a reference to which field needs to be updated; you can use the value inside $_POST['myOptions']