Software Design
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreSoftware Design

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 27th, 2003, 10:17 AM
mafandi mafandi is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: near me mr.php
Posts: 4 mafandi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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">

Reply With Quote
  #2  
Old March 1st, 2003, 12:47 PM
s001dxp's Avatar
s001dxp s001dxp is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: The Birth Place of Aviation
Posts: 297 s001dxp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 32 m 21 sec
Reputation Power: 7
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

Reply With Quote
  #3  
Old March 2nd, 2003, 08:43 AM
mafandi mafandi is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: near me mr.php
Posts: 4 mafandi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
O oooo really?

Hi!

Thanks a lot but How and where?

Reply With Quote
  #4  
Old March 2nd, 2003, 11:02 AM
s001dxp's Avatar
s001dxp s001dxp is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: The Birth Place of Aviation
Posts: 297 s001dxp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 32 m 21 sec
Reputation Power: 7
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 11:04 AM.

Reply With Quote
  #5  
Old March 6th, 2003, 03:34 PM
NickieMay NickieMay is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 4 NickieMay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
does anyone understand DOS here? I seriously DO NOT get it! help!

Reply With Quote
  #6  
Old March 6th, 2003, 03:39 PM
NickieMay NickieMay is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 4 NickieMay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
anybody here? i understand unix and all but i am fuzzy on DOS, anyone wanna clue me in?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreSoftware Design > how to retreive data that associated to USER login


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT