Can i add mysql_array into a session?
| From: | Louie Miranda | Date: | Mon, 02 Feb 2004 03:33:08 +0000 |
| Subject: | Can i add mysql_array into a session? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-32745@lists.php.net to get a copy of this message | ||
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