У меня вопрос к вам, ребята.
Я пытаюсь напечатать массив, где будет отображаться 10 значений таблицы в соответствии с пользователем.
это то, что у меня есть, и отображает только первую строку,
session_start();
// Retrieve all the data from the table
$result = mysql_query("SELECT name,location,login_id FROM table WHERE login_id = $user[login_id]")
or die(mysql_error());
// store the record of the "example" table into $row
$row = mysql_fetch_array( $result );
// Print out the contents of the entry
echo " name ".$row['name'];
echo " located ".$row['location'];
.....
как я могу отобразить первые 10 строк?
помощь будет оценена.
спасибо за чтение.