Jump to content

variables,if else statements


adamriley

Recommended Posts

Hi could someone tell me if this is posible what i need is for example there is a variable named ($username) what i want is to display the users name which would be ($name) there are two users all together how would you do this by doing something like "if $username == adamriley $fullname =adam lee riley else $fullname=nathan" i have tryed the above but Im new to php Im really sorry for not using the code tags but im on a mobile

Link to comment
https://forums.phpfreaks.com/topic/186824-variablesif-else-statements/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.