[PHP-DB] passing var array

2004-04-26 Thread Sukanto Kho
Hi, How to pass var array to other page? I use $_GET but when I echo it, it appear array... Thanx Sk2 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] session problem

2004-04-26 Thread Sukanto Kho
Hi When I create an session var ...It stored in server right?? then everytime I change the session value then it should connect to the server to update...is it still right?? When I want to change the session value and the connection is down then the session value won't be update?? Thanks

Re: [PHP-DB] passing var array

2004-04-26 Thread Mikhail U. Petrov
Hi! At first, you chose wrong list for this question. Second, for new topic you shouldn't reply to old letter. Third, to view an array use print_r($_GET); Monday, April 26, 2004, 12:33:32 PM, Sukanto wrote: SK Hi, SK How to pass var array to other page? SK I use $_GET but when I echo it, it

RE: [PHP-DB] passing var array

2004-04-26 Thread Peter Lovatt
echo $_GET[some_var] -Original Message- From: Sukanto Kho [mailto:[EMAIL PROTECTED] Sent: 26 April 2004 09:34 To: [EMAIL PROTECTED] Subject: [PHP-DB] passing var array Hi, How to pass var array to other page? I use $_GET but when I echo it, it appear array... Thanx

[PHP-DB] more detail..passing array_var with $_get

2004-04-26 Thread Sukanto Kho
Hi all, sorry for making a little mess up just now.. My problem is I want to pass var array with $_get.. eg : $a=array() then i pass to other pages www.main.com?b=$a after that echo $b the result is array... just that... I want to make a product quotation so my purpose is that i

Re: [PHP-DB] more detail..passing array_var with $_get

2004-04-26 Thread BenT
Just make sure that you type $_GET $_SESSION $_POST these variables are case sensitive. I was stumped for a week because of this problem. BenT Sukanto Kho wrote: Hi all, sorry for making a little mess up just now.. My problem is I want to pass var array with $_get.. eg : $a=array() then i

[PHP-DB] Re: passing var array

2004-04-26 Thread pete M
http://localhost/index.php?val_one=oneval2=2 on index.php print_r($_GET) will show the array echo val l=.$_GET['val_one']; echo val 2=.$_GET['val2']; its CAse senSitivE you can also do a foreach($_GET as $k = $v) { echo $k.=.$v; } Sukanto Kho wrote: Hi, How to pass var array to other

Re: [PHP-DB] more detail..passing array_var with $_get

2004-04-26 Thread John W. Holmes
From: Sukanto Kho [EMAIL PROTECTED] My problem is I want to pass var array with $_get.. eg : $a=array() then i pass to other pages www.main.com?b=$a after that echo $b the result is array... just that... $safe = urlencode(serialize($a)); $url =

RE: [PHP-DB] more detail..passing array_var with $_get

2004-04-26 Thread Swan, Nicole
I thought I would mention that if you just echo or print an array, just the word array is shown. If you do a var_dump($myArray) on the array, the values should be shown. Otherwise you can get the values as follows: $myArray = $_GET[b]; //then get and print values foreach( $myArray as $num =

[PHP-DB] Re: passing var array

2004-04-26 Thread Andy Ladouceur
You can pass arrays via GET using the syntax: http://localhost/index.php?val[1]=oneval[2]=2...val[key]=value Andy Pete M wrote: http://localhost/index.php?val_one=oneval2=2 on index.php print_r($_GET) will show the array echo val l=.$_GET['val_one']; echo val 2=.$_GET['val2']; its CAse

[PHP-DB] login script

2004-04-26 Thread andy amol
hi, does anyone have a login script which will take data from the table and decide whether the given user is a admin or a normal user. thanks in advance. Also if there is some help on session variable I would like to know. - Do you Yahoo!? Win

Re: [PHP-DB] login script

2004-04-26 Thread Marcjon Louwersheimer
This is kind of a big thing. Email me and I'll give you instructions/tips on making it. - Original message - From: andy amol [EMAIL PROTECTED] To: php php [EMAIL PROTECTED] Date: Mon, 26 Apr 2004 17:15:27 -0700 (PDT) Subject: [PHP-DB] login script hi, does anyone have a login script