PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
PatelNehal
Forum Newbie
Posts: 21 Joined: Mon Mar 23, 2009 7:27 am
Location: Gujarat, India
Post
by PatelNehal » Fri Jul 03, 2009 3:50 pm
$_SESSION['domains'] array :
Code: Select all
Array
(
[myname1.co.in] => Array
(
[status] => available
[classkey] => thirdleveldotin
[Price] => 411.76
[Currency] => INR
[timeperiod] => 1
)
[myname2.com] => Array
(
[status] => available
[classkey] => dotin
[Price] => 751.26
[Currency] => INR
[timeperiod] => 1
)
)
now i want to delete the second record for from the session array how to do it...???
jackpf
DevNet Resident
Posts: 2119 Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK
Post
by jackpf » Fri Jul 03, 2009 4:07 pm
PatelNehal
Forum Newbie
Posts: 21 Joined: Mon Mar 23, 2009 7:27 am
Location: Gujarat, India
Post
by PatelNehal » Sat Jul 04, 2009 1:49 am
Thank you Mr. jackpf but its not working....!!!!
I am storing an array in session which name is domains and its also contain arrays
$_SESSIONI['domains']
Code: Select all
[domains] => Array
(
[myname1.co.in] => Array
(
[status] => available
[classkey] => thirdleveldotin
[Price] => 411.76
[Currency] => INR
[timeperiod] => 1
)
[myname2.com] => Array
(
[status] => available
[classkey] => dotin
[Price] => 751.26
[Currency] => INR
[timeperiod] => 1
)
)
requinix
Spammer :|
Posts: 6617 Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA
Post
by requinix » Sat Jul 04, 2009 2:27 am
Okay... so...
Code: Select all
unset($_SESSION['domains']['myname2.com']);
How do you expect to develop with PHP if you don't know the language?
PatelNehal
Forum Newbie
Posts: 21 Joined: Mon Mar 23, 2009 7:27 am
Location: Gujarat, India
Post
by PatelNehal » Sat Jul 04, 2009 2:53 am
ya its working now thanks a lot.