fix php function see description

Avg Bid (USD)
Project Budget (USD)
$10 - $30

Project Description:
I need this to work, its already in system but it wont affect the code as it should. Should be a easy fix and would like to have it done right now.
if(isset($_POST['change'])) {
$result1 = mysql_query("UPDATE hosted SET code=replace(code, '$_POST[currentwidth]', '$_POST[replacewidth]')", $db1);
$result2 = mysql_query("UPDATE hosted SET code=replace(code, '$_POST[currentheight]', '$_POST[replaceheight]')", $db1);
$num = mysql_affected_rows();
$message = "$num codes have been affected!";
thank you

Skills required:
Hire traduct4good
Project posted by:
traduct4good Canada
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.

$ 30
in 0 days
$ 18
in 1 days
$ 24
in 1 days
$ 10
in 1 days
$ 25
in 0 days