T
T
timers2020-05-05 17:04:37
MySQL
timers, 2020-05-05 17:04:37

How to make a correct query in the database?

Actually:

$result = $db->query( "SELECT * FROM ".PREFIX."_stol_post WHERE id='{$fort1}'" );

I have 3 tables - fort1, fort2, fort3 in one of them the correct ID at which posts are displayed, how to make sure that he immediately checked for all three at once.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lander, 2020-05-05
@usdglander

Use UNION .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question