What is the correct way to return treatment

1

Good afternoon my friend, I have a wrong treatment and I would like to solve it. I can not see the information.

Code line

<option value="<?php echo $results[0]['id_vendedor']; ?>"><?php echo $results[1]["nome_vendedor"]; ?></option>
    
asked by anonymous 10.01.2017 / 16:51

1 answer

1

I solved it like this: It happens that I was always picking up the next index, so when I reached the last index, it played +1, and that index did not exist.

<option value="<?php echo $results[0]['id_revenda']; ?>"><?php echo $results[0]["nome_revenda"]; ?></option>
    
10.01.2017 / 17:38