[ad_1]
Define the variable: $return = array(); Problem solved.
But I really hope you’re not creating a new database connection every single time you want to select data, and never closing any of those connections…
3
[ad_2]
solved Undefined variable error when no MySQL query produces no results [closed]