header('Content-Type: text/html; charset=utf-8');
session_start();
//error_reporting(E_ALL);
//ini_set('display_errors', '1');
include("db.php");
include('meta.php');
include("header.php");
if($_REQUEST["update"] == 1){
//echo 'c'.$_REQUEST["country2"];
$stmt2 = $pdodb->prepare("UPDATE girls SET aboutme=:aboutme, country=:country, city=:city, hourly=:hourly WHERE ID=:user_id");
$stmt2->bindParam(':aboutme',$_REQUEST["aboutme"]);
$stmt2->bindParam(':country',$_REQUEST["country2"]);
$stmt2->bindParam(':user_id',$_SESSION["uid"],PDO::PARAM_INT);
$stmt2->bindParam(':city',$_REQUEST["city"]);
$stmt2->bindParam(':hourly',$_REQUEST["hourly"]);
$stmt2->execute();
}
$stmt = $pdodb->prepare("SELECT aboutme,country,city,hourly,paid FROM girls WHERE ID=:sessid");
$stmt->bindParam(':sessid',$_SESSION["uid"],PDO::PARAM_INT);
$stmt->execute();
while($i3=$stmt->fetch()) {
$aboutme = $i3["aboutme"];
$country = $i3["country"];
$city = $i3["city"];
$hourly = $i3["hourly"];
$paid = $i3["paid"];
}
?>