[PHP] mysql password function

2002-09-22 Thread Murat Ö.

hi,
i want to encode a string that users enter with mysql password function. but
sometimes this code works sometimes don't. mysql warns me:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
resource in 

the code is:

$result=mysql_query(select password(.$_POST['password'].));
  while ($p = mysql_fetch_array($result, MYSQL_ASSOC)):
  $pswrd=$p['password('.$_POST['password'].')'];
  endwhile;

thanks...




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] closing browser's window

2002-09-22 Thread Murat Ö.

hi,

is it possible to close client's browser's window from php script?

thanks...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] accessing session variables

2002-09-21 Thread Murat Ö.

hi,

page1.php creates a session and its variables in it in  successfully. the
variables and values are created like
$_SESSION['x']='abc'

 page1.php sends the SID information to page2.php via GET method. how can i
access the those variables with SID information in page2.php?

thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] accessing session variables

2002-09-21 Thread Murat Ö.

i tried but it didn't work.
i wrote in page2.php:

?php
session_start();
echo $_SESSION['isim'];
?

and i was noticed: Undefined index: isim in .

but i have written $_SESSION['isim']='murat' in page1.php



Sascha Cunz [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Just use the session_start() in the second page and they will be magically
there where you've put them in the first page.

Sascha

Am Samstag, 21. September 2002 17:01 schrieb Murat Ö.:
 hi,

 page1.php creates a session and its variables in it in  successfully. the
 variables and values are created like
 $_SESSION['x']='abc'

  page1.php sends the SID information to page2.php via GET method. how can
i
 access the those variables with SID information in page2.php?

 thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] accessing session variables

2002-09-21 Thread Murat Ö.

i have written

ini_set(session.name, SID);

before, in page1.php. and i've added it on page2.php before session_start
and it works.

thanks..



Murat Ö. [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 i tried but it didn't work.
 i wrote in page2.php:

 ?php
 session_start();
 echo $_SESSION['isim'];
 ?

 and i was noticed: Undefined index: isim in .

 but i have written $_SESSION['isim']='murat' in page1.php



 Sascha Cunz [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Just use the session_start() in the second page and they will be magically
 there where you've put them in the first page.

 Sascha

 Am Samstag, 21. September 2002 17:01 schrieb Murat Ö.:
  hi,
 
  page1.php creates a session and its variables in it in  successfully.
the
  variables and values are created like
  $_SESSION['x']='abc'
 
   page1.php sends the SID information to page2.php via GET method. how
can
 i
  access the those variables with SID information in page2.php?
 
  thanks





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php