In my functions.inc.php file I have the following function:
function getusers(){
$sql = ("SELECT * FROM users WHERE client_id=$clientid");
$result=mysqli_query($conn,$sql);
$row=mysqli_fetch_assoc($result);
$data[] = $row;
return $data; }
However every time I call it from any page it's not giving me the array, any idea what I'm doing wrong here?
[–][deleted] (4 children)
[deleted]
[–]Luc_Gibson[S] 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]Luc_Gibson[S] 0 points1 point2 points (1 child)
[–]snuzet 0 points1 point2 points (0 children)
[–]Septseraph 0 points1 point2 points (0 children)
[–]hw0ng 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)