Jump to content

setting mysql result as php session


whelpton

Recommended Posts

Hey guys,

 

Currently Im using:

 

$row = mysql_fetch_array($result) or die(mysql_error());

echo $row['user_family']. " - ". $row['user_registered'];

$row['user_family'] = $fam;

$_SESSION['family'] = $fam;

 

to take data from a mysql table & set it as SESSION family. However, I cant seem to get this to set.

 

The information IS being taken from mysql because its being echo'd earlier up in the code, but its just not passing to the session.

 

Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/229382-setting-mysql-result-as-php-session/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.