Re: Undefined Constant
| From: | Tyler Whitesides | Date: | Wed, 27 Nov 2002 08:23:06 +0000 |
| Subject: | Re: Undefined Constant | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-23689@lists.php.net to get a copy of this message | ||
Hi,
Thank you all for your quick help, it was just a "Youve been up too long
working on this and it is the middle of the night" mistakes. Once I put
quotes around my constant, everything worked.
Thanks again,
Tyler
----- Original Message -----
From: "Jason Wong" <php-db@gremlins.biz>
To: <php-db@lists.php.net>
Sent: Tuesday, November 26, 2002 11:39 PM
Subject: Re: [PHP-DB] Undefined Constant
> On Wednesday 27 November 2002 15:24, Tyler Whitesides wrote:
> > Hi,
> >
> > Although I have been working with PHP for a while, working with
> > Databases is something that I am only so so at. This code is supposed
to
> > grab the price from the database given the auto_increment id is inside
of
> > $casing. I am trying to get the $row[price] to echo so that Javascript
> > recieves a string, converts it to an integer, and later on in the code,
> > gives the user a total. Any ideas?
>
> Use:
>
> $row['price']
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
>
> /*
> The world really isn't any worse. It's just that the news coverage
> is so much better.
> */
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>