to make our project finish, i need to get the data from the user who just log in(only his/her data) but i dont have any idea how, can someone help me...thank you very much! well appreaciated :)
so this is the part where i need to add something so i can get the specific details based on the user.
<?php
session_start();
include "connect.php";
$sql = "SELECT `client_fname`,`client_lname` FROM `client_accounts` WHERE **//i dont know what to put it here, i think the id but i dont know how//**;";
$query = $db->query($sql);
$msg;
$arr;
$i = 0;
if($query->num_rows > 0){
while ($row = $query->fetch_assoc()){
$arr[$i]['fname'] = $row['client_fname'];
$arr[$i]['lname'] = $row['client_lname'];
$i++;
}
$msg['status'] = true;
$msg['data'] = $arr;
}else {
$msg['status'] = false;
}
echo json_encode($msg);
?>