[PHP] Embedding image a PHP file

2002-12-29 Thread empty
Hi

Anybody knows how to embed a image file to a php file, not as html;

for example;



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] real password value

2002-12-13 Thread empty
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] printing array

2002-12-02 Thread empty
Hi

//Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in 
D:\sites\c\htemp.php on line 12
echo ""
}
?>

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




Re[2]: [PHP] Decrypt Password

2002-11-26 Thread empty
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




Re[2]: [PHP] strings and vars

2002-11-23 Thread empty
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




[PHP] strings and vars

2002-11-23 Thread empty
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




[PHP] session trouble

2002-11-22 Thread empty
hi guys ;

 I can't use session bla..as on my site.
PHP Code

...
 
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] checkboxes

2002-11-22 Thread empty
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:

...

  AAA


  SSS

...


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] thanks :)

2002-11-21 Thread empty
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] mysql_num_rows

2002-11-21 Thread empty
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_row>0) 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