Jump to content
MakeWebGames

Recommended Posts

Posted

Hello All,

Could someone please explain how I would edit header.php in v2 exactly so I can change the background if a player was in jail/hospital.

I am new to php so if you can do it step by step it would be appreciated.

Posted

Re: Changing Header.php V2

 

Hello All,

Could someone please explain how I would edit header.php in v2 exactly so I can change the background if a player was in jail/hospital.

I am new to php so if you can do it step by step it would be appreciated.

Here I haven't tested it..

if($ir['hospital'] > "0")
{ $bgcolor = 'red'; }
elseif($ir['jail'] > "0")
{ $bgcolor = 'green'; }
else
{ $bgcolor = 'black'; }
echo '<body bgcolor="'.$bgcolor.'">';

 

Just remember i havent tested this just done it quickly on here..

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...