Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // The code below works...
- // It prints the column name for each row from the mysqli_query() result
- while ($row = mysqli_fetch_array($result, MYSQL_ASSOC)) {
- echo $row["Name"];
- }
- // However the code below should do the same but outputs the first row's column name as many times as the number of rows
- while ($row = mysqli_fetch_assoc($result)) {
- echo $row["Name"];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement