RE: [PHP] Trasfering a variable between two scripts
| From: | J.R. Lillard | Date: | Thu, 17 Aug 2000 06:02:00 +0000 |
| Subject: | RE: [PHP] Trasfering a variable between two scripts | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-12156@lists.php.net to get a copy of this message | ||
this may be nothing, but i usually put the value following the href in
double quotes ("). to test to make sure that your detail script is running
correctly, though, you might look up what should be a valid id and go
directly to the url manually. so you'd have something along the lines of:
http://whatever.com/document_detail.php?id=234
hmm...i don't remember if php variables are case-sensative or not. i'm a
little rusty. so your id variable might be getting passed as $ID and you
might be looking for $id.
> -----Original Message-----
> From: KALOSI, David [mailto:bkalosi@globtel.sk]
> Sent: Thursday, August 17, 2000 12:55 AM
> To: 'php-general@lists.php.net'
> Subject: [PHP] Trasfering a variable between two scripts
>
>
> I have a script written which generates a table from a Postrgre
> database(it
> lists two fields like "SELECT product_name, price FROM my database;"). I
> have an <A HREF=document_detail.php?ID='$id'>(where ID is the
> record number
> in the database) on each record With this links I want to call a
> new script
> which makes a "SELECT * FROM my database;", and generates the full product
> information. The links work fine but the output of the document_detail.php
> script is empty. I tried to echo
> the $id in this script and it showed me nothing.
>
> Can anybody Help me??????
>
>
> Thanks
> --------------------------------------------------------
> David Kalosi
> HelpDesk technician
> bkalosi@globtel.sk
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>