Solved

concat in .php

Posted on 2016-09-12
3
65 Views
Last Modified: 2016-09-12
i have this

echo "<td width='30%'>$results[CCDDESART]</td>";

this is the result: COLORANTE PARA PET GRADO BOTELLA COLOR PLATA 472-10029-1 (EX LN-539)

i have this variable: $results[UNIDAD]
i need concat COLORANTE PARA PET GRADO BOTELLA COLOR PLATA 472-10029-1 (EX LN-539).
with
La unidad de medida es: $results[UNIDAD]
0
Comment
Question by:enrique_aeo
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
Dillyn Barber earned 500 total points
ID: 41795260
Try something like $result = $data1 . ' ' . $data2; It's very hard to tell without seeing all of your code.
0
 

Author Comment

by:enrique_aeo
ID: 41795280
i can not work

echo "<td width='30%'>".$results[CCDDESART]. ' LA UNIDAD DE MEDIDA ES: ' . $results[UNIDAD]</td>";
0
 

Author Comment

by:enrique_aeo
ID: 41795283
echo "<td width='30%'>".$results[CCDDESART]. ' LA UNIDAD DE MEDIDA ES: ' . $results[UNIDAD]."</td>";
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question