Skip to content
Advertisement

Moving from mysql to mysqli – problems

I have the following code:

JavaScript

I am trying to move from mysql to mysqli and am struggling terribly. The above statement brings back only 1 row and not the 26 that there should be. Any pointers welcome.

Advertisement

Answer

That’s because you’re fetching just one row ($los = $result3->fetch_row();).

Try it in a loop.

Like this:

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