473,569 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Concate

27 New Member
[PHP]if ($_SESSION[sex]=="M" && $_SESSION[name]=="ara" ) echo "<tr><td width=150 valign=top>."We lcome Mr.$_SESSION[name]&nbsp;&nbsp;$_S ESSION[lname]<img src="a.jpg">.ec ho"</td>"echo"<td valign=top><cen ter><font size=8 color=blue >Thank You For Your Visit</font></center><form><f ont size=4 ><b>Upload Your File &nbsp;</font><input type='file'><br ><br><br><br><b r><select><opti on>Armenia</option><option> Iran</option><option> USA</option></select><input type=submit value='Go'></form></td><td width=150 valign=top><a href=01.jpg><im g src=01.jpg width=70 height=60></a><br><br><img src=02.jpg width=70 height=60><br>< br><img src=03.jpg width=70 height=60></td></tr>";}{[/PHP]


I HAVE PROBLEM WITH CONCATES PLEASE DESCRIBE ME THIS PART [PHP] echo "<tr><td width=150 valign=top>."We lcome Mr.$_SESSION[name]&nbsp;&nbsp;$_S ESSION[lname]<img src="a.jpg">.ec ho"</td>"echo"<td valign=top><cen ter><font size=8 color=blue >Thank You For Your Visit</font></center><form><f ont size=4 ><b>Upload Your File &nbsp;</font><input [/PHP]

I HAVE TO SHOW A PICTURE FOR LOGED IN USER WHATS THE ERROR HERE.
Nov 29 '06 #1
3 2309
ronverdonk
4,258 Recognized Expert Specialist
Maybe we could be of help when you explained what you want to do.

Ronald :cool:
Nov 29 '06 #2
godrifle
6 New Member
I HAVE PROBLEM WITH CONCATES PLEASE DESCRIBE ME THIS PART [PHP] echo "<tr><td width=150 valign=top>."We lcome Mr.$_SESSION[name]&nbsp;&nbsp;$_S ESSION[lname]<img src="a.jpg">.ec ho"</td>"echo"<td valign=top><cen ter><font size=8 color=blue >Thank You For Your Visit</font></center><form><f ont size=4 ><b>Upload Your File &nbsp;</font><input [/PHP]

I HAVE TO SHOW A PICTURE FOR LOGED IN USER WHATS THE ERROR HERE.
Arrays, when included inside double quotes, should have curly brackets surrounding them, such as:

[PHP] echo "<tr><td width=150 valign=top>Welc ome Mr. {$_SESSION[name]}&nbsp;&nbsp;{$ _SESSION[lname]}<img src=\"a.jpg\"></td>";[/PHP]

and double quotes inside of a string enclosed in double quotes must be escaped (see the image tag above).
Nov 29 '06 #3
bishwadeep
12 New Member
bishwadeep: Read the Posting Guidelines at the top of this forum before you show any code. Especially the part about enclosing code within code, php or html tags!!
Ronald :cool:
<?
if ($_SESSION[sex]=="M" && $_SESSION[name]=="ara")
{
echo "<tr><td width=150 valign=top>Welc ome Mr".$_SESSION[name]."&nbsp;&nbsp;" .$_SESSION[lname]."<img src="a.jpg">".e cho"</td>
<td valign=top><cen ter><font size=8 color=blue>Than k You For Your Visit</font></center>
<form>
<font size=4 ><b>Upload Your File &nbsp;</font>
<input type='file'>
<br><br><br><br ><br>
<select>
<option>Armenia </option>
<option>Iran</option><
option>USA</option>
</select>
<input type=submit value='Go'>
</form>
</td>
<td width=150 valign=top>
<a href=01.jpg>
<img src=01.jpg width=70 height=60></a>
<br><br>
<img src=02.jpg width=70 height=60>
<br><br>
<img src=03.jpg width=70 height=60></td></tr>";
}
?>
Read the Posting Guidelines at the top of this forum before you show any code. Especially the part about enclosing code within code, php or html tags!!
Ronald :cool:
Nov 30 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

8
7083
by: mark | last post by:
Access2000 How do I write a query that combines the CTC field from each record below into one record? I need to concatenate the CTC field with a separator, like below: BattID VehicleID STDATE STTIME CTC LKO500HF 00000000 10/27/2003 4:13:51 AM 4 LKO500HF 00000000 10/27/2003 5:13:51 AM 5 LKO500HF 00000000 10/27/2003 10:13:51 AM 6...
6
2010
by: Gidi | last post by:
Hi, I'm writing a C# Windows Application and i have 3 questions: 1. I have a string which i want to write into file but i want to write it in ASCII format, how can i do it? 2. I need my string to be 120 chars length, incase it's less then 120 chars, i need to fill it with spaces, is there better way to do it then:
3
1646
by: Mike | last post by:
I have an update page with Checkbox's, how can I get the value of the checkbox and update the db table correctly? heres the snippet i'm trying to run and its not working strSQL = "update table1 set " & _ if chActive.checked = true then "active='Yes' end if
6
5516
by: Julius Fenata | last post by:
Dear all, I have created client-side scripting to trigger event onChange from code-behind, like this: DropDownList1.Attributes = "GenerateArticleID()"; At the script on Windows Form, I added this function to have the value of DropDownList1
8
8998
by: DEWright_CA | last post by:
Why does WebClient.DownloadFile loose my completed path? Ok, I have a function in my app then when my button is clicked it checks to see if the files come from a local drive or a http address. The portion of the code that pulls from the drive works great, but when the http address is active it changes the originating path to my...
3
1452
by: Alpha | last post by:
I have 2 strings, "12/28/2005" and "16:44:54". I need to conatenate them and convert them to datetime format so I can assign them to a datetime field in a datarow. The time is now being converted to the date "12/28/2005". and I don't know how to concatenate them since "+" won't work after I convert them. Thanks, Alpha if (result == "00")...
1
2009
by: Newbeee | last post by:
Hi all, I'm trying to write a procedure like this: CREATE PROCEDURE dbo.test1 @table_nm varchar(15) AS select * from + @table_nm GO
3
2161
by: creeds | last post by:
Helllo guys, i am not able to concate teh strings evn though i got lots of explaination reagding that in intrnet my problem is that.. i read a value from a console and concat that with other strings like read rad_no echo '$rad_no' var= echo 'select fn_deleteradno(' var2= $rad_no var3= echo ')'
1
9558
ssnaik84
by: ssnaik84 | last post by:
Hi Guys, Last year I got a chance to work with R&D team, which was working on DB scripts conversion.. Though there is migration tool available, it converts only tables and constraints.. Rest of things (stored procedures, functions).. we have to manually edit. That time, we face some interesting challenges.. I failed to document all of them,...
0
7700
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7614
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8125
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7974
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.