Good day.
The question is related to the output of data in the database table.
Suppose there is a table of the following type:
id title 1 первая строка 2 вторая строка 3 третья строка
Let's call this table table1. Execute SQL query:
SELECT title FROM table1 WHERE id
After that in PHP after connecting to the database I am writing the following query to the database:
$db = mysqli_connect("HOST","name","passowrd"); mysqli_select_db($db, "name_db"); $title = "SELECT title FROM table1 WHERE id"; $result = mysqli_query($db, $title); $titlerows = mysqli_fetch_row($result);
Is done.
After that I try to pull the rows in the title column.echo $titlerows[0];
Show the contents of the first title:первая строка
However, the following query:echo $titlerows[1];
Nothing derives. Although I expected the following: вторая строка
Help with the management of a specific table column, with the ability to display data on id indices. Thank you in advance.