473,396 Members | 1,913 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.

Parse error: parse error, expecting `','' or `';''

I'm getting the following error Parse error: parse error, expecting `','' or
`';'' in /home/notarywe/public_html/php/update2.php on line 108

Here is line 108

<input type="text" name="ud_first" value="<? echo "$first"
size="20"?>"></td>

Any help would be appreciated.
Jul 16 '05 #1
2 16277

On 3-Aug-2003, "entoone" <en*****@pacbell.net> wrote:
I'm getting the following error Parse error: parse error, expecting `',''
or
`';'' in /home/notarywe/public_html/php/update2.php on line 108

Here is line 108

<input type="text" name="ud_first" value="<? echo "$first"
size="20"?>"></td>


Please cross post instead of posting the same message separately to multiple
news groups.

The problem is your php statement <? echo "$first" size="20"?> is incorrect.
The correct syntax for it would be:
<? echo "$first size=\"20\"" ?> but I doubt that's what you want. try:
<input type="text" name="ud_first" value="<? echo "$first"; ?>"
size="20"></td>
--
Tom Thackrey
www.creative-light.com
Jul 16 '05 #2
Tom Thackrey wrote:
On 3-Aug-2003, "entoone" <en*****@pacbell.net> wrote:

I'm getting the following error Parse error: parse error, expecting `',''
or
`';'' in /home/notarywe/public_html/php/update2.php on line 108

Here is line 108

<input type="text" name="ud_first" value="<? echo "$first"
size="20"?>"></td>

Please cross post instead of posting the same message separately to multiple
news groups.

The problem is your php statement <? echo "$first" size="20"?> is incorrect.
The correct syntax for it would be:
<? echo "$first size=\"20\"" ?> but I doubt that's what you want. try:
<input type="text" name="ud_first" value="<? echo "$first"; ?>"
size="20"></td>


Or, make it even easier to read:
<input type="text" name="ud_first" value="<?=$first?>" size="20">

Jul 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Anna MZ | last post by:
I am new to php and have written the following mysql code to enter the details of a new user in the admin subdomain of my website: $sql = "INSERT INTO 'users' ('userid', 'username', 'upassword')...
1
by: soidariti | last post by:
database error - parse error, unexpected $, expecting kEND AddUserAuthorisationToUsers.rb migration file 1. class AddUserAuthorisationToUsers < ActiveRecord::Migration 2. def self.up ...
1
AdrianH
by: AdrianH | last post by:
Assumptions I am assuming that you know or are capable of looking up the functions I am to describe here and have some remedial understanding of C programming. FYI Although I have called this...
4
kestrel
by: kestrel | last post by:
I have some html code that is supposed to be displayed by php echo. But for some reason i keep getting a syntax error, and i cant figure out what is going on. Heres what i have <?php...
1
by: Phaelle | last post by:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' What does that error mean? I canīt find the mistake!! In another script, I have got another kind of mistake : parse...
3
by: basswhizz | last post by:
Hi everyone im a high school student and I'm having trouble with one of my projects could you please help!! I'm getting this error message. Parse error: syntax error, unexpected...
36
by: rhys | last post by:
My Gurus and Angels -- Please pardon this old-school programmer, only recently enlightened to open-source, having been trapped in the convenience of proprietary lingos for way too long. My...
18
by: kelbly | last post by:
Hi I am a newbie can anybody help me please? I am gettin the following error Parse error: parse error, expecting `']'' in c:\program files\easyphp1-8\www\webshop\routines\tSys.php(483) :...
3
by: sclarkstone | last post by:
Im getting this error; Parse error: syntax error, unexpected T_STRING, expecting ':' or ';' with this line; header ('postcodesearch.php?e=nw&pcode=',); I cant find whats wrong, can anyone...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.