MyBB Support

Usergroup page

Submitted by linkzy, , Thread ID: 11836

Thread Closed
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

#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

#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

OP
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

#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: 3 Guest(s)