Jump to content

Session Issue


mcmuney

Recommended Posts

I'm using the code below to display new members to my site.
PROBLEM: It works, but ONLY when I'm logged in. When I logout, it displayes blanks. I don't have and sessions code on here. I tried adding it, it still doesn't work.
QUESTION: What am I missing?

[code]
  <?

$days_val=1;

$sec=$days_val*86400;



$curr_time=time();

$maxtime=$curr_time-$sec;



$sql = "select s1.* from sc_member s1,sc_member_images s2 where s1.scm_mem_id!=$social_mem_id and s1.scm_mem_id=s2.scm_mem_id and s2.sci_main=1 and s1.scm_regdate>$maxtime order by rand() limit 0,2";

$new_mem = $db->select_data($sql);

for ($i=0 ;$i< count($new_mem);$i++ )

{

?>

<?

$imgpath=$db->show_mem_image($new_mem[$i]['scm_mem_id'],$new_mem[0]['scm_gender'],1);

?>
  <a href="social_mem_profile.php?scm_mem_id=<?=$new_mem[$i][scm_mem_id]?>" class=border>

<img src="gd.php?pic=<?=$imgpath?>&w=100&h=75&enlarge=yes" width=100 height=75 border=1 class=border></a>

              <?

  }//for

  ?>
[/code]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.