473,396 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

php echo problem

17
echo "<td width=\"300\" align=\"left\"><?php echo $_SESSION['EmployeeNo'] ?></td>";

The above line of code give me the error message:
"Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in D:\XAMPP\htdocs\DW\personalDetail.php on line 132"

I new to php, no idea how to fix this issue, i just know there is something wrong starting from<?php......

I'm glad if anyone can point out my error. Thanks.
Mar 2 '08 #1
3 1212
ronverdonk
4,258 Expert 4TB
You do an <?php....?> within a PHP command, so change it to[php]echo "<td width=\"300\" align=\"left\">".$_SESSION['EmployeeNo']."</td>";[/php]Ronald
Mar 3 '08 #2
xirowei
17
Thanks for your help.
Mar 4 '08 #3
ronverdonk
4,258 Expert 4TB
Thanks for your help.
Welcome. See you next time.

Ronald
Mar 4 '08 #4

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

Similar topics

2
by: lawrence | last post by:
Right now, over at www.monkeyclaus.org, the following script is getting to the 9th run through and dying after the line: echo "..."; You'll admit that is a strange place to die. I've hit...
8
by: Nick Messick | last post by:
I have a multi step signup form that I'm building and I have the following question. Should I do it this way: <?php if (blah == 1) { ?><table><td width="100">........etc <?php } else { ?>...
3
by: JDJones | last post by:
I am using PHP to read a CSV file and print the output to a table. It works fine but the output is generating an extra empty <td></td> column at the end of each line and for the life of me I can't...
2
by: Adam Carolla | last post by:
I have now spent well over 12 hours on this one problem. I am pulling data out of a database, the data in the database is categorized by a value (season). I need to title the first value, then...
9
by: Robertico | last post by:
Is it possible to add a "href=" tag to an echo line. Something like this: echo "<b>$name</b>,<br>Sorry there's a problem sending your message. Please try <a href="/mail.html">again</a>"; ...
4
by: weirdstuff | last post by:
Hi. I have this simple code: =========================================== ->Database query here (.. some code) $row=mysql_fetch_array($res); (...)
4
by: Maximus | last post by:
Guys, I have a mysql query that grabs data from the table ... the data is "variable names" something like $home $about $contact I need the loop to echo those variables as PHP Code, so that...
2
by: peridian | last post by:
I've gotten a really weird result crop up on my site, and I can't find any information on the web that it has been seen elsewhere. Given how weird this is, I guess it's probably a symptom of either...
25
by: Jon Slaughter | last post by:
I have some code that loads up some php/html files and does a few things to them and ultimately returns an html file with some php code in it. I then pass that file onto the user by using echo. Of...
32
by: Request-1 | last post by:
hi folks, html coder here, new and terrified * of php!! aaaaaa! i'm trying to bury a JS script to rotate a photo, in a page i converted from html to php. the conversion went well, it was to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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,...

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.