[PHP] Re: for loop problem?

2001-11-12 Thread jimmy elab

Tyler Longren wrote:
> Why is this happening?

Because you have double quotes in your for-statement.

Here's the way to do it (only relevant part copied) 

$value1 = 100;
$value2 = 1223109;
for($i=$value1; $i<=$value2; $i++) {

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] for loop problem?

2001-11-13 Thread jimmy elab

Tyler Longren wrote:
> 
> Here's something interesting though.  There's an id field that's set to
> AUTO_INCREMENT.  

Yep, and that's one thing I've been looking at. See, I find it strange
that you need an KEY idpass (id, passcode(245)) when the ID is
quaranteed to be unique in itself.

Funny... Would not explain why you get more, I'd rather expect you to
get fewer entries.

Anyway. Try this: Drop the passcode VARCHAR and make it fixed CHAR(10).
It seems like MySQL can't keep up with the speed of your inserts, and
varchar is obnoxiously slow.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Frames and Sessions

2001-11-13 Thread jimmy elab

Michael Hall wrote:
> can't figure out how I'm going to maintain a session across the three
> seperate HTML files in the frameset.

You don't! PHP and your browser will do it for you. It doesn't matter
whether you're in frames or not. All that matters is the cookie that is
automagically generated by the session manager and is sent to the server
on each request.

You only need a call to session_start() in each file that relies on the
session variables, and a session.register('varname') for each var once
you've decided you want it being saved accross pages.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Parse POST-Data myself

2001-11-16 Thread jimmy elab

Andrew Forgue wrote:
> 
> By putting brackets after the variable name [] in a form element
> 
> 
> 
> 

BLAAACH!!! Please add an index variable, as fields that you don't need
wil NOT be posted, so when you have several fields for one single
dataset, you might end up with the wrong set of indexes.

Adding them now, you'll never regret. 
Forget them now and you will regret it later...

  for ($i= 1; $i<= 3; $i++) {
  ?>
 
  http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Parse POST-Data myself

2001-11-16 Thread jimmy elab

Jimmy Elab wrote:
>  

When your not positioned straigth at your keyboard a ';' may
occasionally turn into an 'l'...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: alzheimers and confused

2001-11-17 Thread jimmy elab

de Morgan and Boole, not Alzheimer nor Confusius

!(A OR B) = (!A) AND (!B)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Quiz questions on PHP

2001-11-18 Thread jimmy elab

Srinivasan Ramakrishnan wrote:
> I'm preparing a quiz on PHP for some programmers. I was wondering if there
> are good questions that I can use instead of inventing my own.

How about: "Give some examples of relevant questions that one can pose
in news://php.general?";

gosh...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: PHP4 sessions and Netscape 4.75/Mac

2001-11-19 Thread jimmy elab

> Dennis Moore wrote:
> > 
> Any ideas or clues?
> 

Turn on cookies

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] MySQL to Excel with mutiple sheets

2001-11-29 Thread jimmy elab

Matthew Loff wrote:
> 
> http://www.wotsit.org/search.asp?page=49&s=ALLFILES
> > http://homepage.tinet.ie/~jmcnamara/perl/WriteExcel.html

This guy really has loads of remarkable links, or have you?!
Got any more?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] MySQL to Excel with mutiple sheets

2001-11-29 Thread jimmy elab

David Robley wrote:
> 
> s/require it be done/want to do it

Count me in. 
Starting somewhere in December. An RTF module will be first, though!

I'll post.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] MySQL to Excel with mutiple sheets

2001-11-29 Thread jimmy elab

Jason Murray wrote:
> 
> I stand by my original statement. After someone requires PHP to
> output a multi-sheet Excel file, the code to do it will then
> be "out there". :)

Ah, this is a nice cryptic answer! 
I need it -more or less- ;-)

Why? 
This is why: http://nijb.nl/planning.php (It will open a flat excel
sheet, or so you might think) Oh, in case you should worry, the file is
PHP generated and guaranteed macro free.

There's the first requirement fullfilled.

So what more needs to be done,
and where is 'out there?'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]