Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($_SESSION["qstn"]!=="")
- {
- Header("Location:Profile.php");
- }
- else
- {
- $con = mysql_connect("localhost","user","pswd");
- mysql_select_db("mydb", $con);
- //Problem Is the updates made get destroyed on logout ....i want them to be permanent plz help
- $sql="UPDATE `data` SET `bin` = '". $_FILES['bin'] ."' , `qstn` = '". $_POST['qstn'] ."' , `ans` = '". $_POST['ans'] ."' WHERE `Username` = '".$_POST['uname']."' ";
- mysql_query($sql) or die(mysql_error());
- mysql_close($con);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement