Solved

concat in .php

Posted on 2016-09-12
3
36 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
Comment Utility
Try something like $result = $data1 . ' ' . $data2; It's very hard to tell without seeing all of your code.
0
 

Author Comment

by:enrique_aeo
Comment Utility
i can not work

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

Author Comment

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

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now