Re: cant redeclare class.....

From: Date: Sun, 21 Oct 2001 06:16:35 +0000
Subject: Re: cant redeclare class.....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71719@lists.php.net to get a copy of this message
Move include("class.jm_sms.php") outside of the loop. -- Justin Garrett "Sagar" <sagarphp@yahoo.com> wrote in message news:4.3.0.20011021070957.00ae36f0@pop.mail.yahoo.com... > Hi all, > > I'm using jm_sms class in mysql > do....while($myrow=mysql_fetch_array($result)) loop. > the class is running fine for the first time. But when it is called for the > second time i'm > getting an error saying "cant redeclare the class". How to make this class > work within > a loop. > > i'm attaching the files if u want to look inside. > > any help is highly appreciated. > > thanks, > > /sagar

« previous php.general (#71719) next »