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

Link to comment
Share on other sites

  • Replies 55
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

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.