I have a request:
$selpublist = $mysqli->query("SELECT `vk_id` FROM `groups`", MYSQLI_STORE_RESULT); On the local server, it worked, and after moving to hosting it refuses to work. var_dump($selpublist) :
object(mysqli_result)#2 (5) { ["current_field"]=> int(0) ["field_count"]=> int(1) ["lengths"]=> NULL ["num_rows"]=> int(17) ["type"]=> int(0) } With the database, everything is fine, phpmyadmin selects everything, too, is normal. Hoster says that this is not their problem. Php version 5.3.
After executing the query, I output the data through a cycle:
foreach ( $selpublist as $group ) { } What to do?
while ($row = $result->fetch_assoc()) {...}, this is not the same thing as yours - BOPOH