MySQL Lists are EOL. Please join:

List:General Discussion« Previous MessageNext Message »
From:Walter Date:July 1 1999 1:18am
Subject:encrypt question
View as plain text  
Hi, 
How do I change the code to encrypt the following data into my table:
if($rows == 0){
	$query = "Insert into payment ";
	$query .= "(user_id,pay_method) ";
	$query .= "values ";
	$query .= "('$PHP_AUTH_USER','$pay_method')";
	$insert = mysql($database,$query);
	echo mysql_error();
}else{
	$query = "Update payment set ";
	$query .= "pay_method = '$pay_method',";
	$query .= "where user_id = '$PHP_AUTH_USER'";
	$update = mysql($database,$query);
	echo mysql_error();
}
Your help would be much appreciated
Walter

Thread
encrypt questionWalter1 Jul
  • Re: encrypt questionTõnu Samuel1 Jul
  • Re: encrypt questionTõnu Samuel1 Jul