Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Parse Error On The Last Line Of Code </html>


/// here is the code i'm getting a parse error on the last line of the
code which
/// is </html> any help will be much appreciated.

<?php

session_start ();
require_once('connect.php');

if ($_SESSION['username']){ //test for logged-in
$query = "SELECT status FROM accounts WHERE
username='".$_SESSION['username']."'";
$result = mysql_query ($query) or die("<b>A fatal MySQL error
occured</b>.
<br>
Error: (" . mysql_errno() . ") " . mysql_error());
$row = mysql_fetch_array ($result,MYSQL_NUM);

if ($row[0] == 0){
$error_message .= "<P>Your account has been frozen. Email the <A
HREF='mailto:account_status@severedrealm.net'>webmaster</A> for more
information.</P>";}

if ($row[0] == 1){
$query2 = "SELECT name, hp, gold, exp FROM characters WHERE
username='".$_SESSION['username']."'";
$result2 = mysql_query ($query2) or die("<b>A fatal MySQL
error occured</b>.
<br>
Error: (" . mysql_errno() . ") " .
mysql_error());
$character_table .= "<TABLE CELLSPACING=&#392;' CELLPADDING=&#392;'
BORDER=&#390;'><TR><TD>Name</TD><TD>Hit
Points</TD><TD>Gold</TD><TD>Experience</TD><TD>Delete</TD></TR>";
$x=0;
while ($character = mysql_fetch_array ($result2)) {
$x=$x+1;
$character_table .=
"<TR><TD>".$character[1]."</TD><TD>".$character[2]."</TD><TD>".$character[3]."</TD><TD>".$character[4]."</TD>";
$character_table .= "<TD><form action='character.php'
method='post'><input type='hidden' name='character'
value='".$character[1]."'><INPUT TYPE='submit'
NAME='delete_character_submit'
VALUE='delete_character'></FORM></TD></TR>";}
$character_table .= "</TABLE>";
if ($x >= 1){
$error_message .= "<P>You have too many characters. You must
delete ".$x."before you can create another.</P>";
}else{
$character_creation_form .= "<FORM
ACTION='character.php?op=create_character' METHOD='post'>";
$character_creation_form .= "<table cellspacing=&#392;'
cellpadding=&#392;' border=&#390;'><tr>";
$character_creation_form .= "<td>New Character
Name:</td><td><input type='text' name='new_character_name' size=&#3930;'
maxlength=&#3930;' value=''/></td></tr>";
$character_creation_form .= "<tr><td></td><td><input
type='submit' name='New_Character_Submit' value='Create
Character'></td></tr></table></FORM>";}

if ($row[0] == 2){
$query3 = "SELECT name, hp, gold, exp FROM characters WHERE
username='".$_SESSION['username']."'";
$result3 = mysql_query ($query3) or die("<b>A fatal MySQL
error occured</b>.
<br>
Error: (" . mysql_errno() . ") " .
mysql_error());
$character_table .= "<TABLE CELLSPACING=&#392;' CELLPADDING=&#392;'
BORDER=&#390;'><TR><TD>Name</TD><TD>Hit
Points</TD><TD>Gold</TD><TD>Experience</TD><TD>Delete</TD></TR>";
$x=0;
while ($character = mysql_fetch_array ($result2)) {
$x=$x+1;
$character_table .=
"<TR><TD>".$character[1]."</TD><TD>".$character[2]."</TD><TD>".$character[3]."</TD><TD>".$character[4]."</TD>";
$character_table .= "<TD><form action='character.php'
method='post'><input type='hidden' name='character'
value='".$character[1]."'><INPUT TYPE='submit'
NAME='delete_character_submit'
VALUE='delete_character'></FORM></TD></TR>";}
$character_table .= "</TABLE>";
if ($x >= 2){
$error_message .= "<P>You have too many characters. You must
delete ".$x."before you can create another.</P>";
}else {




View Complete Forum Thread with Replies

Related Forum Messages:
Parse Error: Parse Error, Unexpected T_VARIABLE In /web/ellisgra/public_html/outback_orderform3.php On Line 11
I'm not that familar with PHP but have to build an order form using it. Below is the code for the site. I keep getting a "Parse error: parse error, unexpected T_VARIABLE in /web/ellisgra/public_html/outback_orderform3.php on line 11" error. Do you know why this is occuring?

View Replies !
Error:Parse Error: Syntax Error, Unexpected T_STRING In C:xampphtdocsgenerare.php On Line 25.
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 Replies !
I Got Parse Error: Parse Error, Unexpected ')' At The Last Line
I'm really going crazy with this query :

$insert = "INSERT INTO utilisateur(nom_utilisateur,mot_de_passe,prenom, " +
"nom,date_de_naissance,site_internet, " +
"avatard,no_telephone,statut) VALUES " +
"('$nom_utilisateur','$mot_de_passe','$prenom', " +
"'$nom,$date_de_naissance', " +
"'$site_internet', " +
"'/avatard/.$nom_utilisateur','$no_telephone', &#391;'");

I got Parse error: parse error, unexpected ')' at the last line


View Replies !
ErrorParse Error: Parse Error, Unexpected T_STRING In Order_fns.php Line 91.
keep getting this errorParse error: parse error, unexpected
T_STRING in order_fns.php line 91. the code is below for the file and
I've indicated line 91

<?php
function process_card($card_details)
{
// connect to payment gateway or
// use gpg to encrypt and mail or
// store in DB if you really want to

return true;
}

function insert_order($order_details)
{
global $HTTP_SESSION_VARS;

//extract order_details out as variables
extract($order_details);

//set shipping address same as address
if(!$ship_name&&!$ship_address&&!$ship_city&&!$ship_state&&!$ship_zip&&!$ship_country)
{
$ship_name = $name;
$ship_address = $address;
$ship_city = $city;
$ship_state = $state;
$ship_zip = $zip;
$ship_country = $country;
}

$conn = db_connect();

//insert customer address
$query = "select customerid from customers where
name = '$name' and address = '$address'
and city = '$city' and state = '$state'
and zip = '$zip' and country = '$country'";
$result = mysql_query($query);
if(mysql_numrows($result)>0)
{
$customer_id = mysql_result($result, 0, 'customerid');
}
else
{
$query = "insert into customers values
('', '$name','$address','$city','$state','$zip','$count ry')";
$result = mysql_query($query);
if (!$result)
return false;
}
$query = "select customerid from customers where
name = '$name' and address = '$address'
and city = '$city' and state = '$state'
and zip = '$zip' and country = '$country'";
$result = mysql_query($query);
if(mysql_numrows($result)>0)
$customerid = mysql_result($result, 0, 'customerid');
else
return false;
$date = date('Y-m-d');
$query = "insert into orders values
('', $customerid, ".$HTTP_SESSION_VARS['total_price'].",
'$date', 'PARTIAL', '$ship_name',
'$ship_address','$ship_city','$ship_state','$ship_ zip',
'$ship_country')";
$result = mysql_query($query);
if (!$result)
return false;


View Replies !
Parse Error: Syntax Error, Unexpected $end In Tests/act3.php On Line 7
i am getting a "Parse error: syntax error, unexpected $end in tests/act3.php on line 7" error. Can some one explain why this doesn't work and/or if there is just a typo in the book i bought? (there are more codes in this book that don't work. i think it has to do with my version of php. Code:

View Replies !
Parse Error: Syntax Error, Unexpected T_CONSTANT_ENCAPSED_STRING In /home/lizzieni/public_html/data.php On Line 3
i'm getting an error on my third line. the error is:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/lizzieni/public_html/data.php on line 3 Code:

View Replies !
Parse Error: Syntax Error, Unexpected $end In C:wwwphpSitemodulesuser.php On Line 128
I've just installed php5 on a new development machine. Apache and MySQL are working and a test of php with a simple phpinfo() works ok.

I have transferred my php4 code to the new machine (I didn't expect it to work straight away, but I also didn't expect this error:

Parse Error: syntax error, unexpected $end in C:wwwphpSitemodulesuser.php on line 128

It happens on each and every php file with the line number indicated not actually existing (its the number after the last line number of the file ?!?!

I've tried taking the code and pasting it into a new file - but i'm getting the same error. I've analysed the file in PSPad and there doesn't seem to be anythign unusual with the end of file markers.

View Replies !
Parse Error: Syntax Error, Unexpected $end In C:wampwwwsitecheckout On Line 1
I keep on getting this error with this script (Parse error: syntax error, unexpected $end in C:wampwwwsitecheckout.php on line 1). It worked but suddenly stopped working without the code being altered. Below is the code:

View Replies !
Parse Error: Syntax Error, Unexpected T_CONSTANT_ENCAPSED_STRING In /home/westco00/public_html/includes/page_header.php On Line 568
This is a phpbb forum i am working on. After installing the mod, i been getting this error:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/westco00/public_html/includes/page_header.php on line 568

Code:

View Replies !
Parse Error - Line 59
I am getting a parse error on line 59 can anyone please help me. Here is the code,
PHP Code:

View Replies !
Parse Error On Line 100
I am getting the following error: Parse error:

parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/mnmelect/public_html/auction_payment_buy.php on line 100

Here is the PHP code in question. Any help with this would be greatly appreciated. I'm new to PHP (Within the last 48-72 hours. Can't remember it exactly how long. the days are kinda blurred.):

94. <?php
95. // open the connection
96. $conn = mysql_connect("localhost", "username", "password");
97. // pick the database to use
98. mysql_select_db("mnmelect_cart",$conn);
99. // create the SQL statement
100. $sql = "INSERT INTO cart values ('', '$PHPSESSID', '$_POST['itemnumber']', '$_POST['itemname']', '$_POST['itemprice']', '', &#391;', '', '')";
101. // execute the SQL statement
............

View Replies !
Parse Error On Comment Line?
I keep getting parse errors on blank lines and lines that don't have any }:

Parse error: parse error, unexpected '}' in /x/x/x/x/sections/productions/index.php on line 691

What could the problem be? I've rechecked all of the brackets to make sure that
they've allgot open and close brackets. But, it's still giving me the errors.

The odd thing is that I'm just reusing this code. I'm redesigning the site and
modifying existing code.

View Replies !
Parse Error In Setup.php On Line 207
This question has t have been answered 100s of times already, I have tried to correct this myself but cannot see a problem, When I try to run my /folder/setup/setup.php, I get an error message saying:

Parse error: parse error in /folder/setup/setup.php on line 207

I have looked at line 207 using metapad, but there seems to be no problems with the code!
the code: datestamp varchar(50) NOT NULL default '', thei is using the MySql CREATE TABLE function.

View Replies !
Parse Error, Unexpected T_STRING - Comment The Line
I am getting an parse error, unexpected T_STRING error. I tried to comment the line it refered to and it still gives me an error?? PHP Code:

View Replies !
Finding Unterminated Line? (Parse Error: Unexpected $)
I've spent the whole morning trying to figure out what's the error here. The error is:

Parse error: parse error, unexpected $ in /home/hsphere/local/home/ne/machinemess.singaporeanimenews.net/meat/test.php on line 212

and line 212 is the last line of this code. Do I have any unterminated strings anywhere? I can't find any. PHP Code:

View Replies !
Parse PHP Code In .html??
I was wondering if it's possible to parse PHP code in .html documents without requiring root access (since I'm on a virtual server). I want to make a two line call to a log program, but I don't want to have to change all of my .html files to .php.

View Replies !
How Do I Parse PHP Code Within An HTML File?
I'm trying to figure out a way to save message bodies of the various e-mails I send from my site into HTML pages and then import them when I send the e-mails. But I've never tried anything like this before so I'd appreciate some help. Here's an example of the code I'm using: Code: $email_body = file_get_contents("emails/application_approved.htm");
I can import the HTML files without problems, but I've also got PHP variables in the HTML code and I need to know how to parse those variables. Is it even possible?

View Replies !
Parse Error In Non- Code
I try to access it on I and Firefox.

Parse error: parse error, unexpected $ in /home/content/c/a/l/calvy/html/page/eile.php on line 728

Line 726-728 are just regular HTML, and line 728 is the last line on the page code.
</center>
</body>
</html>

I have already looked through the entire page code a few times trying to figure out the problem.  Not exactly sure if this is a bug or not, since there is no $ anywhere near line 728.

View Replies !
Parse Error Noted In PHP Code
I decided to get an example of a php code and then tweak it to benefit me at a later date. But I'm getting this error message:

Parse error: syntax error, unexpected T_STRING, expecting ',' or '' in C:xampphtdocsOrderProcessed.php on line 23

Code:

View Replies !
Simple Code Attached - Parse Error
What I am trying to accompish is have a textarea on a form display the word BLANK as the default when the users first gets in and IF the user changes this to a valid entry, display what the have keyed in if the form redisplays due to error trap. NOT WORKING. Code:

View Replies !
What Is Error In This Line Of Code?
The following code snippet gives an error "unexpected '}'"

I have tried chopping up the line into small parts and it seems to die
when I get the the "onclick" part of the line.

Can anyone see what the problem is or offer a suggestion on how to do
this better.

View Replies !
Validation Issue: (ZIP Code) Parse Error, Unexpected '&amp;'
I have been playing with different bits of code lately and I came across this cool little validation script that is supposed to check zip codes for formatting...

View Replies !
Any Way Of Removing Line Breaks From HTML Code?
I have a big big chunk of HTML code stored inside a variable $myhtml. Is there any way I can possibly remove all line breaks in the HTML?

I tried $myhtml = str_replace('
', '', $myhtml);
but it doesn't work.

View Replies !
Last Line Of Code That Comes Up With The Unexpected $ Error
I was wondering if there is a PHP editor out there which makes development easier and aids with debugging. Im using Dreamweaver at the moment. this is my problem:- it is the last line of code that comes up with the Unexpected $ error PHP Code:

View Replies !
Send A HTML Line Of Code To A Flash File
I'm trying to send a HTML line of code to a flash file, but php is running it as html, instead of seeing it as plain text.

file.swf?name=<?php echo $code; ?>

I need to somehow echo the $code as plain text instead of php running the html.

View Replies !
Converting Html Code To Real Line Breaks In A Textarea
I am having some trouble with converting html code to real line breaks in a textarea, I have the following code that I gets html code from a database and then puts it into a textarea but the str_replace I am using converts the text but puts the actual characters in the textarea, and doesn't actually turn it into a linebreak. (the br below is reality in triangular brackets!)

$paragraph=$row['paragraph'];
$paragraph=str_replace('br','
',$paragraph);
.....
<textarea name="ud_text" cols="50" rows="15" maxlength="300"><? echo $paragraph ?></textarea>

Perhaps someone can help me with this?

View Replies !
Parse Error: Parse Error, Unexpected T_ENCAPSED_AND_WHITESPACE, Expecting T_STRING Or T_VARIABLE Or T_NUM_STRING In C:
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 Replies !
Parse Error: Parse Error, Unexpected T_VARIABLE In /home/youbasta/public_html/forum/S
I am having a problem with this code, its saying an error. The error is Code:

Parse error: parse error, unexpected T_VARIABLE in /home/youbasta/public_html/forum/Settings.php on line 27

PHP Code:

View Replies !
Script Error Message Is Referencing Wrong Line Of Code
Im developing php pages under apache and Mac OS X. When I have a
scripting error, the error page says...

....error occurred at line 139

Problem is that line 139 is blank and the bad code is really on line
142. Its usaully off by random numbers so I cant just add/subtract a
couple of numbers to guess the real line of problem code. This is a
pain and is slowing me up for trouble-shooting scripts. Any
suggestions? Is this a php.ini setting? -

View Replies !
Data From A Webform On Submit Cause Parse Error: Parse Error, Unexpected T_STRING
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 Replies !
Parse Error: Parse Error, Unexpected T_ENCAPSED_AND_WHITESPACE, Expecting T_STRING Or T_VARIABLE
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 Replies !
Parse Error: Parse Error, Expecting `T_STRING' Or `T_VARIABLE' Or `T_NUM_STRING' In /home
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 Replies !
Parse Error: Parse Error, Unexpected T_STRING, Expecting T_VARIABLE Or '$' In /home/
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 Replies !
Searching A Database - Parse Error: Parse Error, Unexpected T_VARIABLE In /home
im getting an error:

Parse error: parse error, unexpected T_VARIABLE in /home/n3w/public_html/theodore/Blocker/search.php on line 14

Line 14 reading: $limit = 10;

PHP Code:

<form name="form" action="search.php" method="get">
  <input type="text" name="q" />
  <input type="submit" name="Submit" value="Search" />
</form>
...

View Replies !
Form Problem - Parse Error: Parse Error, Unexpected T_STRING
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 Replies !
Parse Error: Parse Error, Unexpected T_STRING, Expecting T_VARIABLE Or '$' In
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 Replies !
Parse Error: Parse Error, Unexpected T_ENCAPSED_AND_WHITESPACE, Expecting T_STRING
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.

View Replies !
Class Problem - Parse Error: Parse Error, Expecting `T_VARIABLE'
When executing the code below, expecting to say that the apple is green
and later red I get the error

Parse error: parse error, expecting `T_VARIABLE' in /httpdocs/test01.php
on line 3

Any idea how I can fix this?

View Replies !
Header Problem - Parse Error For The Header Line
Below is the extract of the problem part of the else loop. It gives me a parse error for the header line, the url is send from the previous page and is available as $_POST['url'] in general throughout the processing script.

else
{
header( refresh: 2; url=$_POST['url'] );
echo 'Message has been sent.'
}

View Replies !
Parse Error: Parse Error, Unexpected T_VARIABLE In /home/
I am creating a database on a testpage on my server, (Link: http://www.hlevolve.com/databasetesting/script.php) whenever I run this page, it gives me this error:

Parse error: parse error, unexpected T_VARIABLE in /home/shark55/public_html/databasetesting/script.php on line 22

I believe it has somthing to do with this piece of code:

//Assign contents of form to variables
$name = $_POST['Name'];
$email = $_POST['Email'];
$sql = "INSERT INTO addressbook SET
Email = "$email",
First_Name = "$name"");

View Replies !
Parse Error: Parse Error, Unexpected '"' In /home
This is the error that I am getting:

Parse error: parse error, unexpected '"' in /home/acciofir/public_html/forum/admin/admin_users.php on line 865

That is referring to this line: PHP Code:

View Replies !
Parse Error: Parse Error, Unexpected T_VARIABLE In /home
Hi, I am new at this whole php & phpbb thing. I have PhpBB 2.x for my board (forums) and last night I tried to install a shoutbox mod...

My admin panel has an error on the left side of it (where the feature list goes)... the error is below:

Parse error: parse error, unexpected T_VARIABLE in /home/vigilant/public_html/board/admin/admin_db_utilities.php on line 702

Here is line 702 in admin/admin_db_utilities.php:

$additional_tables = (isset($HTTP_POST_VARS['additional_tables']))? $HTTP_POST_VARS['additional_tables'] : ( (isset($HTTP_GET_VARS['additional_tables']))? $HTTP_GET_VARS['additional_tables'] : "" );$backup_type = (isset($HTTP_POST_VARS['backup_type']))? $HTTP_POST_VARS['backup_type'] : ( (isset($HTTP_GET_VARS['backup_type']))? $HTTP_GET_VARS['backup_type'] : "" );

Any ideas on how to fix this?

View Replies !
Parse Error: Parse Error, Unexpected T_STRING, Expecting ',' Or ';'
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 Replies !
Parse Error: Parse Error, Unexpected T_IF, Expecting ',' Or ''
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 Replies !
Parse Error: Parse Error, Unexpected T_STRING In C:Inetpubwwwrooti
Parse error: parse error, unexpected T_STRING in C:Inetpubwwwrootionhbzion 2004unblock.php on line 50

source file: Code:

View Replies !
Parse Error: Parse Error, Expecting `T_OLD_FUNCTION' Or `T_FUNCTION'
the problem is :

Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in C: shirtshopincludedatabase.php on line 7

the code:

View Replies !
Parse Error: Parse Error, Unexpected $ In /fpgs/fpgshttpd/
i'm trying to create a universal high score system in php. I have the basic framework done, and now i'm working on getting the installer to work. However when i run the installer file i created i get this error:

Parse error: parse error, unexpected $ in /fpgs/fpgshttpd/myhighscoreboard/install.php on line 29.

View Replies !
Fatal Error: Call To Undefined Function: Mysql_connect() In /var/www/html/testPHP/testMysql.php On Line 7
I am new to php and I'm testing php connectivity to mysql. I created a
php script using the php.net sample. The script uses the mysql_connect
method and when I execute it I get the error:

Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/testPHP/testMysql.php on line 7

I have mysqld ver 4.0.20 and php 4.2.2 that came bundled with apache
(that came bundled with RH9).

View Replies !
"Parse Error: Parse Error, Unexpected T_STRING" Error Message
I have now been looking at this for about 2 hours and cannot for the life of me see where this error is coming from. I thought it usually means that I have a '(' or '[' out of place, but still can't seem to find it. Anyway, the error message is:

"Parse error: parse error, unexpected T_STRING in /blah.php on line 204"

And here's the code:

View Replies !
Parse Error: Parse Error, Unexpected T_UNSET Error
it reads every url stored in $all_url then removes the url that has address starting from 0-9 and if it see the word google it is also remove... or can anyone give me an alternative code?

$x = $counter;
while (++$x < 200) {
  if (preg_match('~http://(www.)?([0-9]|(.+.)?google.com)~', $all_url[$x])
    unset($all_url[$x]);
}

View Replies !
Parse Error: Parse Error, Unexpected T_LNUMBER
what's wrong with this code?

line 19:
if($_POST['miners']*500+$_POST['magicians']*800+$_POST['knights']*1200+$_POST['rangers']*1500>$fdatabase['gold']){echo("false!");}

I got error:

Parse error: parse error, unexpected T_LNUMBER in /home/www/xyz.php on line 19

View Replies !
Parse Error</b>: Parse Error, Unexpected T_CONSTANT_ENCAPSED_STRING I
Someone please help me with this as i am getting the above errors.. in line 6 i..e mysql...

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved