Update query is deleting data!?!
Ready to pull my hair out. Why is my update query deleting my data from the database? Thank you.
<?php
if (isset($_POST["Update"]) || isset($_POST["Update_x"])) {
$UpdateQuery = new WA_MySQLi_Query($numeroseti);
$UpdateQuery->Action = "update";
$UpdateQuery->Table = "users";
$UpdateQuery->bindColumn("user_name", "s", "".((isset($_GET["user_name"]))?$_GET["user_name"]:"") ."", "WA_DEFAULT");
$UpdateQuery->bindColumn("user_email", "s", "".((isset($_GET["user_email"]))?$_GET["user_email"]:"") ."", "WA_DEFAULT");
$UpdateQuery->addFilter("user_id", "=", "i", "".($getUser->getColumnVal("user_id")) ."");
$UpdateQuery->execute();
$UpdateGoTo = "user_profile.php";
if (function_exists("rel2abs")) $UpdateGoTo = $UpdateGoTo?rel2abs($UpdateGoTo,dirname(__FILE__)):"";
$UpdateQuery->redirect($UpdateGoTo);
}
?>