I trying to call my method like this:
<?php getalluser($catid);?>
And there is a select query in my getalluser() method:
function getalluser($query)
{
$sql = "SELECT * from user where catId='".$query."'";
}
In another page, I call the same method and pass user id instead of category id like so:
<?php getalluser($userID);?>
Now, how i can identify if there is a category id or a user id in $query, so I can change in my where condition base on my $query.