L
L
legioner22892019-05-30 23:39:59
SQL
legioner2289, 2019-05-30 23:39:59

Why selects only the first matching value?

Only one value comes in, although there are 2 records in the database.

sql
$result = mysql_query("SELECT place FROM TotalTickets WHERE timeBegin = '10:00'");

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
idShura, 2019-05-31
@legioner2289

Everything is fine with the sql query, the problem is most likely from the php side, show the code. You are most likely using mysql_fetch_row which only returns one row.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question