I wanna write a cool function to preview a PDF file before store it into my hard drive. The problem is: i have 2 arrays. The first table has users input data and the second table has the description of the service. For example: 1st table has the key values: ID NAME LASTNAME SERVICE_ID 2nd table has only 1 key value: SERVICE_DESCRIPTION My question is: Can i combine the values into 1 array, so that i have 3rd array with these key values: ID NAME LASTNAME SERVICE_ID SERVICE_DESCRIPTION ? Thank you very much for your answers
5
-
How can you store 'SERVICE_DESCRIPTION' in a table without its id?Atik Hashmee– Atik Hashmee2019-01-10 04:29:00 +00:00Commented Jan 10, 2019 at 4:29
-
You can run a join query, anyway.Atik Hashmee– Atik Hashmee2019-01-10 04:29:24 +00:00Commented Jan 10, 2019 at 4:29
-
the problem is that the data of array 1 are NOT in the database. But the data of the array 2 are in the database. If both was into the database then the join method is the best way ...Joe Mash– Joe Mash2019-01-10 04:33:07 +00:00Commented Jan 10, 2019 at 4:33
-
I think, you are getting it wrongly, what ever its , you can not save any service description in a data base without a distinct id. add a column id . then you can merge it with array or whatever you want to doAtik Hashmee– Atik Hashmee2019-01-10 04:36:38 +00:00Commented Jan 10, 2019 at 4:36
-
You can merge two arrays with this function, array_merge()Inzamam Idrees– Inzamam Idrees2019-01-10 04:49:40 +00:00Commented Jan 10, 2019 at 4:49
Add a comment
|