Php and msql

Figured it out, I was not passing the ‘l’ parameter into my function