Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php

<pre>
<?php    
	$userid = $getuser->user_id;
	$userPhone=tp_input($_POST['userPhone']);
	$userEmail=tp_input($_POST['userEmail']);  
  	
	if (isset($_POST['actionSubmit'])) 
	  { 
		$checkExist = tp_query("SELECT * FROM `user` 
								WHERE 
								`user_id`='$userid'");
		while($userInfo=tp_fetch_object($checkExist))
		{
		if (tp_num_rows($checkExist)!=""){
			
			tp_query("UPDATE `user` 
						SET
						`username`='$username',
						`userage`='$userage'
						WHERE
						`user_id`='$userid' ");
		}
		else{
			echo "Fail Updated ";
		}
		}
}
?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php
ADD COMMENT
Topic
Name
4+1 =