PHP

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentPHP

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old January 18th, 2016, 09:59 AM
johnberman johnberman is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Jan 2016
Posts: 1 johnberman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 38 sec
Reputation Power: 0
PHP Newbie questions

Hi

Im pretty new to php and need to do the following

Get 2 bits of data from a session array

And then assign them to 2 new variables and echo on to the screen I have read all the forums and came up with this

So I got the session info

I have managed to find were the information is stored with the Session variables

ie

Session Class (start):
$_SESSION:
Array
( [session] => Array
(
[user_id] => 38
[initialized] => 1
[type_id] => 1
[username] => ana
)
Session Class (end)

so I did this

<?php

echo "userid = ".$_SESSION['userid'];
echo "initialized = ".$_SESSION['initialized'];
echo "type_id = ".$_SESSION['type_id'];
echo "username = ".$_SESSION['username'];

$userid = $_SESSION['userid'];
$initialized= $_SESSION['initialized'];
$type_id = $_SESSION['type_id'];
$username= $_SESSION['username'];

echo "userid = " $userid;
echo "initialized = " $initialized;
echo "type_id = " $type_id;
echo "username = " $username;
?>

I think im close and probably syntax is an issue ?

Regards

John B

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentPHP > PHP Newbie questions


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap