[PHP-DB] COPY with PostgreSQL

2004-10-21 Thread Robert Fitzpatrick
I am using COPY for PostgreSQL and having problems now that the incoming file contains more than approx 1500 lines. Is this an issue anyone is aware of? Lot's of files over 1000 lines have worked fine, but after getting a file over 1800 I began having problems. I have broke the file down to a ap

Re: [PHP-DB] Cookies with databases

2004-10-21 Thread Jason T. Davidson
Tyler- I have been to that section of php.net many times. My first cookie ($cid) doesn't have them domain listed and works just fine. Don't see I would need it for the cookie ($user)? -- Jason Davidson Tyler Replogle wrote: Yes you need to set the string domain http://us2.php.net/manual/en/fun

Re: [PHP-DB] Cookies with databases

2004-10-21 Thread Jason T. Davidson
Bastien- I took out the quotes (as I noticed after the fact that I didn't need them) however this did not help. "is the user cookie set" This I do not know as I am trying to test this on that second page. I get nothing, so I am assuming that it isn't set, however the first one $cid is working

Re: [PHP-DB] Logging Into A MySQL (Web) Database

2004-10-21 Thread Robby Russell
On Thu, 2004-10-21 at 22:20 -0400, Ron Piggott wrote: > Hi Robby > > I knew clearly what I was trying to say in my mind but didn't do a good job > expressing it. The web site address Alex sent me is what I am looking at > creating. > > Ron > Ok, who is Alex? If you are following to a thread,

Re: [PHP-DB] Logging Into A MySQL (Web) Database

2004-10-21 Thread Ron Piggott
Hi Robby I knew clearly what I was trying to say in my mind but didn't do a good job expressing it. The web site address Alex sent me is what I am looking at creating. Ron - Original Message - From: Robby Russell <[EMAIL PROTECTED]> To: Ron Piggott <[EMAIL PROTECTED]> Cc: PHP DB <[EMAIL

Re: [PHP-DB] sending e-mails

2004-10-21 Thread Robby Russell
On Thu, 2004-10-21 at 16:19 -0600, 'Miguel Guirao' wrote: > Hi!! > > I have a script in PHP that should send an e-mail from a specific e-mail > account, let's say [EMAIL PROTECTED] > to a customer's e-mail account, using the smtp_mail.inc class of PHP. > But, Do I need

Re: [PHP-DB] Logging Into A MySQL (Web) Database

2004-10-21 Thread Robby Russell
On Thu, 2004-10-21 at 17:50 -0400, Ron Piggott wrote: > Any ideas on how to log into a mySQL database through a web form and > creating "user sessions"? Ron > That's a loaded question... Can you be just a bit more specific? We're here to answer specific questions... so I will answer your questi

Re: [PHP-DB] Two session for the same user, possible?

2004-10-21 Thread Micah Stevens
p.s. you can also designate a session ID. If you do this you may be able to have two sessions running concurrently. Never tried it myself, but it should work. -Micah On Thursday 21 October 2004 02:03 pm, Micah Stevens wrote: > The Session ID is the same, so it will access the same variables.

[PHP-DB] Logging Into A MySQL (Web) Database

2004-10-21 Thread Ron Piggott
Any ideas on how to log into a mySQL database through a web form and creating "user sessions"? Ron -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Re: sending e-mails

2004-10-21 Thread Manuel Lemos
Hello, On 10/21/2004 07:19 PM, Miguel Guirao wrote: I have a script in PHP that should send an e-mail from a specific e-mail account, let's say [EMAIL PROTECTED] to a customer's e-mail account, using the smtp_mail.inc class of PHP. But, Do I need to authenticate first in

[PHP-DB] sending e-mails

2004-10-21 Thread 'Miguel Guirao'
Hi!! I have a script in PHP that should send an e-mail from a specific e-mail account, let's say [EMAIL PROTECTED] to a customer's e-mail account, using the smtp_mail.inc class of PHP. But, Do I need to authenticate first in order to send the e-mail? If so, how? Best

Re: [PHP-DB] Two session for the same user, possible?

2004-10-21 Thread Micah Stevens
The Session ID is the same, so it will access the same variables. If you want to force a new session in the new script, do this: http://us2.php.net/manual/en/function.session-regenerate-id.php But this will in effect log the user out of the first session as well. If you want to be able to do b

RE: [PHP-DB] Organizing a query

2004-10-21 Thread Norland, Martin
You AND's limit the query - what you have there would only accept: a equal to b, AND at least one of b,c, or d must equal to $var1 AND with b not equal to 99, So a=1 and b=1 and $var1 = 1 would work, but a=1 and b,c,d=1 and $var1 = 2 wouldn't. If you want the 'or none' factor, just drop the en

RE: [PHP-DB] Two session for the same user, possible?

2004-10-21 Thread Andre Matos
Hi Matt, I have developed two different web systems that use php sessions. When I a user log into one system, the system creates a session and storage on it one object called UserSession with some information that I need while the user works with the system. My problem is when the user decides to

RE: [PHP-DB] Two session for the same user, possible?

2004-10-21 Thread Norland, Martin
There is only the one $_SESSION superglobal in PHP - and session_start doesn't take any parameters - so the builtin sessions in PHP undoubtedly aren't anticipating a need for this. If you are just trying to store more data - you shouldn't have a problem, just use $_SESSION as an array like normal,

[PHP-DB] Organizing a query

2004-10-21 Thread Carlos Alberto Bazan-Canabal
Hello. I'm working on a simple search for my file, and I have a question on structuring my query. This is what I want to do: select * from table where a=b AND (b=$var1 or c=$var1 or d=$var1) AND b <> 99 In the above, you could have: - either b or c or d or none would = $var1 - more than one of

Re: [PHP-DB] Two session for the same user, possible?

2004-10-21 Thread Matt M.
> Is it possible to have two sessions for the same user in php? If yes, how > can I implement this? > > I am currently using one without problem. However, when I try to create a > second session, the first one is lost. could you post some code. I am not sure I follow what you are doing. -- PHP

[PHP-DB] Two session for the same user, possible?

2004-10-21 Thread Andre Matos
Hi List, Is it possible to have two sessions for the same user in php? If yes, how can I implement this? I am currently using one without problem. However, when I try to create a second session, the first one is lost. Thanks for any help. Andre -- Andre Matos [EMAIL PROTECTED] -- PHP Databa