Parse Error: Parse Error, Unexpected T_ENCAPSED_AND_WHITESPACE, Expecting T_STRING

Jan 12, 2007

I am getting Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING error, here are the lines:

for($i=0; $i<12; $i++){
$aquery = "INSERT INTO uaq_scbatsmen VALUES('$row2['id']', 'a', '$a_player[$i]', '$a_out[$i]', '$a_balls[$i]', '$a_4s[$i]', '$a_6s[$i]', '$a_runs[$i]')";
mysql_query($aquery);
}

The problem line is the middle one ($aquery). Most probably problem is that I am missing some " or ; or something else but after hours of head banging I still can't find the problem.

ADVERTISEMENT

Parse Error: Parse Error, Unexpected T_ENCAPSED_AND_WHITESPACE, Expecting T_STRING Or T_VARIABLE Or T_NUM_STRING In C:

Jul 26, 2006

I am finding this error in my code when I run the file, I'm using php5.2, mysql5 and apache2.2 error:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:Program FilesApache Software FoundationApache2.2htdocscreate_entry.php on line 20
The part of the program I'm running is:
<?php
mysql_connect("127.0.0.1:3306", "root", "swarajpkb") or
die("Could not connect to database");
mysql_select_db("guestbook") or
die("Could not connect to database");

if($_REQUEST['submit']=="Sign!")
{
$query="insert into guestbook(name) values $_REQUEST['name']";
mysql_query($query) or
die(mysql_error());
?>

View 3 Replies View Related

Parse Error: Parse Error, Unexpected T_ENCAPSED_AND_WHITESPACE, Expecting T_STRING Or T_VARIABLE

Feb 22, 2006

Hi, could you please tell me what this mean. I have checked out php.net but description for this syntax is missing on the page.

Heres the whole error msg:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/kxenuqbo/public_html/event.php on line 32

View 1 Replies View Related

Parse Error: Syntax Error, Unexpected T_ENCAPSED_AND_WHITESPACE, Expecting T_STRING

Dec 8, 2006

I am getting the following error:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /foldername/newarticle.php on line 14

I have removed any whitespace etc that I can find which leads me to conclude it must be a syntax error. My code is to follow: Code:

View 5 Replies View Related

Parse Error: Syntax Error, Unexpected T_ENCAPSED_AND_WHITESPACE, Expecting T_STRING Or T_VARIABLE Or T_NUM_STRING In C:

Mar 31, 2007

I'm trying to test a SELECT query. When I run the query, I receive the following message:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:InetpubfullfocusInformed est.php on line 11

I have stared at this query for a long time trying to figure out what's wrong. I can't seem to figure it out. Code:

View 3 Replies View Related

Parse Error: Syntax Error, Unexpected T_ENCAPSED_AND_WHITESPACE, Expecting T_STRING Or T_VARIABLE Or T_NUM_STRING

Feb 27, 2010

I have this code.

foreach($_POST as $key => $val):
echo "<code>isset($_POST['</code>" . $key . "<code>']) && !empty($_POST['</code>" . $key . "<code>']) &&</code>";
endforeach;

And I get these errors. Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING

View 2 Replies View Related

Parse Error: Parse Error, Unexpected T_STRING, Expecting T_VARIABLE Or '$' In /home/

Oct 28, 2005

One of my script all these days working fine, and all of a sudden started giving the following error message. I did not do any changes, but it happened:

Error Message
Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE or '$' in /home/zoolo/public_html/ke/3.php on line 424

This is what is line 424:
$query = "SELECT thumb FROM $dbimg WHERE itemno='$data[itemno]' ORDER BY id DESC LIMIT 1";

View 1 Replies View Related

Parse Error: Parse Error, Unexpected T_STRING, Expecting T_VARIABLE Or '$' In

Dec 7, 2005

I'm trying to connect to my 'db' but I'm receving this error:

Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE or '$' in bla..bla...../opendb.php on line 3

The code: (opendb.php)

<?

//error in this line
$conn = mysql_connect ($dbhost, $dbuser, $dbpass) or die ('Unable to connect to database');
mysql_select_db ($dbname);
?>

I've correctly configured everything on my server. What could be the problem?

View 9 Replies View Related

Parse Error: Syntax Error, Unexpected T_ENCAPSED_AND_WHITESPACE, Expecting T_STR

Mar 28, 2007

I am having troubles entering this info into my db. Cna someone help? This is the error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/realfina/public_html/ec/testdobaapi.php on line 22 Code:

View 1 Replies View Related

Parse Error: Syntax Error, Unexpected T_ENCAPSED_AND_WHITESPACE, Expecting T_STR?

Jul 13, 2011

I'm getting this error and I can't figure out why! Can someone help me please?

Error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:wampwwwRegistrationindex.php on line 32

My Code:
Code: [Select]
<html>[code]....

View 5 Replies View Related

Parse Error: Parse Error, Unexpected T_STRING, Expecting ',' Or ';'

Jul 12, 2002

I've got error for this:

<td width="23%"><font face="Arial, Helvetica, sans-serif" size="1">
<?php echo online: $int_count;?>
</font></td>

View 5 Replies View Related

Parse Error: Syntax Error, Unexpected T_STRING, Expecting T_OLD_FUNCTION Or T_FUNCTIO?

Jul 21, 2009

What am I doing wrong?

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/cat/public_html/track/admin/sys/class.cluster.php on line 11

PHP Code:
<?php
/**
* Defines a Cluster.[code]....

View 1 Replies View Related

Parse Error: Syntax Error, Unexpected T_STRING, Expecting T_FUNCTION?

Mar 17, 2011

I got the error msg: Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION on line 43

which is the end of the code. I looked the error up and it seems to be related to the version of PHP. Currently I have PHP 5.2 according to phpinfo() and I am not sure why it gives me errors?

function runPlugin(&$db, &$settings, &$request){
global $settings;
parent::runPlugin($db, $settings, $request);[code].....

View 2 Replies View Related

Parse Error: Syntax Error, Unexpected T_STRING, Expecting T_FUNCTION ?

Mar 21, 2011

i searched through the forum, but could't find anything. PHP Version 5.2.9 (not 4)When I run the following code, I get this err: Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in.. on line 11

var $flag_dirs = array(SMALL => 'assets/flags/small', BIG => 'assets/flags/big');
var $flag_ext = 'png';
cfunction getctrybycode($code) {
$countryArray = array();
[code]............

View 2 Replies View Related

Parse Error: Syntax Error, Unexpected T_STRING, Expecting T_OLD_FUNCTION Or T_FUNCTION Or T_VAR Or '}'

Jun 23, 2010

I have the following class:

PHP Code:
<?php
class Gallery{
public function selectGalleryCategories(){
$sql = "SELECT * FROM tbl_gallerycategories";
$result = mysql_query($sql);
return $result;
}
}

When i try using "include('classes/Galleries.class.php');" i get an error:

Quote: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/27/d208312252/htdocs/fusion/admin/classes/Galleries.class.php on line 5

Line 5 is this: Quote: public function selectGalleryCategories(){

View 3 Replies View Related

Parse Error: Syntax Error, Unexpected T_STRING, Expecting ',' Or ';'

Oct 10, 2007

This is the dreaful error I've been getting

PHP Parse error: syntax error, unexpected T_STRING, expecting ',' or '' in C:hshomegen116valskidsline.comcontactus1.php on line 95

I decided to add a email form to our contact page. For customers to fill out and automatically be emailed to us.

I 'thought' I was almost done and everything was complete once I uploaded both pages.... ha!

I got a tutorial and the codes from a friend of mine and I didn't change anything other than a few titles and options. The row giving me trouble has not been changed or altered from his tutorial and code. I contacted him and he said he had no idea what the problem was.

View 4 Replies View Related

Parse Error: Syntax Error, Unexpected T_STRING, Expecting?

Feb 24, 2010

Message error says: Parse error: syntax error, unexpected T_STRING, expecting ')' in /var/www/simplesamlphp/dictionaries/errors.php on line 268The complete code is:PHP Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head
[code]....

View 1 Replies View Related

Parse Error: Syntax Error, Unexpected T_STRING, Expecting

Feb 18, 2011


<?php
$pvtKey = "1234";  //should be securely stored in a database, not like this
[code]....

View 2 Replies View Related

Parse Error: Syntax Error, Unexpected T_STRING, Expecting ',' Or ';'...

May 16, 2007

I'm a total n00b to this and I'm trying out "PHP & MySQL for Dummies". The first php file it tells me to test out doesn't seem to work on my dreamhost server. Code:

View 1 Replies View Related

Parse Error: Syntax Error, Unexpected T_STRING, Expecting ',' Or ''

Apr 20, 2010

I'm learning PHP and am having an issue I can't seem to figure out this issue. I'm getting the following error on the line: {echo "<option value='freshman' selected = 'selected'>Freshman</option>}";}

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /net/oitg/export/home1/home3/mdl0002/public_html/assignment1/lookupstudent.php  on line 58

$SQLstring = "SELECT * FROM student WHERE id = '$id'";
$QueryResult = @mysql_query($SQLstring);
$NumRows = mysqli_num_rows($QueryResult);   
if ($NumRows == 0)
echo "<p>No Records Found.";
else {
$Row = mysql_fetch_arraw($QueryResult);
$id = $Row['id'];
$name_last = $Row['name_last'];
[Code]...

View 3 Replies View Related

Parse Error: Syntax Error, Unexpected T_STRING, Expecting ',' Or '' In?

Jan 15, 2011

I was having that error message (Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in) in this line:

echo "<td>" . $row['name'] . "</td>";
echo "<td>" . $row[".name."] . "</td>";

It seems to work fine, but this is the right way?

View 2 Replies View Related

Parse Error, Unexpected T_STRING, Expecting ',' Or ';' In

Jan 30, 2006

I receive the following message when I try to replace a google adsense javascript with phpadsnew javascript.

Parse error: parse error, unexpected T_STRING, expecting ',' or '' in /home/oghq/public_html/plugins/site/themes/21/game.php on line 131

Code:

View 1 Replies View Related

Wordpress - Parse Error - Unexpected T_STRING Expecting

May 16, 2011

I'm getting this syntax error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' on line 18 on this page. I think it's the 'first published' line that could be the problem.

[CODE....]

View 5 Replies View Related

Parse Error Unexpected T_STRING, Expecting T_OLD_FUNCTION Or T_FUNCTION?

Oct 15, 2010

I am seeing this error in a file called functions.php:Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'I just installed a new theme in wordpress, I don't know much php.Is this something I can fix easily?

View 1 Replies View Related

Syntax Error, Unexpected T_ENCAPSED_AND_WHITESPACE, Expecting T_STRING?

Dec 3, 2010

/***save the user information to file***/
$first_name=$_POST['first_name'];
$last_name=$_POST['last_name'];
[code].........

View 2 Replies View Related

Parse Error: Parse Error, Expecting `T_STRING' Or `T_VARIABLE' Or `T_NUM_STRING' In /home

Jul 16, 2005

I can't figure out what this error means:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' in /home/easilyta/public_html/pub/user.php on line 190.

heres a snippet of the code:
if (!isset($_COOKIE['cookie'][id])) {
header("Location:
http://error.easilytaken.com/usererror.php?error=login");
exit;
}
188 mysql_connect("localhost", "username",
"password");
189 mysql_select_db("database");
190 $cookie_idfind = mysql_query("SELECT cookie_id
FROM master WHERE user='$_COOKIE['cookie'][id]'");
191 $cookie_id = mysql_fetch_array($cookie_idfind);
192 if($cookie_id[0] == $_COOKIE['cookie'][auth]){
//
//
print 'hello, world'

basically what this does is takes the cookie[id] (which is the user field in
the db) and cookie[auth] (which is cookie_id in the db) using $_COOKIE and
checks to see if the user has the right authorization number stored in their
computer. any ideas as to why i get this error? the manuals are getting me
nowhere...

View 1 Replies View Related

String - Put HTML Into A Array / Syntax Error, Unexpected T_Encapsed_and_Whitespace, Expecting T_String Or T_Variable Or T_num_String?

Jun 24, 2010

how can I make this not return an error of:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING

$day[$i++] = "<tr><?php if(isset($schedule['00:00'])) { ?><td style="width:32px"><?php echo $schedule['00:00'] ?></td><?php } if(isset($schedule['02:00'])) { ?><td style="width:32px"><?php echo $schedule['02:00'] ?></td><?php } if(isset($schedule['03:00'])) { ?><td style="width:32px"><?php echo $schedule['03:00'] ?></td><?php } if(isset($schedule['04:00'])) { ?><td style="width:32px"><?php echo $schedule['04:00'] ?></td><?php } if(isset($schedule['05:00'])) { ?><td style="width:32px"><?php echo $schedule['05:00'] ?></td><?php } if(isset($schedule['06:00'])) { ?><td style="width:32px"><?php echo $schedule['06:00'] ?></td><?php } if(isset($schedule['07:00'])) { ?><td style="width:32px"><?php echo

View 4 Replies View Related

Data From A Webform On Submit Cause Parse Error: Parse Error, Unexpected T_STRING

Mar 14, 2005

I have edited a php script to pick up the data from a webform and convert it into a email and when i submit it i get a error.....

Parse error: parse error, unexpected T_STRING in /home/nas01l/f/flexamatic.com/user/htdocs/estore/sendmail9.php on line 6

the php is:

View 1 Replies View Related

Form Problem - Parse Error: Parse Error, Unexpected T_STRING

Jul 17, 2005

I'm a newbie on the php front but I've altered an email script to send a
bunch of information from a HTML form to an email address. Can anyone see
where I have gone wrong?

I am getting the following error:

Parse error: parse error, unexpected T_STRING in
/home/httpd/vhosts/yourdomain.com/httpdocs/test3/lifecover.php on line 62

I have posted the script below, any help would be muchly appreciated
(apologies if it is the worst script ever written!).

<?
$type=$_POST['type'];
$SingleJoint=$_POST['SingleJoint'];
$CoverReq=$_POST['CoverReq'];
$name=$_POST['name'];
$day=$_POST['day'];
$mn=$_POST['mn'];
$yr=$_POST['yr'];
$gen=$_POST['gen'];
$smoker=$_POST['smoker'];
$name1=$_POST['name1'];
$day1=$_POST['day1'];
$mn1=$_POST['mn1'];
$yr1=$_POST['yr1'];
$gen1=$_POST['gen1'];
$smoker1=$_POST['smoker1'];
$years=$_POST['years'];
$pay=$_POST['pay'];
$quotation=$_POST['quotation'];
$cover=$_POST['cover'];
$waiver=$_POST['waiver'];
$phn=$_POST['phn'];
$time=$_POST['time'];
$email=$_POST['email'];
$to="neil@yourdomain.com";
$from="$email";
$message=" Application Type : $type

Single or Joint : $SingleJoint

Cover Required : $CoverReq

Personal Details :

Name : $name

DOB : $day/$mn/$yr

Gender : $gen

Smoker : $smoker

Partner Details :

Name : $name1

DOB : $day1/$mn1/$yr1

Gender : $gen1

Smoker : $smoker1

Policy Information :

Terms of Policy : $years

Do you wish to pay : $pay

Quotation based on: $quotation

Cover to : $cover

View 2 Replies View Related

Parse Error "unexpected T_STRING, Expecting ',' Or ';'" In Dropdown Menu

Jan 6, 2010

echo ' <table border="0" width="530" align="center" cellspacing="1">
<col width="100" align="right">
<col width="410" align="left">
<?php
$query = "SELECT cat_id,category from ffecategory";
$result = @mysql_query($query);
$options ="";
[Code].....

It produces this error : Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /var/www/html/ffe/update.php on line 120

View 14 Replies View Related

Parse Error: Parse Error, Unexpected T_IF, Expecting ',' Or ''

Aug 14, 2002

I'm playing around with PHP's imap functions and I'm encountering a syntax error that I can't figure out completely.

Quote: Parse error: parse error, unexpected T_IF, expecting ',' or '' in /home/kingmike/docs/WEBMAIL/inbox.php on line 53 PHP Code:

View 2 Replies View Related

Getting Parse Error: Parse Error, Unexpected '=', Expecting ')' On The Line?

Jan 12, 2010

i am getting this error but i think there is no error.

$affiliateForm = array(
"username"=>array("User Name","text",""),
"password"=>array("Password","password",""),[code]...

i am getting Parse error: parse error, unexpected '=', expecting ')' on this line. where is the problem?

View 1 Replies View Related

Parse Error: Parse Error, Unexpected T_ENCAPSED_AND_WHITESPACE

May 9, 2006

I'm having some trouble with the following, here's the error I'm receiving:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/gangste1/public_html/registration.php on line 7

Here's the code starting from line 5, the third line is my problem line:

$sql = "INSERT INTO `memberdirectory` ( `sid`, `lname`, `fname`, `IP`, `date`, `nick` , `referrer` , `updated` , `email` , `password` )
VALUES(0,'$lname','$fname','Unknown',NOW(),'$nickname',&#391;','Y','$email','$password')
mysql_query($sql);

In addition, how can I 'catch' the IP address of the visitor and insert it into this query?

View 6 Replies View Related

Parse Error: Parse Error, Unexpected T_STRING In C:Inetpubwwwrooti

Aug 20, 2004

Parse error: parse error, unexpected T_STRING in C:Inetpubwwwrootionhbzion 2004unblock.php on line 50

source file: Code:

View 1 Replies View Related

Parse Error: Syntax Error, Unexpected T_ENCAPSED_AND_WHITESPACE

Dec 12, 2010

i try to make a while{ part in php, to read out a mysql db. Works perfectly, only with the output i have problems:

echo "<div id="content"><ul class="pageitem"><li class="store"><a href="index.html"><span class="image" style="background-image: url('<?php echo ". $zeile['image'] . "; ?>')"></span><span class="name"><?php echo ". $zeile['title'] . "; ?></span><span class="arrow"></span></a></li></ul>";

Error is:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in D:xampplitehtdocshartiproducts.php on line 40

View 5 Replies View Related

Error:Parse Error: Syntax Error, Unexpected T_STRING In C:xampphtdocsgenerare.php On Line 25.

Sep 25, 2007

i'm using this code to create a file, and to write inside it: Code:

$fp=fopen('C:xampphtdocs'.$_POST['nume_pagina'].'.html','a+');
fwrite($fp,"$sursa");
fclose($fp);

The file does not exist but it's created automatically because of the a+ mode.Still i receive error:Parse error: syntax error, unexpected T_STRING in C:xampphtdocsgenerare.php on line 25.

View 1 Replies View Related

Getting Error When Add A Favicon Link - Parse Error: Syntax Error, Unexpected T_STRING?

Jun 7, 2009

I have a pre-made template and have inadvertently messed something up when trying to add a favicon link.The page says

Parse error: syntax error, unexpected T_STRING in /home/flyagdei/public_html/templates/lingerie_4/main_page.tpl.php on line 24

and the code is as follows

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html <?php echo HTML_PARAMS; ?>>[code]....

View 7 Replies View Related

Error In Db Connection : Parse Error: Syntax Error, Unexpected T_STRING?

Dec 1, 2010

Parse error: syntax error, unexpected T_STRING in C:xampphtdocsmyworkunique.php on line 15

<html>
<head>
<title>
[code]...

View 3 Replies View Related

Receive Parse Error: Syntax Error, Unexpected T_IF, Expecting T_FUNCTION?

Mar 26, 2011

Parse error: syntax error, unexpected T_IF, expecting T_FUNCTION in C:wampwwwExam Creatorcls_FillInTheBlank.php on line 31

I received this error while trying to run the cls_FillInTheBlank.php which includes cls_template.php. I have the two files posted at the for review.

cls_FillInTheBlank.php
<?php
include("cls_template.php");[code]...........

View 2 Replies View Related

Parse Error: Syntax Error, Unexpected T_VARIABLE, Expecting T_CATCH"

May 5, 2011

I'm trying a loop through a Facebook Graph API loop via a foreach loop but I'm getting this error: "PHP Parse error: syntax error, unexpected T_VARIABLE, expecting T_CATCH".

Here's the code:

// WRITING FIRST 50 FRIENDS LIKES
$i = 0;
foreach($userfriends[data] as $value) {
if($key == "id"){
$friend_id = $value;

[Code]...

View 4 Replies View Related

Parse Error: Syntax Error, Unexpected '', Expecting T_FUNCTION In /home/a209162

Jul 14, 2011

this php script but it has an error: Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /home/a2091624/public_html/SkullOwnZ.php on line 554

Code: [Select]    function getBetween($content,$start,$end){
$r = explode($start, $content);
if (isset($r[1])){
$r = explode($end, $r[1]);
return $r[0];
}
return '';

[Code]...

NOTE: This is only the part of the script that has the error.

View 3 Replies View Related

Parse Error: Syntax Error, Unexpected T_CONSTANT_ENCAPSED_STRING, Expecting ',' Or '' In /home

Feb 13, 2006

I got an error,

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or '' in /home/pgn/public_html/game3.php on line 73

I will make line 73 RED

code removed

Anyone know what that means?

View 8 Replies View Related

Parse Error: Syntax Error, Unexpected T_VARIABLE, Expecting T_OLD_FUNCTION

Oct 19, 2006

i keep running into this and been working on it for 2 months and still can't figure it out

Parse error: syntax error, unexpected T_VARIABLE, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/under/public_html/kp/includes/inc-setup.php on line 16

PHP Code:

View 4 Replies View Related

Parse Error: Parse Error, Unexpected T_STRING,

Feb 24, 2003

Can a class define a constant as Java or C does? I tried to define a constant by
define("AMAZING_VALUE", "1997"); but it prompts:

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'

View 1 Replies View Related

Parse Error: Parse Error, Unexpected T_STRING In /www

Dec 11, 2005

i'm getting the following error:

Parse error: parse error, unexpected T_STRING in /www/g/gwecaasu2006/htdocs/getRegistration.php on line 24

in the following code:

echo "<table>
";
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo " <tr>
"; ...

what i'm doing wrong?

View 1 Replies View Related

ADVERTISEMENT