#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    near me mr.php
    Posts
    4
    Rep Power
    0

    how to retreive data that associated to USER login


    Hi!

    i have some task to do in my project

    1) provide login screen to user for LOGIN, i got the code using html, username and password are reffered to mySQL DATABASE: LOGIN
    Code:
    <!doctype html public "-//W3C//DTD HTML 4.0 //EN"> 
    
    <html>
    <head>
           <title>Login Page!</title>
    </head>
    <body bgcolor=#008080>
    <center><?php echo $errmsg;
    
    ?></center>
    <p align="center"><b>LOGIN SESSION FOR ADMINISTRATOR</b></p>
    <form method="post" action="loginsession1.php">
    <div align="center">
      <center>
    <table width="50%" border="1" cellspacing="0" cellpadding="0">
    <tr>
    <td>username</td>
    <td>
    <input type="text" name="username">
    </td>
     </tr>
     <td>Password</td>
     <td>
     <input type="password" name="password">
     </td>
     </tr>
     <tr>
     <td>&nbsp;</td>
     <td>
     <input type="submit" name="submit" value="submit">
     </td>
     </tr>
     </table>
      </center>
    </div>
     </form>
     </body>
     </html>

    2. The user those login with their username and password , only can VIEW their personal data related to USERNAME , for example the user can get a data like this-->

    userID | username | status | location

    from database STUDENT.

    3. How can i do this with php? WHAT SHOULD I DO IN loginsession1.php from.....

    <form method="post" action=""loginsession1.php">
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Location
    The Birth Place of Aviation
    Posts
    297
    Rep Power
    13
    I could just give you some code, but without knowledge of the code or PHP it'll be pointless, because you would have to modify it to fit your site.

    I would suggest you search the web for tutorials on using MySQL and PHP together.

    However, if you don't care about learning, but just want it done, I can do everything you need done for a small fee.

    Port
    "We know that all things work together for good for those who love God, who are called according to his purpose." Romans 8:28
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    near me mr.php
    Posts
    4
    Rep Power
    0

    O oooo really?


    Hi!

    Thanks a lot but How and where?
  6. #4
  7. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Location
    The Birth Place of Aviation
    Posts
    297
    Rep Power
    13
    i'd be remiss if I didn't tell you to look here:

    http://www.devshed.com
    but there are also many other places, I would go to a search engine and place PHP tutorials in the search.

    Also, if you repost your post in the PHP forum, which is the proper forum for this question, others may be will to do it for you.

    Port
    Last edited by s001dxp; March 2nd, 2003 at 12:04 PM.
    "We know that all things work together for good for those who love God, who are called according to his purpose." Romans 8:28
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    4
    Rep Power
    0
    does anyone understand DOS here? I seriously DO NOT get it! help!
  10. #6
  11. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    4
    Rep Power
    0
    anybody here? i understand unix and all but i am fuzzy on DOS, anyone wanna clue me in?

IMN logo majestic logo threadwatch logo seochat tools logo