Re: [PHP] Help on objects

2006-10-06 Thread Richard Lynch
On Thu, October 5, 2006 2:55 pm, Satyam wrote: > - Original Message - > From: Martin Alterisio > To: Satyam > Cc: Deckard ; php-general@lists.php.net > You're wrong, partially: > > I am sure you could have stated that in a more courteous way. So, this Argentinian, Italian, and Eu

Re: [PHP] Help on objects

2006-10-05 Thread Martin Alterisio
2006/10/5, Satyam <[EMAIL PROTECTED]>: - Original Message - *From:* Martin Alterisio <[EMAIL PROTECTED]> *To:* Satyam <[EMAIL PROTECTED]> *Cc:* Deckard <[EMAIL PROTECTED]> ; php-general@lists.php.net *Sent:* Thursday, October 05, 2006 3:50 PM *Subject:* Re: [PH

Re: [PHP] Help on objects

2006-10-05 Thread Satyam
- Original Message - From: Martin Alterisio To: Satyam Cc: Deckard ; php-general@lists.php.net Sent: Thursday, October 05, 2006 3:50 PM Subject: Re: [PHP] Help on objects 2006/10/5, Satyam <[EMAIL PROTECTED]>: I've seen you already had a good answer on

Re: [PHP] Help on objects

2006-10-05 Thread Satyam
- Original Message - From: "Robert Cummings" <[EMAIL PROTECTED]> To: "Satyam" <[EMAIL PROTECTED]> Cc: "Deckard" <[EMAIL PROTECTED]>; Sent: Thursday, October 05, 2006 11:16 AM Subject: Re: [PHP] Help on objects On Thu, 2006-10-05 at

Re: [PHP] Help on objects

2006-10-05 Thread Martin Alterisio
2006/10/5, Satyam <[EMAIL PROTECTED]>: I've seen you already had a good answer on the errors in the code so I won't go on that. As for OOP, the one design error you have is that you are asking for an action, not an object. You want to make SQL inserts, that is your purpose, and that is an act

Re: [PHP] Help on objects

2006-10-05 Thread Martin Alterisio
2006/10/4, Deckard <[EMAIL PROTECTED]>: Hi, I'm trying to lay my hands on PHP OOP, but it's not easy :( I've read several examples in the web, but cannot transpose to may case. I'm trying to set a class to make SQL inserts in mysql. I have the class: --

Re: [PHP] Help on objects [with reply]

2006-10-05 Thread Dave Goodchild
Undoubtedly. He could also use the PEAR DB abstraction layer.

Re: [PHP] Help on objects [with reply]

2006-10-05 Thread benifactor
"Satyam" <[EMAIL PROTECTED]>; "Deckard" <[EMAIL PROTECTED]>; Sent: Thursday, October 05, 2006 4:55 AM Subject: Re: [PHP] Help on objects [with reply] > Re the last suggestion, ensure you keep those database details outside the > web root (ie in a file c

Re: [PHP] Help on objects [with reply]

2006-10-05 Thread Dave Goodchild
Re the last suggestion, ensure you keep those database details outside the web root (ie in a file called connect.inc for example) or if have to keep it there add a .htaccess file that prevents download of *.inc files. Also, avoid use of the error suppression operator (@). You need to see your err

Re: [PHP] Help on objects [with reply]

2006-10-05 Thread benifactor
]>; Sent: Thursday, October 05, 2006 2:16 AM Subject: Re: [PHP] Help on objects > On Thu, 2006-10-05 at 07:04 +0200, Satyam wrote: > > I've seen you already had a good answer on the errors in the code so I won't > > go on that. As for OOP, the one design error you have is

Re: [PHP] Help on objects

2006-10-05 Thread benifactor
- Original Message - From: "Robert Cummings" <[EMAIL PROTECTED]> To: "Satyam" <[EMAIL PROTECTED]> Cc: "Deckard" <[EMAIL PROTECTED]>; Sent: Thursday, October 05, 2006 2:16 AM Subject: Re: [PHP] Help on objects > On Thu, 2006-10-05 at 0

Re: [PHP] Help on objects

2006-10-05 Thread Robert Cummings
On Thu, 2006-10-05 at 07:04 +0200, Satyam wrote: > I've seen you already had a good answer on the errors in the code so I won't > go on that. As for OOP, the one design error you have is that you are > asking for an action, not an object. You want to make SQL inserts, that is > your purpose,

Re: [PHP] Help on objects

2006-10-05 Thread John Wells
On 10/5/06, Deckard <[EMAIL PROTECTED]> wrote: Hi, I'm trying to lay my hands on PHP OOP, but it's not easy :( I've read several examples in the web, but cannot transpose to may case. I'm trying to set a class to make SQL inserts in mysql. I commend you on trying to build an OOP class for da

Re: [PHP] Help on objects

2006-10-04 Thread Satyam
esign. Classes will usually have names representing nouns, methods will be verbs, properties adjectives, more or less, that's OOP for English teachers. Satyam - Original Message - From: "Deckard" <[EMAIL PROTECTED]> To: Sent: Thursday, October 05, 2006 3:47 AM S

Re: [PHP] Help on objects

2006-10-04 Thread Penthexquadium
On Thu, 05 Oct 2006 02:47:59 +0100, Deckard <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to lay my hands on PHP OOP, but it's not easy :( > I've read several examples in the web, but cannot transpose to may case. > > I'm trying to set a class to make SQL inserts in mysql. > > I have the clas

[PHP] Help on objects

2006-10-04 Thread Deckard
Hi, I'm trying to lay my hands on PHP OOP, but it's not easy :( I've read several examples in the web, but cannot transpose to may case. I'm trying to set a class to make SQL inserts in mysql. I have the class: - table = $table; $this->sq