Answers for "iterating rows in php"

PHP
0

iterating rows in php

<?php
$query = mysql_query("SELECT * FROM users WHERE pointsAvailable > 0 ORDER BY pointsAvailable Desc");
$queryResultArray = mysql_fetch_array($query);
foreach($queryResultArray as $row)
{
    echo $row['pointsAvailable'];
}
?>
Posted by: Guest on April-29-2020

Browse Popular Code Answers by Language