Darkstar0078 Posted February 6, 2018 Share Posted February 6, 2018 Hello all together, I need some help with my Project. I have made a Ticket System with PHP and MSSQL. When a customer has opened a Ticket, he has the possibility to chat with us. In this chat I want to have a Multi File Upload. Until here I have no Problem, the Chat is running and a single file upload also. What I have made for the Multi file upload: Table Chat: (including the single File upload) ChatID int UncheckedTickID int Checkedmessage varchar(MAX) Checkedauthor int Checkedadded nvarchar(50) Checkeduploadfile varchar(MAX) Checkedimgsize int Checkedactive int Checked For the Multi Upload I made a upload table: DatID int Uncheckeduploadfile varchar(MAX) Checkedimgsize int CheckedRefTickID int CheckedRefChatID int Checkedfilename nvarchar(MAX) Checkedactive int Checked I Combine this tables in a view. The result should be something like this: USERNAME DATE "MESSAGE" 'Attachment1','Attachment2','Attachment3' What I actually get: USERNAME DATE "MESSAGE" 'Attachment1' USERNAME DATE "MESSAGE" 'Attachment2' USERNAME DATE "MESSAGE" 'Attachment3' How can I fix this Problem? I would be very grateful for a saving solution. Thank you very much DakrStar ;-) Quote Link to comment Share on other sites More sharing options...
requinix Posted February 6, 2018 Share Posted February 6, 2018 That's how it should be. Or rather you should be getting the username, date, and message in one query and the set of attachments in a second query. If you want to display the data in a table horizontally then display the data in a table horizontally. Your query's results don't have to be, and rarely ever are, the final version. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.