Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.
$colname_Recordset1 = "-1";
if (isset($_POST['email'])) {
$colname_Recordset1 = $_POST['email'];
}
mysql_select_db($database_test, $test);
$query_Recordset1 = sprintf("SELECT customerid, customeremail, customername, customerlastname FROM customers WHERE customeremail = %s", GetSQLValueString($colname_Recordset1, "text"));
$Recordset1 = mysql_query($query_Recordset1, $test) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
if (("" == "")) {
$updateSQL = sprintf("UPDATE customers SET random_token=%s WHERE customerid=%s",
GetSQLValueString($_POST['token'], "text"),
GetSQLValueString($_POST['customerid'], "int"));
mysql_select_db($database_test, $test);
$Result1 = mysql_query($updateSQL, $test) or die(mysql_error());
}
Do more with
error_reporting(E_ALL ^ E_NOTICE);
<?
$colname_Recordset1 = "-1";
if (isset($_POST['email'])) {
$colname_Recordset1 = $_POST['email'];
}
mysql_select_db($database_test, $test);
$query_Recordset1 = sprintf("SELECT customerid, customeremail, customername, customerlastname FROM customers WHERE customeremail = %s", GetSQLValueString($colname_Recordset1, "text"));
$Recordset1 = mysql_query($query_Recordset1, $test) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
if (("" == "")) {
$updateSQL = sprintf("UPDATE customers SET random_token=%s WHERE customerid=%s",
GetSQLValueString($_POST['token'], "text"),
GetSQLValueString(@$_POST['customerid'], "int"));
mysql_select_db($database_test, $test);
$Result1 = mysql_query($updateSQL, $test) or die(mysql_error());
}
?>
Premium Content
You need an Expert Office subscription to comment.Start Free Trial