[Solved] Undefined variable error when no MySQL query produces no results [closed]


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

solved Undefined variable error when no MySQL query produces no results [closed]