[PHP] Re: Parse Error, Unexpected $

2004-07-19 Thread Jason Barnett
Did the error actually say Unexpected $end ?  That would mean that PHP hit the 
end of the script before it expected to, and could be caused by an unclosed string.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Parse Error, Unexpected $

2004-07-19 Thread Daniel Kullik
Hello.
Cannot find any unexpected dollar-sign ($) in this code.
But please enclose the associative array-indexes within quotation-marks 
and run your script again.

[code]
$foo = $_POST['assoc_index'];
[/code]
Daniel
Harlequin wrote:
I've checked my syntax but obviously missing something.
Would anyone mind a quick scan:
// Convert Values to Variables:
  $Title = $_POST[Title];
  $ChristianName = $_POST[ChristianName];
  $MiddleName = $_POST[MiddleName];
  $Surname = $_POST[Surname];
  $HomePhone = $_POST[HomePhone];
  $Address01 = $_POST[Address01];
  $Address02 = $_POST[Address02];
  $Address03 = $_POST[Address03];
  $City = $_POST[City];
  $Postcode = $_POST[Postcode];
  $Country = $_POST[Country];
  $Nationality = $_POST[Nationality];
  $Gender = $_POST[Gender];
  $WorkPermitRequired = $_POST[WorkPermitRequired];
  $MyStatus = $_POST[MyStatus];
// Dump Data Into MembersData:
  $UserDataDump = INSERT INTO MembersData (Title, ChristianName,
MiddleName, Surname, DOB, TelephoneHome, Address01, Address02, Address03,
AddressCity, AddressPostcode, AddressCountry, Nationality, Gender,
WorkPermit, Status)
VALUES('$Title','$ChristianName','$MiddleName','$Surname','$HomePhone','$Add
ress01','$Address02','$Address03','$City','$Postcode','$Country','$Nationali
ty','$Gender','$WorkPermitRequired','$MyStatus');
   mysql_query($UserDataDump) or die(Couldn't Create User Data Entry. MySQL
Error:  . mysql_error());

--
WWE e-commerce IT GmbH
Eiffestrasse 462, D-20537 Hamburg
Tel.: +49-40-2530659-0, Fax: +49-40-2530659-50
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Parse Error, Unexpected $

2004-07-19 Thread Craig Donnelly

Put all your values in the following {}...

So:

VALUES('{$Title}','{$ChristianName}','{$MiddleName}','{$Surname}'. and
so on.

HTH
Craig

Harlequin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I've checked my syntax but obviously missing something.

 Would anyone mind a quick scan:

 // Convert Values to Variables:
   $Title = $_POST[Title];
   $ChristianName = $_POST[ChristianName];
   $MiddleName = $_POST[MiddleName];
   $Surname = $_POST[Surname];
   $HomePhone = $_POST[HomePhone];
   $Address01 = $_POST[Address01];
   $Address02 = $_POST[Address02];
   $Address03 = $_POST[Address03];
   $City = $_POST[City];
   $Postcode = $_POST[Postcode];
   $Country = $_POST[Country];
   $Nationality = $_POST[Nationality];
   $Gender = $_POST[Gender];
   $WorkPermitRequired = $_POST[WorkPermitRequired];
   $MyStatus = $_POST[MyStatus];

 // Dump Data Into MembersData:
   $UserDataDump = INSERT INTO MembersData (Title, ChristianName,
 MiddleName, Surname, DOB, TelephoneHome, Address01, Address02, Address03,
 AddressCity, AddressPostcode, AddressCountry, Nationality, Gender,
 WorkPermit, Status)


VALUES('$Title','$ChristianName','$MiddleName','$Surname','$HomePhone','$Add

ress01','$Address02','$Address03','$City','$Postcode','$Country','$Nationali
 ty','$Gender','$WorkPermitRequired','$MyStatus');
mysql_query($UserDataDump) or die(Couldn't Create User Data Entry.
MySQL
 Error:  . mysql_error());

 -- 
 -
  Michael Mason
  Arras People
  www.arraspeople.co.uk
 -

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Parse Error, Unexpected $

2004-07-19 Thread Harlequin
Really sorry for taking up so many people's time on such a small issue.

-- 
-
 Michael Mason
 Arras People
 www.arraspeople.co.uk
-
Harlequin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I've checked my syntax but obviously missing something.

 Would anyone mind a quick scan:

 // Convert Values to Variables:
   $Title = $_POST[Title];
   $ChristianName = $_POST[ChristianName];
   $MiddleName = $_POST[MiddleName];
   $Surname = $_POST[Surname];
   $HomePhone = $_POST[HomePhone];
   $Address01 = $_POST[Address01];
   $Address02 = $_POST[Address02];
   $Address03 = $_POST[Address03];
   $City = $_POST[City];
   $Postcode = $_POST[Postcode];
   $Country = $_POST[Country];
   $Nationality = $_POST[Nationality];
   $Gender = $_POST[Gender];
   $WorkPermitRequired = $_POST[WorkPermitRequired];
   $MyStatus = $_POST[MyStatus];

 // Dump Data Into MembersData:
   $UserDataDump = INSERT INTO MembersData (Title, ChristianName,
 MiddleName, Surname, DOB, TelephoneHome, Address01, Address02, Address03,
 AddressCity, AddressPostcode, AddressCountry, Nationality, Gender,
 WorkPermit, Status)


VALUES('$Title','$ChristianName','$MiddleName','$Surname','$HomePhone','$Add

ress01','$Address02','$Address03','$City','$Postcode','$Country','$Nationali
 ty','$Gender','$WorkPermitRequired','$MyStatus');
mysql_query($UserDataDump) or die(Couldn't Create User Data Entry.
MySQL
 Error:  . mysql_error());

 -- 
 -
  Michael Mason
  Arras People
  www.arraspeople.co.uk
 -

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Parse error, unexpected T_STRING!!

2004-03-05 Thread Brian V Bonini
On Thu, 2004-03-04 at 21:39, Andre Cerqueira wrote:
 ? is tag for php code start
 
 Enrique Martinez wrote:
  Hello, I'm getting an error that says: 
  
  Parse error, unexpected T_STRING on line 73
  
  line 73 is: ?xml version=1.0 encoding=iso-8859-1
  ?
  
  this is what I have below line 73:
  
  !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;
  
  I have PHP-4.2.2, Apache 2.0 on RedHat Linux 9.0
  
  Any idea how can I fix the problem? Thanks in advance.

?php echo '?xml version=1.0 encoding=iso-8859-1?' . \r\n; ?


-- 
Brian V Bonini [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Parse error, unexpected T_STRING!!

2004-03-04 Thread Andre Cerqueira
? is tag for php code start

Enrique Martinez wrote:
Hello, I'm getting an error that says: 

Parse error, unexpected T_STRING on line 73

line 73 is: ?xml version=1.0 encoding=iso-8859-1
?
this is what I have below line 73:

!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;
I have PHP-4.2.2, Apache 2.0 on RedHat Linux 9.0

Any idea how can I fix the problem? Thanks in advance.



__
Do you Yahoo!?
Yahoo! Search - Find what youre looking for faster
http://search.yahoo.com
--
Andr Cerqueira


signature.asc
Description: OpenPGP digital signature


[PHP] Re: parse error, unexpected $end ...

2003-01-24 Thread Octavio Herrera
This is the source code

?
include(includes/encabezado_xml.php);
include(includes/conexion.php);

mysql_select_db(latinencounters);

$u_login=;
$u_pwd=;
if(isset($url_login)){
 $u_login=$url_login;  // parametro login del usuario
}
if(isset($url_pwd)){
 $u_pwd=$url_pwd;  // parametro password del usuario
}


$query=select * from usuarios_ws where login='$u_login' and
pwd=password('$u_pwd');
$rs=mysql_query($query,$enlace);
$filas=mysql_num_rows($rs);

if($filas==0){
 echo errormensajeYour Login or Password is
Incorrect/mensaje/error;
}else{

echo usuarios_ws\n;

for($a=0;$a$filas;$a++){
 $fila=mysql_fetch_array($rs);
 echo  usuario\n;
 echoid.$fila[id]./id\n;
 echoname.$fila[name]./name\n;
 echoborn.$fila[born]./born\n;
 echooccupation.$fila[occupation]./occupation\n;
 echocountry.$fila[country]./country\n;
 echocity.$fila[city]./city\n;
 echodescription.$fila[description]./description\n;
 echologin.$fila[login]./login\n;
 echo  /usuario\n;
}

$query=select * from perfil;
$rs=mysql_query($query,$enlace);
$filas=mysql_num_rows($rs);

$dominio=http://www.latinencounters.com/;;
for($a=0;$a$filas;$a++){
 $fila=mysql_fetch_array($rs);
 echo girl\n;
 echo  Codigo.$fila[Codigo]./Codigo;
 echo  FirstName.$fila[FirstName]./FirstName;
 echo  LastName.$fila[LastName]./LastName;
 echo  Height.$fila[Height]./Height;
 echo  Weight.$fila[Weight]./Weight;
 echo  Photo2$dominio.$fila[Photo2]./Photo2;
 echo  Photo3$dominio.$fila[Photo3]./Photo3;
 echo  Photo4$dominio.$fila[Photo4]./Photo4;
 echo  Photo5$dominio.$fila[Photo5]./Photo5;
 echo /girl\n;
}

echo /usuarios_ws\n;
mysql_close($enlace);
?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: parse error, unexpected $end ...

2003-01-24 Thread John W. Holmes
 ?
 include(includes/encabezado_xml.php);
 include(includes/conexion.php);
 
 mysql_select_db(latinencounters);
 
 $u_login=;
 $u_pwd=;
 if(isset($url_login)){
  $u_login=$url_login;  // parametro login del usuario
 }
 if(isset($url_pwd)){
  $u_pwd=$url_pwd;  // parametro password del usuario
 }
 
 
 $query=select * from usuarios_ws where login='$u_login' and
 pwd=password('$u_pwd');
 $rs=mysql_query($query,$enlace);
 $filas=mysql_num_rows($rs);
 
 if($filas==0){
  echo errormensajeYour Login or Password is
 Incorrect/mensaje/error;
 }else{

You don't have a closing brace for this.

 echo usuarios_ws\n;
 
 for($a=0;$a$filas;$a++){
  $fila=mysql_fetch_array($rs);
  echo  usuario\n;
  echoid.$fila[id]./id\n;
  echoname.$fila[name]./name\n;
  echoborn.$fila[born]./born\n;
  echooccupation.$fila[occupation]./occupation\n;
  echocountry.$fila[country]./country\n;
  echocity.$fila[city]./city\n;
  echodescription.$fila[description]./description\n;
  echologin.$fila[login]./login\n;
  echo  /usuario\n;
 }
 
 $query=select * from perfil;
 $rs=mysql_query($query,$enlace);
 $filas=mysql_num_rows($rs);
 
 $dominio=http://www.latinencounters.com/;;
 for($a=0;$a$filas;$a++){
  $fila=mysql_fetch_array($rs);
  echo girl\n;
  echo  Codigo.$fila[Codigo]./Codigo;
  echo  FirstName.$fila[FirstName]./FirstName;
  echo  LastName.$fila[LastName]./LastName;
  echo  Height.$fila[Height]./Height;
  echo  Weight.$fila[Weight]./Weight;
  echo  Photo2$dominio.$fila[Photo2]./Photo2;
  echo  Photo3$dominio.$fila[Photo3]./Photo3;
  echo  Photo4$dominio.$fila[Photo4]./Photo4;
  echo  Photo5$dominio.$fila[Photo5]./Photo5;
  echo /girl\n;
 }
 
 echo /usuarios_ws\n;
 mysql_close($enlace);
 ?

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php