Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Reply to Thread

Post a reply to the thread: HOW DO I MAKE THIS PHP SCRIPT WORK?

Your Message

Click here to log in

In what corner do we have Search box?

 
 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Rate Thread

You may rate this thread from 1-star (Terrible) to 5-stars (Excellent) if you wish to do so.

Topic Review (Newest First)

  • 11-29-2012, 01:15 PM
    Hallo

    HOW DO I MAKE THIS PHP SCRIPT WORK?

    <?php
    session_start();
    require_once("login.php");
    // Check his status.
    if (!empty($_SESSION['username' == 'test'])) // he got it.
    {
    echo " Hello Test Welcome";
    }
    else // bad info.
    {
    echo " ";
    }

    ?>

    its a script for only a member named Test in my database and he has to be logged in to use it so how would i make this work?

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •