Menu
Hello,
Please advice me why this doesnt work? nothing landing in database
please code below I think so everything is okay. But 75 still not landing in database
<?php
if ($row_rsappointment[‘Bride1’] != $row_rsappointment[‘Bride2’]) {
echo $deposit = 75;
$con = mysql_connect(“localhost”,”root”,”krasnal”);
if (!$con)
{
die(‘Could not connect: ‘ . mysql_error());
}
mysql_select_db(“database”, $con);
mysql_query(“UPDATE appointment SET DepositCost = ‘$deposit’
WHERE idAppointment = $_GET[‘idAppointment’]”);
mysql_close($con);
cheers
Seb