K
K
kiril90112018-02-18 20:49:05
MySQL
kiril9011, 2018-02-18 20:49:05

How to output 3 items per row from the database?

There is a SELECT

$sql_select = "SELECT * FROM ind WHERE user_id = '{$_SESSION['login']}'";

and I need to do 3 products per line from the database, how to write correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
fomenko_alexandr, 2018-02-19
@fomenko_alexandr

$sql_select = "SELECT * FROM ind WHERE user_id = '{$_SESSION['login']}' LIMIT 3";

Here you can read about ( limit )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question