Re: [PHP] Get data from 5 tables

2003-03-06 Thread Patrick Schnegg
To keep those similiar column names apart and more readable, you might want to use AS. SELECT table1.data AS data1, table2.data AS data2 ... FROM table1, table2 ... Of course this is optional, you can always use table1.data, table2.data instead. Hope that answers your actual question as to how

[PHP] Re: How to use the fields of an array as individual parameter for a function

2003-03-04 Thread Patrick Schnegg
Hi Instead of worrying how to pass the individual parameters to foo2, simply pass the whole array to it and process it within the function itself. Seems more logical to me. Christian Bartels [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello! I'm new here on the list. I hope you

Re: [PHP] Re: How to use the fields of an array as individual parameter for a function

2003-03-04 Thread Patrick Schnegg
:[EMAIL PROTECTED] Yes, i thought about this already. But it is more work for me to do, 'cause i would have to rewrite the constructors of several classes. Anyways i am interested, whether this (pass the elements as variables) is possible in php. --- CB -Ursprüngliche Nachricht- Von: Patrick

[PHP] Re: mail() function

2003-03-04 Thread Patrick Schnegg
The mail() function will only send one mail at a time, to send multiple mails you would write a loop like this (presuming you had your mail addresses ready in an array called $emails): foreach ($emails as $email) { mail($email, your subject, your message); } Denis L. Menezes [EMAIL

[PHP] Re: mail() function

2003-03-04 Thread Patrick Schnegg
Just in case you don't know, you can easily make an array out of your string of emails by exploding using the commas as separators: $emails = explode (,, $stringOfEmails); Patrick Schnegg [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The mail() function will only send one mail

Re: [PHP] Re: mail() function

2003-03-04 Thread Patrick Schnegg
Oh, silly me. Commas are indeed accepted. My apologies. - Original Message - From: Jason Wong [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 2:18 PM Subject: Re: [PHP] Re: mail() function On Tuesday 04 March 2003 21:13, Patrick Schnegg

[PHP] Re: Remember scrolled position

2003-03-04 Thread Patrick Schnegg
I would tend to make this with common html using named anchors. Just enclose every button with a an anchor and define its name numbering it with php. Then simply make sure that when the button is pressed that number is appended to the url so it will look like yourdocument.php?yourdata=blah#5