Skip to content
Advertisement

PHP does not output isset array from Mysql. Although through print_r the array is displayed

The Mysql command is set correctly, since the data is displayed correctly via print_r($ads). I pack the resulting array into $ads

Catch id

JavaScript

Query DB.

JavaScript

But through the isset function, they are not shown, no errors are displayed, nothing, just a blank page.

I output the data like this

JavaScript

short_tags are included in PHP.

Please help solve the problem.

Advertisement

Answer

You’re not going deep enough. $ads['run'] doesn’t exist, only $ads['3625']['run'] does. Try:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement