Collation: utf8_general_ci
Type: InnoDB
$userid= mysqli_real_escape_string($con , $_GET['userid']);
function profile($userid)
{
global $con;
$data = array();
$q = mysqli_query($con,"select * from user where userid='$userid'");
$r = mysqli_fetch_array($q);
$data['fullname'] = $r['fullname'];
return $data;
}
$pro = profile($userid);
$pro_name = $pro['fullname'];
Sao e chỉ lấy được họ không à(nó không lấy từ khoảng trắng về sau)??
trong CSDL thì có cả họ và tên
Ai giúp e với, e cảm ơn nhiều ạ??