A
A
Artyom Tsymbalyuk2016-06-13 15:07:13
MySQL
Artyom Tsymbalyuk, 2016-06-13 15:07:13

How to show row by cell?

Hello. I'm not strong in this, so I don't even know how to formulate a question in Google
There is the following code

$you = mysql_query("SELECT id, title, cost, fr, btext, img FROM service ORDER BY id");

Which, as I understand it from the service table, takes cells id title cost fr btext and img
But I added a cell called category to this table in which the numbers are from 1 to 10
Question: How to make it so that all the above listed cells with category = are displayed 4 ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DarkMatter, 2016-06-13
@artlivee

SELECT
id, title, cost, fr, btext, img, category FROM service WHERE category = 4 ORDER BY id

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question