MyBB Support

Usergroup page

Submitted by linkzy, , Thread ID: 11836

Thread Closed
linkzy
No pressure, no diamonds
Level:
0
Reputation:
181
Posts:
5.34K
Likes:
341
Credits:
54
25-10-2015, 07:16 PM
This post was last modified: 25-10-2015, 07:18 PM by linkzy
#1
hello.
i would like to know how to make a usergroup page using php queries. like when i put the gid. it shows the group in the page. [Similar to Staff page]
Thanks

[no need of spoon feeding. i only need some ideas Tongue ]
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |


RE: Usergroup page

Addicted
Freak
Divine
Level:
0
Reputation:
105
Posts:
2.77K
Likes:
130
Credits:
9.94K
25-10-2015, 07:24 PM
#2
Not exactly sure what you are looking for.

You could do something like this

PHP Code:
$group 1;
$query $db->simple_select("usergroups","*","gid=$group");

$groupname $db->fetch_field($query"title"); 

RE: Usergroup page

Sozin
Nan Ihier Gelair Mordor
Divine
Level:
0
Reputation:
91
Posts:
2.33K
Likes:
375
Credits:
11K
25-10-2015, 07:25 PM
#3
[pre]$query = $db->simple_select("usergroups");
while($row = $db->fetch_array($query))
{
//huehuehue
}
[/pre]
Do not let your difficulties fill you with anxiety, after all it is only in the darkest nights that stars shine more brightly. - Ali(a.s)

Developer( PHP, Python, C++, HTML+CSS, JS I am available for Hire. Message Me for details.

RE: Usergroup page

linkzy
No pressure, no diamonds
Level:
0
Reputation:
181
Posts:
5.34K
Likes:
341
Credits:
54
OP
25-10-2015, 07:26 PM
This post was last modified: 25-10-2015, 07:26 PM by linkzy
#4
25-10-2015, 07:24 PM
Addicted Wrote:
Not exactly sure what you are looking for.

You could do something like this

PHP Code:
$group 1;
$query $db->simple_select("usergroups","*","gid=$group");

$groupname $db->fetch_field($query"title"); 

Thanks

25-10-2015, 07:25 PM
Sozin Wrote:
[pre]$db->simple_select("usergroups");[/pre]

Thanks mate Smile


Got the idea. closing thread
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |


RE: Usergroup page

Sozin
Nan Ihier Gelair Mordor
Divine
Level:
0
Reputation:
91
Posts:
2.33K
Likes:
375
Credits:
11K
25-10-2015, 07:27 PM
#5
I updated my post.
Do not let your difficulties fill you with anxiety, after all it is only in the darkest nights that stars shine more brightly. - Ali(a.s)

Developer( PHP, Python, C++, HTML+CSS, JS I am available for Hire. Message Me for details.


Users browsing this thread: 1 Guest(s)