fetch all data from database having same name - mysqli

I have a web page to display images with its name. When I click on the name the respective image visible. when I add additional images with the same name in the database, only single name display and when I click on the name all images with that name should visible. my table looks like,
name | image
---------------
blue | blue.jpg
blue | blue1.jpg
red | red.jpg
in the front page only single names should display and when I click blue on the web page all images with blue should display. Please help me what would be the query for fetching like that. I use the query
select name image from table1 where name='blue' group by name
But when using this only single name and single image appears. Please help me

It's showing only one name because you are filtering by a single name in the where clause. Remove it and also, it's better to group by all fields selected:
select name, image from table1 group by name, image

Related

Merge each value in one colum

I want each value just use one column to show
enter image description here
to like this
enter image description here

Data link issue-Grafana

i have a grafana link eg::http://10.14.116.3:3000/d/3DswEOcVz/single-transaction?orgId=13&viewPanel=2, what do i need add to link above in another dashboard table to filter based on the txn ID value i clicked. The two tables have similar columns.
enter image description here
if I click 7054890 in one table, in the linked table, it should only show record for 7054890

Grafana: How to show only one field in the graph?

I have a Piechart and a bar chart and I'm facing the same issue in both charts. For example, in the bar chart, I have this MySQL query
SELECT
time AS "time",
videoid AS metric,
sum(mbytes) AS "mbytes",
video_url AS url,
video_title as title
FROM topvideos
WHERE
$__unixEpochFilter(time)
GROUP BY videoid,2
ORDER BY time
LIMIT 10
I need all of these fields in different places, but the chart itself, I want it only to show the title, so the user needs to see only the title when looking at the chart.
But I need to have the videoid and URL in order to create a direct link when the user clicks on a bar, so that he's redirected to the video URL.
I tried transformation -> filter by name -> title. But this seems to be changing the data of the chart, some bar becomes bigger than the other.
How to correctly do what I'm looking for? I want the end user to be able to see one field only.
I used Standard options > Display name and then set that field to ${__field.labels.title}

create a select box in which data is populated from selecting another select box and it is editable

I have created two select box. in both, fetching data from database. By selecting first select box the second select box gets auto populated. What I want to do is that this second select box should be editable that is the user can type input also. What I have done now is that used datalist for second select box which is doing the thing, but I want to show the auto populated data as selected option in datalist

Access Update a table row based on a combo box selection

I have a table I would like to edit based on a combo box selection in a form.
For example, let's say I have a table that has the following fields:
Computer Name | Location | Number of Updates installed | etc.
What I have done is created a form based on this table. It includes a combo box to select the computer name that's being updated. What I would like to do is fill out the rows based on the computer selected in the combo box.
What's the best way to do this?