From owner-freebsd-questions Fri Aug 9 15:31:54 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B04137B400 for ; Fri, 9 Aug 2002 15:31:51 -0700 (PDT) Received: from cypress.adhesivemedia.com (cypress.adhesivemedia.com [207.202.159.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id E131543E75 for ; Fri, 9 Aug 2002 15:31:50 -0700 (PDT) (envelope-from philip@adhesivemedia.com) Received: from cypress.adhesivemedia.com (localhost [127.0.0.1]) by cypress.adhesivemedia.com (8.12.3/8.12.3) with ESMTP id g79MVo1b097829; Fri, 9 Aug 2002 15:31:50 -0700 (PDT) (envelope-from philip@adhesivemedia.com) Received: from localhost (philip@localhost) by cypress.adhesivemedia.com (8.12.3/8.12.3/Submit) with ESMTP id g79MVoL3097826; Fri, 9 Aug 2002 15:31:50 -0700 (PDT) X-Authentication-Warning: cypress.adhesivemedia.com: philip owned process doing -bs Date: Fri, 9 Aug 2002 15:31:50 -0700 (PDT) From: Philip Hallstrom To: MET Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Off topic as usual || PHP variables not staying set In-Reply-To: <005f01c23fed$3d296fc0$6701a8c0@SURVIVAL> Message-ID: <20020809153123.H93922-100000@cypress.adhesivemedia.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG You might have better luck trying: mailing list: php-general@lists.php.net newsgroup: comp.lang.php On Fri, 9 Aug 2002, MET wrote: > I have a database query which requires a variable ( > $USER[$id]["cbannerID"] ) to be equal to the ID of the current banner > being viewed. If you've come to the page for the first time my script > gives that variable a default value of -1 . > > if(!isset($USER[$id]["cbannerID"])) $USER[$id]["cbannerID"] = > -1; > > However the variable does not hold that value. So in my SQL statement > it prints nothing returning a SQL statement error. I then tried this > just or a test purposes...on a separate php page. > > $USER[5]['test'] = 1; > > echo $USER[5]['test']; > > Nothing gets returned either. > > Please note that this works on my local Win2k machine, however when I > upload it my FreeBSD machine it does not work. I'm guessing it has > something to do with my PHP installation. Currently the machine is > running Apache 1.3.26 and PHP 4.1.2 (going to upgrade soon but also note > my Windows machine is running the same ver. Of PHP). > > Any ideas? > > - Matthew > > > /************************************************************** > > Matthew Metnetsky > > met@uberstats.com > > **************************************************************/ > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message