fortnox007 Posted September 24, 2010 Share Posted September 24, 2010 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 Quote Link to comment Share on other sites More sharing options...
snallemap Posted September 24, 2010 Author Share Posted September 24, 2010 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 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 Quote Link to comment Share on other sites More sharing options...
fortnox007 Posted September 24, 2010 Share Posted September 24, 2010 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 Quote Link to comment Share on other sites More sharing options...
fortnox007 Posted September 24, 2010 Share Posted September 24, 2010 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 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 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. Quote Link to comment Share on other sites More sharing options...
snallemap Posted September 24, 2010 Author Share Posted September 24, 2010 True thing thank you alot for helping me out Quote Link to comment Share on other sites More sharing options...
fortnox007 Posted September 24, 2010 Share Posted September 24, 2010 True thing thank you alot for helping me out : ) no problem! But i won't say it was a pleasure haha Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.