AW: Can i add mysql_array into a session?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx] 
> Gesendet: Montag, 2. Februar 2004 04:33
> An: php-db@xxxxxxxxxxxxx
> Betreff:  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
> 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux