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
Old 07-04-2005, 09:27 PM session reg
bman's Avatar
Skilled Talker

Posts: 85
Location: USA
Trades: 0
Can anyone see what’s the problem here? None of my session variable are registering.

I have tran-sid turned on. And all my php configurations look good. So the q. what am I not doing?

Code:
$sql = "SELECT * FROM users WHERE email='$lpwemail'";
$rs = mysql_query($sql,$connection)or die("did not connect") ;
$abs = mysql_fetch_array($rs) ;

$mn = $abs['firstname'];
$em = $abs['email'];
$pw = $abs['passwd'];
$h = $abs['lpw'];
$g = $abs['lpwanw'];

session_register('$mn');
session_register('$em');
session_register('$pw');
session_register('$h');
session_register('$g');
bman is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-05-2005, 02:02 AM
bman's Avatar
Skilled Talker

Posts: 85
Location: USA
Trades: 0
Thanks all!

Found it,

Syntax
Code:
$_SESSION['mn'] = $mn;
$_SESSION['em'] = $em;
$_SESSION['pw'] = $pw;
$_SESSION['h'] = $h;
$_SESSION['g'] = $g;

Last edited by bman; 07-05-2005 at 02:07 AM..
bman is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to session reg
 

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.40480 seconds with 12 queries