This is a discussion on "Hey need some help please :)" within the PHP Forum section. This forum, and the thread "Hey need some help please :) are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Hey need some help please :)
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Hey need some help please :)
Ok well I'm helping a mate with a site www.allhopedeleted.com/site/ ok and I want to add in the member list a VIP title the way the other titles work is by the perm field in the database and the super field like so
and yes the said user I'm testing on was given the value vip. Thanks in advance for help |
|
|
|
|||
|
Re: Hey need some help please :)
Did you change the value in your database?
btw would you please rephrase your entire post?
Last Blog Entry: Cross browser nuisance (Feb 11th, 2008)
|
|
|||
|
Re: Hey need some help please :)
You might find that solves the issue. In Php the variable if a text string needs putting within quotes where as numbers do not. If that doesn't solve it then it may also be something to do with the code before the elseif. |
|
|||
|
Re: Hey need some help please :)
I'm afraid quotes doesn't work. And the code before it works.
This is all the code for ranks.
|
|
|||
|
Re: Hey need some help please :)
Ok well I am taking it you are copying the previous.
I don't understand the user sending the vip bit? The previous code looks like it is checking against a database. Therefore the database obviously has a perm row which it is grabbing. So by adding the row rank you are setting people can be called vip or some other yes? So given your code you would have to check some things: Firstly you have a "rank" row in the db results to check against and this is set to vip (this is why i don't understand the passing by the user bit because then it would be a POST var no?) Secondly the rank for the user being checked does in fact = vip and they they are not set as a super user i.e. $row['super'] == no Thirdly if those things are there then check the code doing the search on the database. If this is a thirdparty script then highly likely that the whole row set isn't being returned and therefore the rank variable isn't present? These are all just guesses really but you need to be logical about going through why its not working. Without seeing the whole code for the query and that the database is correct then its difficult to narrow it down further based on what is provided. |
|
|||
|
Re: Hey need some help please :)
I've correctly sorted all those points and the issue is still occuring :/
|
|
|||
|
Re: Hey need some help please :)
Have you tried
|
![]() |
| Thread Tools | |
|
|