Re: [PHP-WIN] SQL to select a set of records

2004-02-06 Thread Luis Moreira
Not quite true. >From the manuals : The LIMIT clause can be used to constrain the number of rows returned by the SELECT statement. LIMIT takes one or two numeric arguments. If two arguments are given, the first specifies the offset of the first row to return, the second specifies the maximum numb

php-windows Digest 6 Feb 2004 08:50:36 -0000 Issue 2109

2004-02-06 Thread php-windows-digest-help
php-windows Digest 6 Feb 2004 08:50:36 - Issue 2109 Topics (messages 22737 through 22741): Re: Problem with form 22737 by: John Ellingsworth 22738 by: Disko_kex SQL to select a set of records 22739 by: Herhuth, Ron 22740 by: Svensson, B.A.T. (HKG) 227

Re: [PHP-WIN] SQL to select a set of records

2004-02-06 Thread Nadim Attari
> mysql> select * from table LIMIT 5,10; # Retrieve rows 6-15 > If one argument is given, it indicates the maximum number of rows to return: > mysql> select * from table LIMIT 5; # Retrieve first 5 rows Dunno whether LIMIT works in Microsoft SQL Server ... someone may check it plzzz ~nadim

RE: [PHP-WIN] SQL to select a set of records

2004-02-06 Thread George Pitcher
I have both access and MySQL DBs and I have to change my method for Access to 'select top 10 [fields] from table where x=x etc order by y' MS SQLServer may need the same. George in Oxford > -Original Message- > From: Nadim Attari [mailto:[EMAIL PROTECTED] > Sent: 6 February 2004 11:33 am

RE: [PHP-WIN] SQL to select a set of records

2004-02-06 Thread David Felton
No it doesn't. you'll need to do something like this in MS-SQL (using a sub-select): SELECT TOP 10 dbo.Table_MIS_Files.File_ID FROMdbo.Table_MIS_Files WHERE dbo.Table_MIS_Files.File_ID NOT IN (SELECT TOP 25 dbo.Table_MIS_Files.File_ID FROMdbo.Table_MIS_Files) -Ori

Re: [PHP-WIN] SQL to select a set of records

2004-02-06 Thread Stuart
David Felton wrote: SELECT TOP 10 dbo.Table_MIS_Files.File_ID FROM dbo.Table_MIS_Files WHERE dbo.Table_MIS_Files.File_ID NOT IN (SELECT TOP 25 dbo.Table_MIS_Files.File_ID FROM dbo.Table_MIS_Files) Shouldn't this be... SELECT TOP 25 dbo.Table_MIS_Files.File_ID FROMdbo.Table_MIS_F

[PHP-WIN] Asyncron execution with "start"...

2004-02-06 Thread Svensson, B.A.T. (HKG)
I tried to start an asyncroniously job on a win2003 server with php 4.3.4 (november build) with system("start ...") and passthru("start ...") however it turns out that the php call is waiting until completion of the command that starts invoke.. Thinking about it, it seams like start does fork a bi

RE: [PHP-WIN] SQL to select a set of records

2004-02-06 Thread Svensson, B.A.T. (HKG)
set nocount on create table test (a int , b char(1)) create table test_tmp (a int , b char(1)) insert into test values (1, 'a') insert into test values (2, 'a') insert into test values (3, 'b') insert into test values (4, 'b') insert into test values (5, 'c') insert into test values (6, 'c'

RE: [PHP-WIN] SQL to select a set of records

2004-02-06 Thread Herhuth, Ron
Okay I tried this and while it doesn't error out I still only get the first 10 records, if I change the first number I get the number of records that I changed the number to. If I change the second number nothing happens. SELECT TOP 10 dbo.individual.id, last_name, first_name FROM dbo.individua

RE: [PHP-WIN] SQL to select a set of records

2004-02-06 Thread Frank M. Kromann
create table #test (a int , b char(1)) create table #test_tmp (a int , b char(1)) Would make these tables real temp tables. These will be deleted wehn the connection is closed. - Frank > set nocount on > create table test (a int , b char(1)) > create table test_tmp (a int , b char(1)) > > > i

RE: [PHP-WIN] SQL to select a set of records

2004-02-06 Thread David Felton
No. What I said was correct, as Ron wanted rows 25-35. -Original Message- From: Stuart [mailto:[EMAIL PROTECTED] Sent: 06 February 2004 12:45 To: David Felton Cc: Nadim Attari; [EMAIL PROTECTED]; Herhuth, Ron Subject: Re: [PHP-WIN] SQL to select a set of records David Felton wrote: > SEL

RE: [PHP-WIN] SQL to select a set of records

2004-02-06 Thread Herhuth, Ron
It doesn't matter neither one works...they only bring back the first x number of records. Ron >From: David Felton >To: Stuart >Sent: 02/06/2004 11:24 AM >No. What I said was correct, as Ron wanted rows 25-35. > >-Original Message- >From: Stuart [mailto:[EMAIL PROTECTED] >Sent: 06 February

[PHP-WIN] Invalid referrer & URL sessions

2004-02-06 Thread Ethan Nelson
I have a problem with starting sessions on my site. Lets say someone comes from site random.com but the link they click on to get to my site has a ?sessid=gobildygook in its href. The way things are now, the session starts right up using the sessid saved in their href. I suppose this could also

php-windows Digest 7 Feb 2004 01:09:50 -0000 Issue 2110

2004-02-06 Thread php-windows-digest-help
php-windows Digest 7 Feb 2004 01:09:50 - Issue 2110 Topics (messages 22742 through 22752): Re: SQL to select a set of records 22742 by: Nadim Attari 22743 by: George Pitcher 22744 by: David Felton 22745 by: Stuart 22747 by: Svensson, B.A.T. (HKG)