If username = then: Revision

A simple way to run code for only 1 username...

<?php
if ($_SESSION['user']->username == "Myuser")
  echo "<p>HTML CODE</p>;
?>

Ben Potter

Web Developer, Networking, and elgg enthusiast. Began developing elgg plugins @ 11 years.

History