Solved

concat in .php

Posted on 2016-09-12
3
69 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: 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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
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.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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.

691 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