Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP Sessions And PHP Variables
Old 02-07-2009, 04:19 AM PHP Sessions And PHP Variables
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
I seem to have a problem where if i set the sessions $_SESSION['team'] = "xxxx"; and then set a php variable $team = "yyy"; the php varible overides the sessions and displays either nothing or "array";

Any ideas on whats causing it???
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
 
Register now for full access!
Old 02-07-2009, 06:45 AM Re: PHP Sessions And PHP Variables
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
Can you show us the exact code you are using?
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 02-07-2009, 07:10 AM Re: PHP Sessions And PHP Variables
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
Theres loads of code!..... Here's a snippet. The sessions are on a different page to the variables aswell.

PHP Code:
// User Details
$sql mysql_fetch_array(mysql_query("SELECT * FROM `manager__login` WHERE `username` = '" $_SESSION['loggedin'] . "'"));
$_SESSION['id'] = $sql['id'];
$_SESSION['email'] = $sql['email'];
$_SESSION['userlevel'] = $sql['userlevel'];
$_SESSION['team_id'] = $sql['team_id'];
$_SESSION['rank'] = $sql['rank'];
$_SESSION['change_ban'] = $sql['change_ban'];
$_SESSION['joined_club'] = $sql['start'];
$_SESSION['wage'] = $sql['wage'];
$_SESSION['contract'] = $sql['contract'];
$_SESSION['experience'] = $sql['experience'];

$team_id mysql_fetch_array(mysql_query("SELECT * FROM `manager__applications` WHERE `team_id` = '" $_SESSION['team_id'] . "'")); 
If i echo $_SESSION['team_id'] i get array.
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
Reply     « Reply to PHP Sessions And PHP Variables
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.47014 seconds with 12 queries