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
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
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
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
> }
> ?
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:
>
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
> > >
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
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
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
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
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
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
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
> }
> ?
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
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
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
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
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
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
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
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
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:
==
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
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
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_
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
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
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,
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
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
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
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
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
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.
--
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
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,$
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
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
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
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
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
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
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
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
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
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
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
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
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
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/)
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
>
> 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
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
> 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
* 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
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 >>
> >
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
* 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
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
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
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
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 :) ?
* 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
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
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
: 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, thats exactly the problem. I didnt even realize he was
>doing that.
>
>By including the PHP fil
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
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
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
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
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
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
* 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
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
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
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
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
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
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
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
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!
Thanks Keven. Didn't see that.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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('^$
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
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
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
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 `
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
89 matches
Mail list logo