RE: [PHP-DB] password () function.

2004-06-10 Thread Miguel Guirao
OK, now I understand why it doesn't works under SQL Server.!!
Thanks!

P.S. Yes, I do hijacked someone else's thread. I won't do it again!
THANKS!


Miguel Guirao
Servicios Datacard
www.SIASA.com.mx

-Mensaje original-
De: Larry E. Ullman [mailto:[EMAIL PROTECTED] 
Enviado el: Jueves, 10 de Junio de 2004 10:13 a.m.
Para: Miguel Guirao
CC: [EMAIL PROTECTED]
Asunto: Re: [PHP-DB] password () function.

> Is this function, password() available at PHP Ander Windows?
>
> I get an undefinied function error message!

There is no PASSWORD() function in PHP. There is, however, a PASSWORD() 
function in MySQL and other database applications.

Larry

PS It looks like you hijacked someone else's thread, which you 
shouldn't do.

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



Re: [PHP-DB] password () function.

2004-06-10 Thread Larry E . Ullman
Is this function, password() available at PHP Ander Windows?
I get an undefinied function error message!
There is no PASSWORD() function in PHP. There is, however, a PASSWORD() 
function in MySQL and other database applications.

Larry
PS It looks like you hijacked someone else's thread, which you 
shouldn't do.

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


[PHP-DB] password () function.

2004-06-10 Thread Miguel Guirao
Is this function, password() available at PHP Ander Windows?

I get an undefinied function error message!

Miguel Guirao
Servicios Datacard
www.SIASA.com.mx

-Mensaje original-
De: James Harrell [mailto:[EMAIL PROTECTED] 
Enviado el: Jueves, 10 de Junio de 2004 09:50 a.m.
Para: Philip Thompson; [EMAIL PROTECTED]
Asunto: RE: [PHP-DB] HTTP header information

Hi Philip,

You'll probably want to move your session handling code to the
top of the main entry point of your application, rather than 
starting it in a sub-page. This way all subpages get the benefit
of being able to use the session data. Even if not strictly
necessary, the option is there in the event you add features
later on that require sessions throughout the application.

A possible alternative is to use output buffering, which allows
you to start a session even after output has been sent. Though
this is more likely a kludge rather than a good solution to the
problem.

James

>-Original Message-
>From: Philip Thompson [mailto:[EMAIL PROTECTED]
>Sent: Thursday, June 10, 2004 9:46 AM
>To: [EMAIL PROTECTED]
>Subject: [PHP-DB] HTTP header information
>
>
>Hi all.
>
>I am running a website to where a user needs to login to authenticate 
>themselves to perform certain tasks. So a user logs in, and I start a 
>session (in PHP, of course). Well, the catch is, I am doing this all 
>from one page, 'viewer.php', and I just tack on the specific view/page 
>that I want them to see, depending on the link selected on that page. 
>Meaning, they click on the 'submit problem' link and it goes to 
>'viewer.php?type=submitproblem'.
>
>The problem comes whenever I load the view 'submitproblem' and I start 
>a session with session_start(), which carries over the variable to tell

>whether or not the user is logged in. If they have not logged in 
>whenever they click on 'submitproblem' then it will redirect them to 
>'viewer.php?type=login'. So I log in, and then go to 'submitproblem'.
>
>This is where I get the error: "Warning: session_start(): Cannot send 
>session cookie - headers already sent". Essentially, I understand why 
>this is occurring, but is there an easy way to get around it without 
>creating a new page, such as 'submitproblem.php' instead of 
>'viewer.php?type=submitproblem'???
>
>Thanks a bunch
>~Philip
>
>-- 
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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

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



[PHP-DB] 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 Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php