Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query="insert into signup(firstname,lastname,password,email,phone,address) values('$firstname','$lastname','$password','$email','$phone','$address')";
- $result=mysql_query($query);
- if($result)
- {
- $query1="select * from signup";
- $result1=mysql_query($query1);
- $row=mysql_fetch_row($result1);
- $message=array("message"=>"successfully insert","firstname"=>$row[1],"lastname"=>$row[2],"password"=>$row[3],"email"=>$row[4],"phone"=>$row[5],"address"=>$row[6]);
- }
- * i am always getting the first record in table;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement