Skip to content

Instantly share code, notes, and snippets.

Created January 13, 2016 16:20
Show Gist options
  • Save anonymous/a14b2691d2d291a8d775 to your computer and use it in GitHub Desktop.
Save anonymous/a14b2691d2d291a8d775 to your computer and use it in GitHub Desktop.
<?php
if($_SERVER['Request_Method']=='POST'){
$stats = $_POST['Stats'];
$phone = $_POST['PhoneNumber'];
$pic = $_POST['Image'];
require_once(ConnectDB.php);
$decoded = base64_decode($pic);
$query = "INSERT INTO chattris (PhoneNumber, Stats, ProfilePic) VALUES ($phone, $stats, $decoded)";
if(mysql_query(DB, $query, $con))
{echo 'Thanks Khalid';} else {
echo 'Error Bitcches';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment