Alright, so $result is a mysqli_result object.
You might want to fetch the first row of that result and return the desired column.

Replace

return $result;


with 

return $result-&gt;fetch_assoc()[$field];


php mysql return wrong boolean result
I wanted to send a mail by telnetting through smtp server "telnet smtp_Server 25" and want to send mail. How is it possible..

Also, please share something about CISCO products and what kind of software they use in their products. If i wanted to gain some insight knowledge, where should go to..

Thanks..
