Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - speed

Pages: [1]
1
Programming / Re: lostpassword -> member.php?action=lostpassword
« on: May 07, 2012, 12:45:30 AM »

Auch das direkte eintragen der User ID bringt nichts!?
Also enter the user ID does not direct?
      $sql "UPDATE pk__user
              SET user_pw = '"
.md5($user_password)."';
              WHERE user_id = '5'"
;
      
$site_db->query($sql);

Was ist denn hier schon wieder falsch? Ich danke für Hilfe im Voraus
What's going on here wrong again? I am grateful for the help in advance

[/quote]

1. Debuggen in Sachen MySQL währe Sinnvoll.
2. '".md5($user_password)."'; ist nicht richtig, sondern so '".md5($user_password)."'  wie die anderen schon erwähnt haben.

$sql 
"UPDATE pk__user SET user_pw = '".md5($user_password)."' WHERE user_id = '5'";
print_r($sql); Wie sieht der String aus ?
$site_db->query($sql);







Pages: [1]