Skip to content

Output always gives []

I am trying to filter some data by “averageRating”. This is my code for the method: filterr(request, respond) { var averageRating = request.params.rating; var sql = “SELECT * FROM …

Old PHP project undeclared variables to PHP 7

I’m trying to update an old PHP project and I’m not really aware of PHP 4 and 5. I don’t fully understand what is going on in the snippet below.. $page_num isn’t declared anywhere and I get Notice: …