Jump to content

Put all results with same id in one field


necken18

Recommended Posts

Hello.

 

I've got two tables one that contains general information and one that contains links.

 

example:

 

Table: general

id,

name,

date

 

Table: links

id,

objekt_id,

link,

title

 

i wan't to loop out these tables together and put all links with the same objekt_id in one field-array. (links.objekt_id matches general.id).

SELECT g.name, g.date, link.link
FROM general g
INNER JOIN link links ON link.objekt_id = g.id
WHERE g.id = 10

 

There is multiplie links on every objekt_id. How can i put all of them in one field?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.