Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 2000051

Re: [PHP3] what's wrong with my class From: Richard Lynch (richard <email protected>)
Date: 05/15/00

In article <028101bfbf07$259a2ac0$140910ac <email protected>>,
minhnv <email protected> ("Minh Nguyen Van") wrote:

> ------=_NextPart_000_027E_01BFBF41.D1E3A600
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> I have ShoppingCart like this :
> ---------------------------------------------------
> <?php
>
> class ShoppingCart {
> var $conn;
> var $sesionid;
>
> function ShoppingCart($this->conn,$this->sesionid){ //this is the line =
> number 7

The parameters to a function should just be variables:

function ShoppingCart($conn, $sessionid){

-- 
Richard Lynch                | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA        | http://www.L-I-E.com/artists.htm
http://www.zend.com          | (this has nothing to do with Zend, duh!)

-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>