Advertisement
Advertisement
| 05.21.2008 at 04:41PM PDT, ID: 23422859 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: |
$conn = mysql_connect("localhost", "username", "password") or die(mysql_error());
mysql_select_db("353322_photos") or die(mysql_error());
if($_POST['Submit']) {
$id = $_POST['ID'];
$pA = $_POST['packageA'];
$pB = $_POST['packageB'];
$pC = $_POST['packageC'];
$printA = $_POST['8x10'];
$printB = $_POST['5x7'];
$printC = $_POST['4x6'];
$wallet = $_POST['wallet'];
$update = "update pricing set packageA = '$pA', packageB = '$pB', packageC = '$pC', 8x10 = '$printA', 5x7 = '$printB', 4x6 = '$printC', wallet = '$wallet' where ID = '$id'";
$result = mysql_query($update) or die(mysql_error());
if($_POST['Submit']) {
$result = "Your pricing changes have now been made and have reflected in the cart.";
} else {
$result = "There seems to have been an issue with your update. Please contact <a href=\"mailto:brannon@goodboyweb.com\">Goodboy</a> for further assistance.";
}
}
|