Jump to content

Appear under differnet headlines


snallemap

Recommended Posts

hmm, but we are a step closer now aren't we ::)

let me think about this, and maybe you should think about it too

 

-edit Could you go into phpmyadmin or in your database and completly remove the 4 in the field I have the feeling it might have a space

ctrl+ A delete and than add a 4

 

and than run it again

  • Replies 55
  • Created
  • Last Reply

Yep we are one step closer indeed :), After changing my status in the database to test out what would happen i found out that even if i put my status to 5 i will still be under the honored members, i believe that for some reason it goes from 2 and up or something?... And then 4 cant get in action :P

 

 

I changed the switch:

 

      switch ($row['status']){
      case '1':
      $memberLinks .= "<a href=\"profile.php?id=".$row['id']."\">".$row['username']."</a>\n\r";
      break;
      case '2':
      $honoredLinks .= "<a href=\"profile.php?id=".$row['id']."\">".$row['username']."</a>\n\r";
      break;
      case '3':
      $honoredLinks .= "<a href=\"profile.php?id=".$row['id']."\">".$row['username']."</a>\n\r";
      break;
      case '4':
      $adminLinks .= "<a href=\"profile.php?id=".$row['id']."\">".$row['username']."</a>\n\r";
      break;

 

 

And now it works just like it should :) thank you alot :D

hmm, but we are a step closer now aren't we ::)

let me think about this, and maybe you should think about it too

 

-edit Could you go into phpmyadmin or in your database and completly remove the 4 in the field I have the feeling it might have a space

ctrl+ A delete and than add a 4

 

and than run it again

Yep we are one step closer indeed :), After changing my status in the database to test out what would happen i found out that even if i put my status to 5 i will still be under the honored members, i believe that for some reason it goes from 2 and up or something?... And then 4 cant get in action :P

 

 

I changed the switch:

 

      switch ($row['status']){
      case '1':
      $memberLinks .= "<a href=\"profile.php?id=".$row['id']."\">".$row['username']."</a>\n\r";
      break;
      case '2':
      $honoredLinks .= "<a href=\"profile.php?id=".$row['id']."\">".$row['username']."</a>\n\r";
      break;
      case '3':
      $honoredLinks .= "<a href=\"profile.php?id=".$row['id']."\">".$row['username']."</a>\n\r";
      break;
      case '4':
      $adminLinks .= "<a href=\"profile.php?id=".$row['id']."\">".$row['username']."</a>\n\r";
      break;

 

 

And now it works just like it should :) thank you alot :D

 

That was the next thing i would have done : ) but it thought if you have 4 + a space it would result in an invalid value for the switch ::)  Well I am glad this done.

 

Just next time you have a problem. Test every piece and any result first, than move to the next step and so on. That way you know what parts work as is. Just like lego, each piece should work.

 

 

Btw. you could add a default to the switch in case $row['status'] != 1 ,2 ,3 or 4.

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.