Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $pic = $_POST['pic']
- $mysql_host = "localhost";
- $mysql_database = "opthabas_db";
- $mysql_user = "opthabas_user";
- $mysql_password = "Password";
- $con = mysql_connect($mysql_host, $mysql_user, $mysql_password);
- if (!$con)
- {
- die('Could not connect: ' . mysql_error());
- }
- //mysql_query("UPDATE Profile SET Image = '$pic' ");
- mysql_query("UPDATE Profile SET Image = '$pic' ");
- mysql_select_db("opthabas_db", $con);
- $pic = mysql_real_escape_string($pic);
- mysql_query("INSERT INTO Profile (Images) VALUES ('$pic')");
- mysql_close($con);
- ?>
Add Comment
Please, Sign In to add comment