[PHP] real password value
Hi all; do you know how to decrypt password('xxx'); value? For example I have a function that mails password to user's mail address but result is here; User Name: xjunky Password :1ef781ad7c4b0dc2 Thanks. I've inserted the password as password('$passw'); and selected as belove function notify_password($username,$email){ if (!($conn = db_connect())) return false; $result = mysql_query(select email,pass from site_members where User_Name='$username' and email='$email'); $email = mysql_result($result, 0, email); $password=mysql_result($result, 0, pass); $from = From: [EMAIL PROTECTED] \r\n; $mesg = User Name: $username\r\n .Password : $password \r\n .Thanks.\r\n; if (mail($email, Password Information, $mesg, $from)){ return true; }else{ return false; } } how to send the true value of th password? thanks everybody who cares with it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Embedding image a PHP file
Hi Anybody knows how to embed a image file to a php file, not as html; for example; img src=yy.php / embedding a image file in yy.php file. Thanks everybody -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mysql_num_rows
Hi guys; I have a problem (or mistake(s)); for this code 39| $result=mysql_query(slecet * from site_members where User_Name='$username'); 40| $num_row=mysql_num_rows($result); 41| if($num_row0) echo(error 46); as a reult I have unsolved error in my hands :( Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in D:\sites\inc\register.inc on line 40 NOTE: all the fields on the db are empty anybody knows why? (PHP 4.2.3 SAPI - MySql 3.23.53 - IIS 5.0 running on WinXP) thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] thanks :)
ooww there is nothing slecet in mysql :) thanks all -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] checkboxes
Hello; I want to do that: I have two checkboxes: if first one is checked assign the value as a; if first one is checked assign the value as s; if both of them checked assign th value as as and insert the result db; the html code: ... tr tdinput type=checkbox name=val value=a / AAA/td /tr tr tdinput type=checkbox name=val value=s / SSS/td /tr ... and the PHP code: $eval=''; if(isset($val)){ if(isset($val[0]) isset($val[1])) $eval=as; if(isset($val[0]) !isset($val[1])) $eval=a; if(!isset($val[0]) isset($val[1])) $eval=s; $sql=insert into maillist (ID, postmeth) values ('$id_no','$eval'); $result=mysql_query($sql); if(!$result) echo(ERROR); } I can't understand what is wrong; Thanks everybody -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] session trouble
hi guys ; I can't use session bla..as on my site. PHP Code ?php session_register(); if(isset($username) isset($pass)){ if(login($username,$pass)){ $valid_user=$username; session_start(valid_user); do_html_url(/,Ana Sayfa); }else{ echo(Teknik bir sorun nedeniyle giriþ iþleminiz gerçekleþtirilemiyor. Lütfen Daha sonra tekrar deneyiniz3.); } } else{ ? ... Warning: Cannot send session cache limiter - headers already sent (output started at D:\sites\inc\register.inc:23) in D:\sites\uyelik\login.php on line 90 I cant understand and solve the warning message, what is it? thanks all. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] strings and vars
Hi; i have a string and I want to set it as a variable name. like tahat i have string like: string; how can i get variable $string; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[2]: [PHP] strings and vars
yiihhuuuvvv it works; I heard it, i remember variable variables I guess Thanks all EEV $var = 'string'; EEV $$var will resolve as $string -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[2]: [PHP] Decrypt Password
Hi you can use password('password_var_name') for example (insert into bla password('$password')); and after selecting the password you can use and no need encrypt decrypt the value echo(password('password')); will write the real value... I would like to make a Lost Password part to my member's area script but the problem is, the passwords in the database are encrypted using the password function. How could I decrypt it for a lost password thing? CB You don't. You create some sort of mechanism to allow them to change CB their password. CB Chris Özgür [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] printing array
Hi ?php $stra=(aa,bb,cc,dd,ee,ff,gg,hh,ii,jj,kk,ll); $splited = array(); $splited = split(,,$stra); $c=count($splited); for($i=0 ; $i$c ; $i+=2){ echo $splited[$i]; echo $splited[$i+1]; // *error is here //Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in D:\sites\c\htemp.php on line 12 echo br } ? I want to see on the screen is that aabb ccdd eeff gghh iijj kkll but the code above says wrong :( Can you help me? Thanks everybody. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php