Re: [PHP] syntax error breaking in and out of php into html code

2012-08-27 Thread Tedd Sperling
On Aug 26, 2012, at 1:36 PM, Ashley Sheridan wrote: > Well, it turns out that I'm just an idiot... > -- > Thanks, > Ash That was easy -- anyone of us could have told you that. :-) Cheers, tedd PS: We all have our time in the barrel. _ t...@sperling.com http://sperling.com

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread Ashley Sheridan
On Sun, 2012-08-26 at 09:41 +0700, Duken Marga wrote: > Can you tell us what is the error shown in browser or CLI? > > On Sun, Aug 26, 2012 at 5:54 AM, Ashley Sheridan > wrote: > > > I've just inherited some (pretty awful code) that I have to make some > > edits to, and came across a bit of a pr

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread tamouse mailing lists
On Sun, Aug 26, 2012 at 5:02 AM, Ashley Sheridan wrote: > > On Sun, 2012-08-26 at 04:36 -0500, tamouse mailing lists wrote: > > On Sat, Aug 25, 2012 at 9:56 PM, Ashley Sheridan > wrote: > > On Sun, 2012-08-26 at 09:41 +0700, Duken Marga wrote: > > > >> Can you tell us what is the error shown in b

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread Daniel Brown
On Sat, Aug 25, 2012 at 6:54 PM, Ashley Sheridan wrote: > I've just inherited some (pretty awful code) that I have to make some > edits to, and came across a bit of a problem. A lot of the code breaks > in and out of PHP and into HTML code: > > while(condition) > { > ?> > some html here > } > ?

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread Ashley Sheridan
On Sun, 2012-08-26 at 09:21 -0300, Samuel Lopes Grigolato wrote: > Maybe you have a " allows short open tags? In production that setting could be disabled. > > > On Sun, Aug 26, 2012 at 9:20 AM, Ashley Sheridan > wrote: > > On Sun, 2012-08-26 at 11:02 +0100, Stuart Dallas wrote: >

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread Samuel Lopes Grigolato
Maybe you have a "wrote: > On Sun, 2012-08-26 at 11:02 +0100, Stuart Dallas wrote: > > > On 26 Aug 2012, at 03:56, Ashley Sheridan > wrote: > > > > > Through the browser I get: > > > > > > Parse error: syntax error, unexpected $end > > > in /var/www/html/siteinquestion/index.php on line 356 > > >

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread Ashley Sheridan
On Sun, 2012-08-26 at 11:02 +0100, Stuart Dallas wrote: > On 26 Aug 2012, at 03:56, Ashley Sheridan wrote: > > > Through the browser I get: > > > > Parse error: syntax error, unexpected $end > > in /var/www/html/siteinquestion/index.php on line 356 > > > > Through the CLI I get: > > > > PHP P

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread Stuart Dallas
On 26 Aug 2012, at 03:56, Ashley Sheridan wrote: > Through the browser I get: > > Parse error: syntax error, unexpected $end > in /var/www/html/siteinquestion/index.php on line 356 > > Through the CLI I get: > > PHP Parse error: syntax error, unexpected $end in index.php on line 356 > > Pars

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread Ashley Sheridan
On Sun, 2012-08-26 at 04:36 -0500, tamouse mailing lists wrote: > On Sat, Aug 25, 2012 at 9:56 PM, Ashley Sheridan > wrote: > > On Sun, 2012-08-26 at 09:41 +0700, Duken Marga wrote: > > > >> Can you tell us what is the error shown in browser or CLI? > >> > >> On Sun, Aug 26, 2012 at 5:54 AM, Ashl

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread tamouse mailing lists
On Sat, Aug 25, 2012 at 9:56 PM, Ashley Sheridan wrote: > On Sun, 2012-08-26 at 09:41 +0700, Duken Marga wrote: > >> Can you tell us what is the error shown in browser or CLI? >> >> On Sun, Aug 26, 2012 at 5:54 AM, Ashley Sheridan >> wrote: >> >> > I've just inherited some (pretty awful code) that

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-25 Thread Ashley Sheridan
On Sun, 2012-08-26 at 09:41 +0700, Duken Marga wrote: > Can you tell us what is the error shown in browser or CLI? > > On Sun, Aug 26, 2012 at 5:54 AM, Ashley Sheridan > wrote: > > > I've just inherited some (pretty awful code) that I have to make some > > edits to, and came across a bit of a pr

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-25 Thread Duken Marga
Can you tell us what is the error shown in browser or CLI? On Sun, Aug 26, 2012 at 5:54 AM, Ashley Sheridan wrote: > I've just inherited some (pretty awful code) that I have to make some > edits to, and came across a bit of a problem. A lot of the code breaks > in and out of PHP and into HTML cod

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-25 Thread Adam Richardson
On Sat, Aug 25, 2012 at 6:54 PM, Ashley Sheridan wrote: > I've just inherited some (pretty awful code) that I have to make some > edits to, and came across a bit of a problem. A lot of the code breaks > in and out of PHP and into HTML code: > > while(condition) > { > ?> > some html here > } > ?

[PHP] syntax error breaking in and out of php into html code

2012-08-25 Thread Ashley Sheridan
I've just inherited some (pretty awful code) that I have to make some edits to, and came across a bit of a problem. A lot of the code breaks in and out of PHP and into HTML code: some html here But when I check this my PHP parser is saying that this is a syntax error (checked in the browser an

Re: [PHP] Syntax Error

2010-10-04 Thread kranthi
As pointed out echo $insertSQl should help you locate many trivial problems. But using PDO will avoid these kind of problems -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Syntax Error

2010-10-04 Thread a...@ashleysheridan.co.uk
Switching to pdo won't necessarily remove sql errors any more than using a php framework will remove php errors. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "kranthi" Date: Mon, Oct 4, 2010 09:04 Subject: [PHP] Syntax Error To: Cc: "chris

Re: [PHP] Syntax Error

2010-10-03 Thread Ashley Sheridan
On Sun, 2010-10-03 at 13:14 -0400, chris h wrote: > On Sun, Oct 3, 2010 at 12:47 PM, Gary wrote: > > > I have just created a registration page using Webassist, and I am getting a > > syntax error that I am not understanding. Anyone be able to point me in > > the > > right direction? > > > > You

Re: [PHP] Syntax Error

2010-10-03 Thread chris h
On Sun, Oct 3, 2010 at 12:47 PM, Gary wrote: > I have just created a registration page using Webassist, and I am getting a > syntax error that I am not understanding. Anyone be able to point me in > the > right direction? > > You have an error in your SQL syntax; check the manual that correspond

[PHP] Syntax Error

2010-10-03 Thread Gary
I have just created a registration page using Webassist, and I am getting a syntax error that I am not understanding. Anyone be able to point me in the right direction? You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use

Re: [PHP] syntax error in class

2010-02-10 Thread Eric Lee
2010/2/11 Jim Lucas > Dasn wrote: > >> I got the syntax error. Why? >> > > only constant literal is allowed. You can think that it is static complie but not on runtime . Regards, Eric, > Read the first paragraph on the following page. > > http://us3.php.net/manual/en/language.oop5.propertie

Re: [PHP] syntax error in class

2010-02-10 Thread Jim Lucas
Dasn wrote: I got the syntax error. Why? Read the first paragraph on the following page. http://us3.php.net/manual/en/language.oop5.properties.php [quote] ... This declaration may include an initialization, but this initialization must be a constant value--that is, it must be able to be eva

[PHP] syntax error in class

2010-02-10 Thread Dasn
Hello guys, I encountered a syntax error, and cannot figure out the reason, for example: == CODE == 1:'str1'.'str2'); 3:?> === Works fine, but when I try to put it into a class, say: ==

Re: [PHP] syntax error (stumped)

2008-12-05 Thread Daniel Brown
On Fri, Dec 5, 2008 at 1:31 AM, ddg2sailor <[EMAIL PROTECTED]> wrote: > > Its begining to look like this code was written for a newer sql [snip!] Negative. It's either a custom function or was written incorrectly in the first place. There's never been a native PHP function `do_mysql_quer

Re: [PHP] syntax error (stumped)

2008-12-04 Thread ddg2sailor
Its begining to look like this code was written for a newer sql The sysop came up with an older php file that fixxed this issue Samples enclosed. //the file I been working on all days - relevant lines only" $filename = sqlesc($filename); $res = do_mysql_query("SELECT * FROM dox WHERE fi

Re: [PHP] syntax error (stumped)

2008-12-04 Thread Chris
ddg2sailor wrote: I have been looking at this code all night and at one point I drew the same conclusion. But I havent been able to find it Il beg the moderators indulgence here.. But I really do need to add this code which calls the other code as a user hits a link. Find the file where do_

Re: [PHP] syntax error (stumped)

2008-12-04 Thread ddg2sailor
I have been looking at this code all night and at one point I drew the same conclusion. But I havent been able to find it Il beg the moderators indulgence here.. But I really do need to add this code which calls the other code as a user hits a link. //dox.php// 0) stderr("Error", "A file wi

Re: [PHP] syntax error (stumped)

2008-12-04 Thread Nathan Nobbe
On Thu, Dec 4, 2008 at 6:44 PM, ddg2sailor <[EMAIL PROTECTED]> wrote: > > Sorry , I did mean to mention that... But I forgot. > > The original error is : > > Fatal error: Call to undefined function do_mysql_query() in > C:\xampp\htdocs\getdox.php on line 18 likely something to do w/ do_mysql_que

Re: [PHP] syntax error (stumped)

2008-12-04 Thread ddg2sailor
Sorry , I did mean to mention that... But I forgot. The original error is : Fatal error: Call to undefined function do_mysql_query() in C:\xampp\htdocs\getdox.php on line 18 Something to do with this // or sqlerr(); //? Thanks Daniel P. Brown-2 wrote: > > On Thu, Dec 4, 2008 at 8:32 PM,

Re: [PHP] syntax error (stumped)

2008-12-04 Thread Daniel P. Brown
On Thu, Dec 4, 2008 at 8:32 PM, ddg2sailor <[EMAIL PROTECTED]> wrote: > > This is acctualy a very simple code... But I dont know exactly what to do > with line 18. It looks to be taking something from dox and redefining it as > RES. There is some related code but with syntax is pretty much has to b

[PHP] syntax error (stumped)

2008-12-04 Thread ddg2sailor
This is acctualy a very simple code... But I dont know exactly what to do with line 18. It looks to be taking something from dox and redefining it as RES. There is some related code but with syntax is pretty much has to be this one. //Example// 1024*1024) stderr( _("Error"), _("Sorry, you ne

Re: [PHP] syntax error

2008-07-21 Thread Daniel Brown
Please keep replies on list for all to benefit and be able to assist. On Mon, Jul 21, 2008 at 5:47 PM, Ronald Wiplinger <[EMAIL PROTECTED]> wrote: > > On Tue, Jul 22, 2008 at 1:51 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: >> >>Try this: >> >> >$result = mysql_query($sql,$db) or die(m

Re: [PHP] syntax error

2008-07-21 Thread Daniel Brown
On Mon, Jul 21, 2008 at 7:24 AM, Ronald Wiplinger <[EMAIL PROTECTED]> wrote: Try this: >$result = mysql_query($sql,$db) or die(mysql_error()); -- Better prices on dedicated servers: Intel 2.4GHz/60GB/512MB/2TB $49.99/mo. Intel 3.06GHz/80GB/1GB/2TB $59.99/mo. Dedicated servers, VPS, and

Re: [PHP] syntax error

2008-07-21 Thread Eric Butera
On Mon, Jul 21, 2008 at 8:32 AM, Aschwin Wesselius <[EMAIL PROTECTED]> wrote: > Oh my. I'm so sorry. You're absolutely right. I mixed these two. I'm a > bit side-tracked today. > > Thanks for pointing that out. > > > -- > > Aschwin Wesselius It's no problem, I got scared I was spreading p

Re: [PHP] syntax error

2008-07-21 Thread Aschwin Wesselius
Eric Butera wrote: On Mon, Jul 21, 2008 at 7:55 AM, Aschwin Wesselius <[EMAIL PROTECTED]> wrote: Probably the mysql extension is not found or not loaded (due to not being compiled with the right path or the default path in PHP is not the right one). Happened to me a couple of times. --

Re: [PHP] syntax error

2008-07-21 Thread Eric Butera
On Mon, Jul 21, 2008 at 7:55 AM, Aschwin Wesselius <[EMAIL PROTECTED]> wrote: > Eric Butera wrote: > > On Mon, Jul 21, 2008 at 7:24 AM, Ronald Wiplinger <[EMAIL PROTECTED]> > wrote: > > > On a system with php4 and mysql 4.x I had these lines: > > require("../db-config"); // includes $dbhost, $b

Re: [PHP] syntax error

2008-07-21 Thread Aschwin Wesselius
Eric Butera wrote: On Mon, Jul 21, 2008 at 7:24 AM, Ronald Wiplinger <[EMAIL PROTECTED]> wrote: On a system with php4 and mysql 4.x I had these lines: require("../db-config"); // includes $dbhost, $buname, $dbpass $db = mysql_connect($dbhost, $dbuname, $dbpass); mysql_select_db($dbname,$

Re: [PHP] syntax error

2008-07-21 Thread Eric Butera
On Mon, Jul 21, 2008 at 7:24 AM, Ronald Wiplinger <[EMAIL PROTECTED]> wrote: > On a system with php4 and mysql 4.x I had these lines: > > require("../db-config"); // includes $dbhost, $buname, $dbpass > $db = mysql_connect($dbhost, $dbuname, $dbpass); > mysql_select_db($dbname,$db); > >$sql

Re: [PHP] syntax error

2008-07-21 Thread Ted Wood
Not a syntax error. It's not successfully connecting to the database. Check your settings. ~Ted On 21-Jul-08, at 4:24 AM, Ronald Wiplinger wrote: On a system with php4 and mysql 4.x I had these lines: require("../db-config"); // includes $dbhost, $buname, $dbpass $db = mysql_connect

[PHP] syntax error

2008-07-21 Thread Ronald Wiplinger
On a system with php4 and mysql 4.x I had these lines: require("../db-config"); // includes $dbhost, $buname, $dbpass $db = mysql_connect($dbhost, $dbuname, $dbpass); mysql_select_db($dbname,$db); $sql = "SELECT * FROM CATEGORY WHERE ."; $result = mysql_query($sql,$db); $num=m

[PHP] Syntax error, where? solved

2007-05-22 Thread jekillen
Hello again; (Blush); I was looking at the wrong line. Somehow the line numbers changed on me and the error was actually at a suspect line that I had changed. But the file that was giving the error was a file that was not updated. Now it works, I was trying to do $list_length -1 in the middle of

[PHP] Syntax error, where?

2007-05-22 Thread jekillen
Hello again; In my frustration and laziness (tired of probing around to solve syntax errors that are not obvious) I have encountered the following error: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in groups_proc.php on line 585 The two lines immediately proceeding the

Re: [PHP] Syntax Error

2007-01-07 Thread Chris
bruce wrote: chris... sure there is.. alot of people don't subscribe to other lists. if you're one who does, simply ignore his post. And if the poster looked at either of the responses he received and replied to the questions asked, then he'd get a much better response. http://marc.theaimsg

Re: [PHP] Syntax Error

2007-01-07 Thread Chris
JD wrote: Can someone help me figure out why I can't run this on MySQL. I get a syntax error. list($qh,$num) = dbQuery("SELECT password AS passwd1, $DATABASE_PASSWORD_FUNCTION('$password') AS passwd2 ". "FROM $USER_TABLE WHERE username='$username'"); $data = dbResult($qh); You've already

[PHP] Syntax Error

2007-01-07 Thread JD
Can someone help me figure out why I can't run this on MySQL. I get a syntax error. list($qh,$num) = dbQuery("SELECT password AS passwd1, $DATABASE_PASSWORD_FUNCTION('$password') AS passwd2 ". "FROM $USER_TABLE WHERE username='$username'"); $data = dbResult($qh); -- PHP General Mailing List

Re: [PHP] syntax error help

2006-08-21 Thread Richard Lynch
Older version of MySQL does not support subselects. On Sun, August 20, 2006 5:18 am, Bigmark wrote: > Can anyone tell me why this works on my localhost but gets an error on > my > server: > > $sql = "SELECT COUNT(*) FROM leaderboard WHERE points >=( SELECT > points FROM > leaderboard WHERE user

RE: [PHP] syntax error help

2006-08-20 Thread Peter Lauri
eneral@lists.php.net Subject: [PHP] syntax error help Can anyone tell me why this works on my localhost but gets an error on my server: =( SELECT points FROM leaderboard WHERE username= '$username' )"; $result = mysql_query( $sql ) or die ( mysql_error() ); $rank = mysql_result( $re

Re: [PHP] syntax error help

2006-08-20 Thread chris smith
On 8/20/06, Bigmark <[EMAIL PROTECTED]> wrote: Can anyone tell me why this works on my localhost but gets an error on my server: =( SELECT points FROM leaderboard WHERE username= '$username' )"; $result = mysql_query( $sql ) or die ( mysql_error() ); $rank = mysql_result( $result, 0 ); echo $ran

Re: [PHP] syntax error help

2006-08-20 Thread Paul Scott
On Sun, 2006-08-20 at 18:18 +0800, Bigmark wrote: > Can anyone tell me why this works on my localhost but gets an error on my > server: > Try quote your identifiers. SELECT COUNT(*) FROM `leaderboard` WHERE `points` >=( SELECT `points` FROM `leaderboard` WHERE `username` = '$username' ); --Pau

[PHP] syntax error help

2006-08-20 Thread Bigmark
Can anyone tell me why this works on my localhost but gets an error on my server: =( SELECT points FROM leaderboard WHERE username= '$username' )"; $result = mysql_query( $sql ) or die ( mysql_error() ); $rank = mysql_result( $result, 0 ); echo $rank; ?> this is the error message but i cant figu

Re: [PHP] syntax error, unexpected T_STRING

2005-07-18 Thread George B
Jim Moseby wrote: I am trying to connect to a datbase: " mysql_select_db ('database') or die ("couldnt connect to databse") " What is wrong here? This is the error: Parse error: syntax error, unexpected T_STRING in file name on line 12 -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] syntax error, unexpected T_STRING

2005-07-18 Thread John Nichel
George B wrote: I am trying to connect to a datbase: " mysql_select_db ('database') or die ("couldnt connect to databse") " What is wrong here? This is the error: Parse error: syntax error, unexpected T_STRING in file name on line 12 Are either one of those lines, line 12? -- John C. Ni

RE: [PHP] syntax error, unexpected T_STRING

2005-07-18 Thread Jim Moseby
> > I am trying to connect to a datbase: > > " > mysql_select_db ('database') > or die ("couldnt connect to databse") > " > What is wrong here? > This is the error: > > Parse error: syntax error, unexpected T_STRING in file name on line 12 > > -- > PHP General Mailing List (http://www.ph

[PHP] syntax error, unexpected T_STRING

2005-07-18 Thread George B
I am trying to connect to a datbase: " mysql_select_db ('database') or die ("couldnt connect to databse") " What is wrong here? This is the error: Parse error: syntax error, unexpected T_STRING in file name on line 12 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

RE: [PHP] syntax error, unexpected T_STRING

2005-07-18 Thread Jim Moseby
> Thanks JM! > It was another one of my usual mistakes :P > Forgot the semicolon. I don't underestand why you have to put > in so many > semicolons... Hmm.. Is it a thing from C or something? When I see that T_STRING error, missing semicolon is the first thing I look for. I don't know the histo

Re: [PHP] syntax error, unexpected T_STRING

2005-07-18 Thread Matthew Weier O'Phinney
* George B <[EMAIL PROTECTED]> : > Jim Moseby wrote: > > > I am trying to connect to a datbase: > > > > > > " > > > mysql_select_db ('database') > > > or die ("couldnt connect to databse") > > > " > > > What is wrong here? > > > This is the error: > > > > > > Parse error: syntax error, unexpected

Re: [PHP] Syntax error (missing operator) in query expression

2004-04-15 Thread AgfTech Lists
Got it from there! Thanks! Regards Aman On Thu, 2004-04-15 at 18:27, Marek Kilimajer wrote: > This answers it all: http://sk.php.net/addslashes#28429 > > AgfTech Lists wrote: > > Hi All > > > > Following is the INSERT statement I am executing, > > > > > > snip >> > >

Re: [PHP] Syntax error (missing operator) in query expression

2004-04-15 Thread Marek Kilimajer
This answers it all: http://sk.php.net/addslashes#28429 AgfTech Lists wrote: Hi All Following is the INSERT statement I am executing, snip >> INSERT INTO customer (email, password, handle, fname, lname, company, tax_id, addr1, addr2, city, state, zipcode, country, dayph

Re: [PHP] Syntax error (missing operator) in query expression

2004-04-15 Thread Curt Zirzow
* Thus wrote AgfTech Lists ([EMAIL PROTECTED]): > Hi All > > Following is the INSERT statement I am executing, > > > snip >> > > INSERT INTO customer (email, password, handle, fname, lname, company, > tax_id, addr1, addr2, city, state, zipcode, country, dayphone, evepho

[PHP] Syntax error (missing operator) in query expression

2004-04-15 Thread AgfTech Lists
Hi All Following is the INSERT statement I am executing, snip >> INSERT INTO customer (email, password, handle, fname, lname, company, tax_id, addr1, addr2, city, state, zipcode, country, dayphone, evephone, fax, paymethod, cardname, cardnum, expmonth,expyear ,ship_addr

Re: [PHP] syntax error

2004-01-26 Thread John Taylor-Johnston
Thanks. Duh :) > replace the + symbols with . and also date(F) should be date('F'). Sleepy time. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] syntax error

2004-01-26 Thread Phil Driscoll
On Monday 26 January 2004 07:37, John Taylor-Johnston wrote: > Obviously, I'm screwing up my syntax trying to add 2003.php to the end. How > should I express this line please :) ? > ("/home/users/q/qx04t9mu/www/glq2-test/calendars/"+strtolower(date(F))+"200 >3.htm"); ?> replace the + symbols with

[PHP] syntax error

2004-01-26 Thread John Taylor-Johnston
Hi, I'm getting: Warning: main(): Failed opening '2003' for inclusion (include_path='.:/usr/local/share/pear') in /home/users/q/qx04t9mu/www/glq2-test/english/test.php on line 117 Obviously, I'm screwing up my syntax trying to add 2003.php to the end. How should I express this line please :) ?

Re: [PHP] Syntax Error -> This is WEIRD!

2004-01-20 Thread Nick Wilson
* and then Dagfinn Reiersøl declared > >Yes your right, that?s exactly the problem. I didn?t even realize he was > >doing that. > > > >By including the PHP file via HTTP, you are including the OUTPUT of the PHP > >file, not the actual PHP file itself. > > > >e.g. > > > >by including a file wit

Re: [PHP] Syntax Error -> This is WEIRD!

2004-01-16 Thread Dagfinn Reiersøl
Donald Tyler wrote: Yes that is true. But I would strongly recommend against doing that. You should never include anything over HTTP. Its extremely messy, 100% insecure and just a very very bad idea. My spontaneous reaction is to agree with you. On the other hand, are SOAP or XML-RPC over HTT

Re: [PHP] Syntax Error -> This is WEIRD!

2004-01-16 Thread Dagfinn Reiers?l
Jason Wong wrote: >On Saturday 17 January 2004 01:50, Dagfinn Reiersøl wrote: > > > >>Yes. I read the manual which provides no clear explanation (I suspect >>that whoever wrote it didn't actually know how it works). So I decided >>to test it. It does exactly what you say it does. I made an inclu

RE: [PHP] Syntax Error -> This is WEIRD!

2004-01-16 Thread Donald Tyler
: Dagfinn Reiersøl [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 11:50 AM To: PHP General Subject: Re: [PHP] Syntax Error -> This is WEIRD! Donald Tyler wrote: >Yes your right, that’s exactly the problem. I didn’t even realize he was >doing that. > >By including the PHP fil

Re: [PHP] Syntax Error -> This is WEIRD!

2004-01-16 Thread Jason Wong
On Saturday 17 January 2004 01:50, Dagfinn Reiersøl wrote: > Yes. I read the manual which provides no clear explanation (I suspect > that whoever wrote it didn't actually know how it works). So I decided > to test it. It does exactly what you say it does. I made an include file > like this: In de

Re: [PHP] Syntax Error -> This is WEIRD!

2004-01-16 Thread Dagfinn Reiersøl
m: Dagfinn Reiersøl [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 10:18 AM To: PHP General Subject: Re: [PHP] Syntax Error -> This is WEIRD! Nick Wilson wrote: if a script calls antohter like 'include('http://site.com/index.php'); Why would I get a syntax error on line

RE: [PHP] Syntax Error -> This is WEIRD!

2004-01-16 Thread Donald Tyler
o" as PHP code, which is obviously going to cause a syntax error. -Original Message- From: Dagfinn Reiersøl [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 10:18 AM To: PHP General Subject: Re: [PHP] Syntax Error -> This is WEIRD! Nick Wilson wrote: >if a script cal

Re: [PHP] Syntax Error -> This is WEIRD!

2004-01-16 Thread Dagfinn Reiersøl
Nick Wilson wrote: if a script calls antohter like 'include('http://site.com/index.php'); Why would I get a syntax error on line 1 of index.php when it looks like this: What's the deal there? Many thanks for any insight ;-) I've never tried to do an include via HTTP, so maybe I'm clueless, b

RE: [PHP] Syntax Error -> This is WEIRD!

2004-01-16 Thread Jeremy
Did the script accidently get saved in MS-DOS text format? -Original Message- From: Donald Tyler [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 8:53 AM To: [EMAIL PROTECTED] Subject: [PHP] Syntax Error -> This is WEIRD! There could be something you're not seeing and

[PHP] Syntax Error -> This is WEIRD!

2004-01-16 Thread Donald Tyler
Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 8:17 AM To: php-general Subject: [PHP] Syntax Error -> This is WEIRD! if a script calls antohter like 'include('http://site.com/index.php'); Why would I get a syntax error on line

Re: [PHP] Syntax Error -> This is WEIRD!

2004-01-16 Thread Nick Wilson
* and then Richard Davey declared > Hello Nick, > > Friday, January 16, 2004, 2:16:43 PM, you wrote: > > NW> if a script calls antohter like > NW> 'include('http://site.com/index.php'); > > NW> Why would I get a syntax error on line 1 of index.php when it looks like > NW> this: > > NW> NW

Re: [PHP] Syntax Error -> This is WEIRD!

2004-01-16 Thread Richard Davey
Hello Nick, Friday, January 16, 2004, 2:16:43 PM, you wrote: NW> if a script calls antohter like NW> 'include('http://site.com/index.php'); NW> Why would I get a syntax error on line 1 of index.php when it looks like NW> this: NW> // line one above this one NW> What's the deal there? Say you

[PHP] Syntax Error -> This is WEIRD!

2004-01-16 Thread Nick Wilson
if a script calls antohter like 'include('http://site.com/index.php'); Why would I get a syntax error on line 1 of index.php when it looks like this: http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP syntax error or javascript mistake?

2003-11-19 Thread Marek Kilimajer
Kenn Murrah wrote: I'm trying to open a new window on top of the current window, and it does that, but the "original" (bottom) window changes to read "Object Window" ... I can get back to the original with the "Back" button but of course don't want to ask that of the user ... I simply want a new

[PHP] PHP syntax error or javascript mistake?

2003-11-19 Thread Kenn Murrah
Greetings: I can't decide if my problem is PHP or Javascript, but I've been staring at this line of code for too long without being able to see why it's behaving the way it is I'm trying to open a new window on top of the current window, and it does that, but the "original" (bottom) windo

Re: [PHP] syntax error using header and SID

2003-09-04 Thread Tyler Lane
On Thu, 2003-09-04 at 09:33, bob pilly wrote: > Hi all > > Can someone tell me what the correct syntax is to pass > a Session ID via the header redirect is? Im trying: > > header( "Location: page2.php? (SID)?>" ) header( "Location: page2.php?". strip_tags( SID ) ); the problem you are having is

Re: [PHP] syntax error using header and SID

2003-09-04 Thread Chris Hayes
At 18:33 4-9-03, you wrote: Hi all Can someone tell me what the correct syntax is to pass a Session ID via the header redirect is? Im trying: header( "Location: page2.php?" ) You are making a row of mistakes that suggest it is a good idea to read a bit on PHP syntax and how variables are passed o

Re: [PHP] syntax error using header and SID

2003-09-04 Thread John W. Holmes
bob pilly wrote: Hi all Can someone tell me what the correct syntax is to pass a Session ID via the header redirect is? Im trying: header( "Location: page2.php?" ) but it isnt working for me and all the docs i can find just deal with tagging it to the end of a hyperlink. header("Location: page2.ph

[PHP] syntax error using header and SID

2003-09-04 Thread bob pilly
Hi all Can someone tell me what the correct syntax is to pass a Session ID via the header redirect is? Im trying: header( "Location: page2.php?" ) but it isnt working for me and all the docs i can find just deal with tagging it to the end of a hyperlink. Any help would be greatly appreciated!

Re: [PHP] syntax error

2003-03-04 Thread John Taylor-Johnston
Thanks Keven. Didn't see that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] syntax error

2003-03-04 Thread Kevin Stone
Where is $line coming from? The function won't output what you don't input. Other than that I don't see anything wrong. - Kevin - Original Message - From: "John Taylor-Johnston" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 04, 200

[PHP] syntax error

2003-03-04 Thread John Taylor-Johnston
Sigh :) It all works so much better if I use: if(eregi('^au: (.*)$',$line,$m)) { But I want to use a function. But nothing is returned. So what did I do wrong now? --snip echo filter_strings("au:"); function filter_strings($tofilter){ echo $tofilter.""; #if(eregi('^$

Re: [PHP] syntax error on mysql select statement

2002-10-13 Thread Marco Tabini
Yes, the LIMIT clause must be at the end of the line. Take a look at the documentation: http://www.mysql.com/doc/en/SELECT.html On Sun, 2002-10-13 at 00:12, Pablo Oliva wrote: > Can anyone see any problems with the following: > SELECT * FROM ad AS t1, ad_location AS t2 ORDER BY t1.ad_ts_update

[PHP] syntax error on mysql select statement

2002-10-13 Thread Pablo Oliva
Can anyone see any problems with the following: SELECT * FROM ad AS t1, ad_location AS t2 ORDER BY t1.ad_ts_update LIMIT 0,40 WHERE t1.ad_location = t2.ad_loc_id AND ( (t1.ad_cdl_a = on OR t1.ad_cdl_b = on) AND t1.ad_longhaul = on AND t1.ad_fulltime = on ) AND ( t2.ca_losangeles = 1 OR t2.ca_santa

RE: [PHP] syntax error on mysql select statement

2002-10-13 Thread John W. Holmes
ORDER BY and LIMIT go at the end...after WHERE. ---John Holmes... > -Original Message- > From: Pablo Oliva [mailto:[EMAIL PROTECTED]] > Sent: Sunday, October 13, 2002 12:13 AM > To: [EMAIL PROTECTED] > Subject: [PHP] syntax error on mysql select statement > &g

[PHP] syntax error while compiling php

2002-06-21 Thread David Loszewski
I'm using php-4.2.1 on FreeBSD 4.5 with Apache2, I did the configure fine, I did a './configure --with-mysql --with-apxs2=/usr/local/apache/bin/apxs', but when I do a 'gmake' it comes up with php_functions.c:93: syntax error gmake[3]: *** [php_functions.lo] Error 1 gmake[3]: Leaving directory `

[PHP] Syntax Error On Line 1

2001-07-31 Thread PHP WannaBe
I recently just started using PHP. I searched this list's archives first, but couldn't find an answer to my question: Whenever I get a "syntax error" it's always reported "on line 1", even when it's obviously not on line 1. I *never* get an error reported on any other line #. Any thoughts on