Guest Posted April 2, 2008 Share Posted April 2, 2008 Hi, i should like too rase me price list with procent ( i should like to say with 10%) all price should be updated, how should i change this PHP SQL for that?? Now is only change price and not update the price. <a href="index.php">Back to List</a><br> <br> <?php include("connect.php"); $id = $_POST['id']; $manufacturers_id = $_POST['manufacturers_id']; $products_price = $_POST['products_price']; $update = "UPDATE products SET products_price = '$products_price' WHERE manufacturers_id='$manufacturers_id' "; $rsUpdate = mysql_query($update); if ($rsUpdate) { echo "Update successful."; } mysql_close(); ?> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.