PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

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 Codewalkers Forums Sponsor:
  #1  
Old August 21st, 2002, 01:46 PM
mandy mandy is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 6 mandy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
after login

i have set cookies after user login and get their login info.....
then i have a function that user can update their data.....
but i failed to do that......
i have use cookies and get user info from database......but when user update their info......database is still the old info.....it didnt change anything,

the code is like that:
note: "visitor" is cookies as user login email

<?

if ($visitor){
mysql_connect("localhost", "root");
mysql_select_db("applicant") ;
$result = mysql_query("select * from applicant_profile where ae_mail='$visitor'");

if ($Submit){

if ($password==$confirm){

$sql = "UPDATE applicant_profile SET a_password='$password',
a_name='$name', a_address='$address', a_phone='$phone',
a_salary='$salary' , WHERE ae_mail=$email";

$result = mysql_query($sql);

?>

<h3> successfuly update </h3>
<?php
}
else
{
echo"password mismatch";

}

}
} ?>

Reply With Quote
  #2  
Old August 21st, 2002, 05:41 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: after login

are you resetting the cookies after they update their info?

Reply With Quote
  #3  
Old August 21st, 2002, 07:33 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: after login

how it resetting? what i need to do and get the cookies again?

Reply With Quote
  #4  
Old August 22nd, 2002, 05:45 AM
siteworkspro.com siteworkspro.com is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Sydney, Australia
Posts: 92 siteworkspro.com User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to siteworkspro.com Send a message via AIM to siteworkspro.com
RE: after login

its not to do with cookies

your query had an error in it, try this instead

$sql = "UPDATE applicant_profile SET a_password='$password',
a_name='$name', a_address='$address', a_phone='$phone',
a_salary='$salary' WHERE ae_mail=$email";

Reply With Quote
  #5  
Old August 22nd, 2002, 06:16 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: after login

i already del the comma, also cannot worked it.....i already spend a lot of time debug it, still can't get this......anybody help me?

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > after 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 6 hosted by Hostway