AW: [PHP-DB] Can i add mysql_array into a session?
| From: | Lars Jedinski | Date: | Mon, 02 Feb 2004 06:28:45 +0000 |
| Subject: | AW: [PHP-DB] Can i add mysql_array into a session? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-32746@lists.php.net to get a copy of this message | ||
There's no need to pass the data to the other page. As you
passed $PUBIN_NUM you can (re)load the data easily:
select ... where product_code=$PUBLIN_NUM
Lars Jedinski
> -----Ursprüngliche Nachricht-----
> Von: Louie Miranda [mailto:louie@axishift.ath.cx]
> Gesendet: Montag, 2. Februar 2004 04:33
> An: php-db@lists.php.net
> Betreff: [PHP-DB] Can i add mysql_array into a session?
>
>
> Here's my code for the mysql_fetch_array, i was wondering if i can add
> values coming out from an array into a session variable so i
> can pass it
> from one page to another? Im trying to pass it to another
> page actually for
> editing/deleting purposes.
>
> Please help!
>
> #code###########
> while ($row = @ mysql_fetch_array($result))
> {
> echo "\n<tr>";
>
> $product_code1 = $row['product_code'];
> $product_code2 = $row['product_code'];
> $title = $row['title'];
> $language = $row['language'];
> $issue = $row['issue'];
> $category = $row['category'];
> $cost = $row['cost'];
>
> print("<th><a href=\"p_edit.php?PUBLN_NUM=" . $product_code1 .
> "\">edit</a></th><th>" . $product_code2 .
> "</th><th>" .
> $title . "</th><th>"
> . $language . "</th><th>" . $issue . "</th><th>" .
> $category
> . "</th><th>" .
> $cost . "</th>");
>
> echo "\n</tr>";
> }
> #code###########
>
>
>
>
> -- -
> Louie Miranda
> http://www.axishift.com
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>