O
O
ololodf2021-06-16 07:19:36
PHP
ololodf, 2021-06-16 07:19:36

Why is the data from the database loaded starting from an empty value?

There is a variable in which the data gets after the sql query and they are generated in this format:

(1 значение) =  "";
(2 значение) =  "1";
(3 значение) =  "2";
(4 значение) =  "3";


That is, it does not correspond to the serial number.
It should be like this:
(1 значение) =  "1";
(2 значение) =  "2";
(3 значение) =  "3";
(4 значение) =  "4";

How to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2021-06-16
@sslion

The question is not clear, but if you mean an array with values, then the indices (numbering) in the array start from 0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question