473,721 Members | 2,234 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

unexpected ELSE

C:\prj\quiz\wit husers>php tareports.php
PHP Parse error: syntax error, unexpected T_ELSE in
C:\prj\quiz\wit husers\tareport s.php on line 205
this is the section of code.

if (isset($row4)) {
if (isset($row5)) { //answer given?
if ($row4['answer_tag']==$row5['answer_tag']) {
?>
<div class=answer>An swer:<br />
<?php echo $row4['answer_tag']; ?>. <?php echo $row5['answer']; ?><?php if
($row5['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row5['answer_id']; ?>" /><?php } ?>
</div>
<br />
<?php
$ncorrect++;
} else { //no answer or answer is wrong
?>
<div class=answer>An swer 1:<br />
<?php echo $row5['answer_tag']; ?>. <?php echo $row5['answer']; ?><?php if
($row5['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row5['answer_id']; ?>" /><?php } ?>
</div>
<div class=answer>An swer 2:<br />
<?php echo $row4['answer_tag']; ?>. <?php echo $row4['answer']; ?><?php if
($row4['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row4['answer_id']; ?>" /><?php } ?>
</div>
<br />
<?php
$nwrong++;
}

....else blah blah
I need a 2nd pair of eyes. I've gone as far as I can debugging this thing.
my braces match. I even eliminated a stray open switch statement that I
copied from code elsewhere. Am I running into a PHP parser bug that doesn't
like certain IF constructs here?

I once got an error message about an unexpected } because one was missing in
my code or something like that. It was an odd error message for the problem.
and I think I am getting another one of these.
Mar 27 '06 #1
8 2814
Jim Michaels wrote:
C:\prj\quiz\wit husers>php tareports.php
PHP Parse error: syntax error, unexpected T_ELSE in
C:\prj\quiz\wit husers\tareport s.php on line 205
this is the section of code.

if (isset($row4)) {
if (isset($row5)) { //answer given?
if ($row4['answer_tag']==$row5['answer_tag']) {
?>
<div class=answer>An swer:<br />
<?php echo $row4['answer_tag']; ?>. <?php echo $row5['answer']; ?><?php if
($row5['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row5['answer_id']; ?>" /><?php } ?>
</div>
<br />
<?php
$ncorrect++;
} else { //no answer or answer is wrong
----------------^
.... this char here

?>
<div class=answer>An swer 1:<br />
<?php echo $row5['answer_tag']; ?>. <?php echo $row5['answer']; ?><?php if
($row5['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row5['answer_id']; ?>" /><?php } ?>
</div>
<div class=answer>An swer 2:<br />
<?php echo $row4['answer_tag']; ?>. <?php echo $row4['answer']; ?><?php if
($row4['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row4['answer_id']; ?>" /><?php } ?>
</div>
<br />
<?php
$nwrong++;
} ---------^
.... is ended by this one here, therefore an else is not expected here...
...else blah blah
I need a 2nd pair of eyes. I've gone as far as I can debugging this thing.
my braces match. I even eliminated a stray open switch statement that I
copied from code elsewhere. Am I running into a PHP parser bug that doesn't
like certain IF constructs here?

I once got an error message about an unexpected } because one was missing in
my code or something like that. It was an odd error message for the problem.
and I think I am getting another one of these.

Just at a glance I found the above.

I use a text editor called Textpad. It allows me to match open/close
braces/brackets/defined programming block containers. This is how I found
this.
--
dont pick your nose if it is sore
Mar 27 '06 #2

"Disco Octopus" <di**********@y ahoo.com> wrote in message
news:ke******** *************** ****@40tude.net ...
Jim Michaels wrote:
C:\prj\quiz\wit husers>php tareports.php
PHP Parse error: syntax error, unexpected T_ELSE in
C:\prj\quiz\wit husers\tareport s.php on line 205
this is the section of code.

if (isset($row4)) {
if (isset($row5)) { //answer given?
if ($row4['answer_tag']==$row5['answer_tag']) {
?>
<div class=answer>An swer:<br />
<?php echo $row4['answer_tag']; ?>. <?php echo $row5['answer']; ?><?php
if
($row5['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row5['answer_id']; ?>" /><?php } ?>
</div>
<br />
<?php
$ncorrect++;
} else { //no answer or answer is wrong
----------------^
... this char here


the open curly bracket? that's a standard if construct.
if () {
} else {
}
am I not doing this right? I don't see it.

?>
<div class=answer>An swer 1:<br />
<?php echo $row5['answer_tag']; ?>. <?php echo $row5['answer']; ?><?php
if
($row5['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row5['answer_id']; ?>" /><?php } ?>
</div>
<div class=answer>An swer 2:<br />
<?php echo $row4['answer_tag']; ?>. <?php echo $row4['answer']; ?><?php
if
($row4['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row4['answer_id']; ?>" /><?php } ?>
</div>
<br />
<?php
$nwrong++;
}

---------^
... is ended by this one here, therefore an else is not expected here...
...else blah blah
I need a 2nd pair of eyes. I've gone as far as I can debugging this
thing.
my braces match. I even eliminated a stray open switch statement that I
copied from code elsewhere. Am I running into a PHP parser bug that
doesn't
like certain IF constructs here?

I once got an error message about an unexpected } because one was missing
in
my code or something like that. It was an odd error message for the
problem.
and I think I am getting another one of these.

Just at a glance I found the above.

I use a text editor called Textpad. It allows me to match open/close
braces/brackets/defined programming block containers. This is how I found
this.
--
dont pick your nose if it is sore

Mar 27 '06 #3

"Disco Octopus" <di**********@y ahoo.com> wrote in message
news:ke******** *************** ****@40tude.net ...
Jim Michaels wrote:
C:\prj\quiz\wit husers>php tareports.php
PHP Parse error: syntax error, unexpected T_ELSE in
C:\prj\quiz\wit husers\tareport s.php on line 205
this is the section of code.

if (isset($row4)) {
if (isset($row5)) { //answer given?
if ($row4['answer_tag']==$row5['answer_tag']) {
?>
<div class=answer>An swer:<br />
<?php echo $row4['answer_tag']; ?>. <?php echo $row5['answer']; ?><?php
if
($row5['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row5['answer_id']; ?>" /><?php } ?>
</div>
<br />
<?php
$ncorrect++;
} else { //no answer or answer is wrong


----------------^
... this char here

?>
<div class=answer>An swer 1:<br />
<?php echo $row5['answer_tag']; ?>. <?php echo $row5['answer']; ?><?php
if
($row5['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row5['answer_id']; ?>" /><?php } ?>
</div>
<div class=answer>An swer 2:<br />
<?php echo $row4['answer_tag']; ?>. <?php echo $row4['answer']; ?><?php
if
($row4['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row4['answer_id']; ?>" /><?php } ?>
</div>
<br />
<?php
$nwrong++;
}

---------^
... is ended by this one here, therefore an else is not expected here...
...else blah blah
I need a 2nd pair of eyes. I've gone as far as I can debugging this
thing.
my braces match. I even eliminated a stray open switch statement that I
copied from code elsewhere. Am I running into a PHP parser bug that
doesn't
like certain IF constructs here?

I once got an error message about an unexpected } because one was missing
in
my code or something like that. It was an odd error message for the
problem.
and I think I am getting another one of these.

Just at a glance I found the above.

I use a text editor called Textpad. It allows me to match open/close
braces/brackets/defined programming block containers. This is how I found
this.


tried textpad. dreamweaver does the same thing as control-shift-M. Found
the open switch statement by printing out the code and drawing lines between
the brackets. turned out to be mostly dead code so I eliminated it. but it
was farther up the code block. didn't eliminate the error message. all it
did was move it.

the entire file (with headers for execution) can be found for a while at
http://home.comcast.net/~mmediap3/z/dbinc.php
http://home.comcast.net/~mmediap3/z/header.php
http://home.comcast.net/~mmediap3/z/tareports.php
tareports.php is the one with the problem.
Mar 27 '06 #4
Jim Michaels wrote:
"Disco Octopus" <di**********@y ahoo.com> wrote in message
news:ke******** *************** ****@40tude.net ...
Jim Michaels wrote:
C:\prj\quiz\wit husers>php tareports.php
PHP Parse error: syntax error, unexpected T_ELSE in
C:\prj\quiz\wit husers\tareport s.php on line 205
this is the section of code.

if (isset($row4)) {
if (isset($row5)) { //answer given?
if ($row4['answer_tag']==$row5['answer_tag']) {
?>
<div class=answer>An swer:<br />
<?php echo $row4['answer_tag']; ?>. <?php echo $row5['answer']; ?><?php
if
($row5['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row5['answer_id']; ?>" /><?php } ?>
</div>
<br />
<?php
$ncorrect++;
} else { //no answer or answer is wrong


----------------^
... this char here


the open curly bracket? that's a standard if construct.
if () {
} else {
}
am I not doing this right? I don't see it.


This was the first part of my response...



?>
<div class=answer>An swer 1:<br />
<?php echo $row5['answer_tag']; ?>. <?php echo $row5['answer']; ?><?php
if
($row5['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row5['answer_id']; ?>" /><?php } ?>
</div>
<div class=answer>An swer 2:<br />
<?php echo $row4['answer_tag']; ?>. <?php echo $row4['answer']; ?><?php
if
($row4['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row4['answer_id']; ?>" /><?php } ?>
</div>
<br />
<?php
$nwrong++;
}

--------^
... is ended by this one here, therefore an else is not expected here...


I think you may have missed the *second* part of my responce to you.

--
freeball
Mar 27 '06 #5

"Disco Octopus" <di**********@y ahoo.com> wrote in message
news:9s******** *************** ****@40tude.net ...
Jim Michaels wrote:
"Disco Octopus" <di**********@y ahoo.com> wrote in message
news:ke******** *************** ****@40tude.net ...
Jim Michaels wrote:

C:\prj\quiz\wit husers>php tareports.php
PHP Parse error: syntax error, unexpected T_ELSE in
C:\prj\quiz\wit husers\tareport s.php on line 205
this is the section of code.

if (isset($row4)) {
if (isset($row5)) { //answer given?
if ($row4['answer_tag']==$row5['answer_tag']) {
?>
<div class=answer>An swer:<br />
<?php echo $row4['answer_tag']; ?>. <?php echo $row5['answer'];
?><?php
if
($row5['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row5['answer_id']; ?>" /><?php } ?>
</div>
<br />
<?php
$ncorrect++;
} else { //no answer or answer is wrong

----------------^
... this char here


the open curly bracket? that's a standard if construct.
if () {
} else {
}
am I not doing this right? I don't see it.


This was the first part of my response...




?>
<div class=answer>An swer 1:<br />
<?php echo $row5['answer_tag']; ?>. <?php echo $row5['answer'];
?><?php
if
($row5['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row5['answer_id']; ?>" /><?php } ?>
</div>
<div class=answer>An swer 2:<br />
<?php echo $row4['answer_tag']; ?>. <?php echo $row4['answer'];
?><?php
if
($row4['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row4['answer_id']; ?>" /><?php } ?>
</div>
<br />
<?php
$nwrong++;
}
--------^
... is ended by this one here, therefore an else is not expected here...

I think you may have missed the *second* part of my responce to you.

I have the same kind of construct which didn't get an error at lines
134-153.
if ($row2['ra_id_given_id ']!=0) {
$q3=mysql_query ("SELECT * FROM quiz_report_que stions WHERE
rq_id=$row2[ra_id_given_id]", $link);
$row3=mysql_fet ch_array($q3);
if ($row2['correct_ra_id']!=0) {
$q4=mysql_query ("SELECT * FROM quiz_report_ans wers WHERE
ra_id=$row2[correct_ra_id]", $link);
$row4=mysql_fet ch_array($q4);
if ($row4['answer_tag']==$row3['answer_tag']) {
$ncorrect++;
} else {
$nwrong++;
}
} else { //bad test
$bad=true;
}
} else { // user gave no answer. doesn't matter if no answer available.
if ($row2['correct_ra_id']!=0) {
//answer available. consider it wrong. don't even have to look
it up.
$nwrong++;
}
}
}
One clue:

I commented out the else statements because both were giving the same
"unexpected " error (?!?interpreter bug?) then it complained about
unexpected case. (!?!) I double-checked the syntax. looks valid for a
switch(){}. something else above that first else error is causing the
interpreter to go haywire.

if (isset($row4)) {
if (isset($row5)) { //answer given?
if ($row4['answer_tag']==$row5['answer_tag']) {
?>
<div class=answer>An swer given:<br />
<?php echo $row4['answer_tag']; ?>. <?php echo $row5['answer']; ?><?php if
($row5['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row5['answer_id']; ?>" /><?php } ?>
</div>
<br />
<?php
$ncorrect++;
} /*else { //no answer or answer is wrong
?>
<div class=answer>An swer given:<br />
<?php echo $row5['answer_tag']; ?>. <?php echo $row5['answer']; ?><?php if
($row5['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row5['answer_id']; ?>" /><?php } ?>
</div>
<div class=answer>Co rrect Answer:<br />
<?php echo $row4['answer_tag']; ?>. <?php echo $row4['answer']; ?><?php if
($row4['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row4['answer_id']; ?>" /><?php } ?>
</div>
<br />
<?php
$nwrong++;
}*/
} /*else { //no answer given
?>
<div class=answer>An swer given:<br />
None.
</div>
<br />
<?php
$nwrong++;
}*/
} //else question has no correct answer. don't count.
Mar 27 '06 #6
>
I have the same kind of construct which didn't get an error at lines
134-153.
if ($row2['ra_id_given_id ']!=0) {
$q3=mysql_query ("SELECT * FROM quiz_report_que stions WHERE
rq_id=$row2[ra_id_given_id]", $link);
$row3=mysql_fet ch_array($q3);
if ($row2['correct_ra_id']!=0) {
$q4=mysql_query ("SELECT * FROM quiz_report_ans wers WHERE
ra_id=$row2[correct_ra_id]", $link);
$row4=mysql_fet ch_array($q4);
if ($row4['answer_tag']==$row3['answer_tag']) {
$ncorrect++;
} else {
$nwrong++;
}
} else { //bad test
$bad=true;
}
} else { // user gave no answer. doesn't matter if no answer
available.
if ($row2['correct_ra_id']!=0) {
//answer available. consider it wrong. don't even have to look
it up.
$nwrong++;
}
}
}


You have already been told by Disco Octopus what the problem is, (did you
even read his reply?).
Look at the code bellow and it will show you where the error is.

if ($row2['ra_id_given_id ']!=0)
{
$q3=mysql_query ("SELECT * FROM quiz_report_que stions WHERE
rq_id=$row2[ra_id_given_id]", $link);
$row3=mysql_fet ch_array($q3);
if ($row2['correct_ra_id']!=0)
{
$q4=mysql_query ("SELECT * FROM quiz_report_ans wers WHERE
ra_id=$row2[correct_ra_id]", $link);
$row4=mysql_fet ch_array($q4);
if ($row4['answer_tag']==$row3['answer_tag'])
{
$ncorrect++;
}
else
{
$nwrong++;
}
}
else
{ //bad test
$bad=true;
}
////////////////////////////////////////////////////
// this else has no if!!!!
////////////////////////////////////////////////////
}
else
{ // user gave no answer. doesn't matter if no answer available.
if ($row2['correct_ra_id']!=0)
{
//answer available. consider it wrong. don't even have to look
it up.
$nwrong++;
}
}
}

And in my experience, "(?!?interprete r bug?)" usually means that you are
wrong.

Simon
--
http://urlkick.com/
Free URL redirection service. Turns a long URL into a much shorter one.
Mar 27 '06 #7

"Simon" <sp********@exa mple.com> wrote in message
news:48******** ****@individual .net...

I have the same kind of construct which didn't get an error at lines
134-153.
if ($row2['ra_id_given_id ']!=0) {
$q3=mysql_query ("SELECT * FROM quiz_report_que stions WHERE
rq_id=$row2[ra_id_given_id]", $link);
$row3=mysql_fet ch_array($q3);
if ($row2['correct_ra_id']!=0) {
$q4=mysql_query ("SELECT * FROM quiz_report_ans wers WHERE
ra_id=$row2[correct_ra_id]", $link);
$row4=mysql_fet ch_array($q4);
if ($row4['answer_tag']==$row3['answer_tag']) {
$ncorrect++;
} else {
$nwrong++;
}
} else { //bad test
$bad=true;
}
} else { // user gave no answer. doesn't matter if no answer
available.
if ($row2['correct_ra_id']!=0) {
//answer available. consider it wrong. don't even have to look
it up.
$nwrong++;
}
}
}

You have already been told by Disco Octopus what the problem is, (did you
even read his reply?).
Look at the code bellow and it will show you where the error is.

if ($row2['ra_id_given_id ']!=0)
{
$q3=mysql_query ("SELECT * FROM quiz_report_que stions WHERE
rq_id=$row2[ra_id_given_id]", $link);
$row3=mysql_fet ch_array($q3);
if ($row2['correct_ra_id']!=0)
{
$q4=mysql_query ("SELECT * FROM quiz_report_ans wers WHERE
ra_id=$row2[correct_ra_id]", $link);
$row4=mysql_fet ch_array($q4);
if ($row4['answer_tag']==$row3['answer_tag'])
{
$ncorrect++;
}
else
{
$nwrong++;
}
}
else
{ //bad test
$bad=true;
}
////////////////////////////////////////////////////
// this else has no if!!!!
////////////////////////////////////////////////////
}
else
{ // user gave no answer. doesn't matter if no answer available.
if ($row2['correct_ra_id']!=0)
{
//answer available. consider it wrong. don't even have to look
it up.
$nwrong++;
}
}
}

see the if statement if ($row2['correct_ra_id']!=0) { for the one
with the comment "bad test". it's obvious.
for the one without the comment below your /////////// see if
($row2['ra_id_given_id ']!=0) { it goes with the one with the comment "user
gave no answer". brackets match. already checked many times. I printed
the code out and drew lines between the curly brackets to make sure my if
statements were correct, and checked them with a brace checker.

it turns out I am not the only one to cause the interpreter to crash with
this "unexpected T_ELSE" error message (causes VC6 JIT debugger to come up).
there is a bug logged at php.net. the first guy didn't give his full code
so the bug report didn't go very far.

the last curly brace came from the end of a while() statement so it's bogus.

I did find an echo line around line 306 that didn't have a semicolon. (4.3.8
didn't give me an error about a missing else or case statement) I
discovered that because I used 4.3.8 to execute it. and then after I fixed
that bug, 4.3.8 hung and I can't kill it. maybe it's because of the
sessions or mysql being used in conjection with command-line (sessions?).


And in my experience, "(?!?interprete r bug?)" usually means that you are
wrong.

Simon
--
http://urlkick.com/
Free URL redirection service. Turns a long URL into a much shorter one.

Mar 27 '06 #8
In article <16************ ********@comcas t.com>,
"Jim Michaels" <NO************ ***@yahoo.com> wrote:
C:\prj\quiz\wit husers>php tareports.php
PHP Parse error: syntax error, unexpected T_ELSE in
C:\prj\quiz\wit husers\tareport s.php on line 205
this is the section of code.

if (isset($row4)) {
if (isset($row5)) { //answer given?
if ($row4['answer_tag']==$row5['answer_tag']) {
?>
<div class=answer>An swer:<br />
<?php echo $row4['answer_tag']; ?>. <?php echo $row5['answer']; ?><?php if
($row5['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row5['answer_id']; ?>" /><?php } ?>
</div>
<br />
<?php
$ncorrect++;
} else { //no answer or answer is wrong
?>
<div class=answer>An swer 1:<br />
<?php echo $row5['answer_tag']; ?>. <?php echo $row5['answer']; ?><?php if
($row5['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row5['answer_id']; ?>" /><?php } ?>
</div>
<div class=answer>An swer 2:<br />
<?php echo $row4['answer_tag']; ?>. <?php echo $row4['answer']; ?><?php if
($row4['is_img']) { ?><img src="<?php echo getconfigvar("b asepath");
?>viewraimg.php ?id=<?php echo $row4['answer_id']; ?>" /><?php } ?>
</div>
<br />
<?php
$nwrong++;
}

...else blah blah
I need a 2nd pair of eyes. I've gone as far as I can debugging this thing.
my braces match. I even eliminated a stray open switch statement that I
copied from code elsewhere. Am I running into a PHP parser bug that doesn't
like certain IF constructs here?

I once got an error message about an unexpected } because one was missing in
my code or something like that. It was an odd error message for the problem.
and I think I am getting another one of these.


Not that this is going to help but ...

I have to say I find code laid out like this to be unreadable. I tend to
line up ifs, elses, and braces so I can easily see where blocks start
and end and which else matches with which if. Is it tedious to do this?
A bit but it saves huge amounts of time. For editing I use TextWrangler
as that gives syntax-colouring - useful when you have lots of quotes
kicking about.

Also if you have lots of nested ifs and elses you probably want to
rethink what you are doing and how you are doing it.

-- tim
Mar 30 '06 #9

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

Similar topics

3
15061
by: Marten van Urk | last post by:
I got the following error in my page Parse error: parse error, unexpected T_ELSE in line 25 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Club</title> </head> <style type="text/css">
3
2855
by: Teddy | last post by:
Hello all According to "Think in C++ Volume2", the code below should run smoothly: #include <iostream> #include <exception> using namespace std; class ex { };
2
1505
by: paul.mason | last post by:
I was wondering if anyone else had come across this "feature" of .NET and if they had any idea what might be causing it. I've been writing my first C# Windows application (so if there's anything so appalling in my code that it gives experienced developers a touch of the vapours, I hope you'll be indulgent!) I've written my own code to handle unexpected exceptions and I've added this as the handler to Application.ThreadException. It all...
2
20012
by: P | last post by:
Hi all, I'm trying to run the following code taken from http://blogs.ittoolbox.com/database/technology/archives/006045.asp# select substr(tablespace_name,1,30) as "Tablespace Name", case (tablespace_type) when 0 then 'DMS' else 'SMS' end as "Type",
2
2069
by: Dimitri Furman | last post by:
SQL Server 2000 SP4. Running the script below prints 'Unexpected': ----------------------------- DECLARE @String AS varchar(1) SELECT @String = 'z' IF @String LIKE ''
13
3613
by: bintom | last post by:
I ran the following simple code in C++ and got unexpected results: float f = 139.4; cout << f; Output: 139.399994;
6
1787
by: LordZyse | last post by:
Just so everyone can know, I would LOVE to stay with yellowtip webserver, if you know how to install the GD files to it PLEASE let me know. This php worked on my 4.x php server but I get unexpected end with any other. Needless to say I only upgraded to 5.2 because Yellowtip web server 2.0's php did not come with the GD librarys which I needed to upload pics using mini file host. If you can fix ethier problem I would be so greatful
3
5065
by: broll911 | last post by:
I am gettin a error message on this script can someone help me. I am a complete newbie on this stuff. Thanks in advance for any help you can give me. here is the error. Parse error: syntax error, unexpected T_VARIABLE in /home/content/m/i/x/mixxsalon/html/FormToEmail.php on line 1 here is the code. <?php $my_email = "user@example.com"; /*
4
2792
by: maveri4201 | last post by:
I have written a php script (test3.php), which I attached as a text file. Its includes are also attached as text files. I'm trying to run the script here: http://www.wondergy.com/phptestbed/test3.php The problem I'm having is the frustrating Unexpected $end. Yes, I know that it usually means something isn't being closed correctly. The problem is, I can't figure out what. To make the problem stranger, I can get it to parse when I break it up...
0
8730
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9215
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9064
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8007
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5981
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4484
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3189
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
2
2576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2130
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.