Please someone should help me on this..thanks..Alot

Download Now
  • Date: Dec 22, 2013

And by crown you mean? An image?
What. Code language are you using?
Don't you have any code you have started with?

  • Date: Dec 22, 2013

Yes i mean image (crown).. And i dnt knw d code 2 do that..plz help

  • Date: Dec 22, 2013

If you only just want to display the image
Beside name without any codes for login and detect user etc..

Just add <p><img src="crown.jpg">Admin</p>

  • Date: Dec 22, 2013


The language code is php <?

Set4ree

Do you just want to display the image alone or?
For example...if I log in your website as a normal user
I will see let's say a car image beside my name.
But for the admin a crown will show..

  • Date: Dec 22, 2013

Web Platforms are differ wat differenciate user to admin in ur users database table? Get me dis so as to knw wat to do

  • Date: Dec 22, 2013

Guy na d code i need and were to insert d code...make una help me na...

  • Date: Dec 22, 2013


Web Platforms are differ wat differenciate user to admin in ur users database table? Get me dis so as to knw wat to do

Trustwordi1

he wants u to define crown for each user rank.

  • Date: Dec 22, 2013



Web Platforms are differ wat differenciate user to admin in ur users database table? Get me dis so as to knw wat to do

Trustwordi1

he wants u to define crown for each user rank.

hakz

na 4 func.php

  • Date: Dec 22, 2013

Ok, here's the code assistance I can come up with
BUT its now left to you to tweak it to suit the rest of your codes.

//for example let's say have a table called 'users'.
// and you have a column called 'level'
// then you store 1 for admin and 0 for normal members.
//After user has logged in succesfully..in your homepage script.
//Add this code
<?php
// fetch information from database
$query ="Select `level` From `users` where `username`='$loggedinuser';
$result = mysql_query($query);
//now remember 1 is admin and 0 is members.
If($result == 0){
Echo "<p><img src="avatar.jpg">normal USER</p>";
}
Elseif($result == 1){
Echo <p><img src="crown.jpg" alt="crown image"> ADMIN</p>
}

Pls note...make sure to change
1.Database table name
2.Column name to the one in your table
3. Img source.

This is my short simple version according to what I understand for what you need

  • Date: Dec 22, 2013
  • Edited: Dec 22, 2013 by Set4ree

Thank's Alot...but can you/anyone please help me Edit ma func.php and add the code dere...am using pbnl-v2_3 script...thanks:.

func.php (11KB) [31 views]
‹‹12››
Viewing Page 1 of 2 pages