Re: [PHP-DB] changing output method

2005-02-28 Thread Micah Stevens
There's not enough information from your question to provide a good answer.. Where are you getting the data from? Is there more than one record available? -Micah On Monday 28 February 2005 11:05 pm, chintan wrote: > Hi forum > i have a simple problem > as im new to php how do i set the outpu

[PHP-DB] changing output method

2005-02-28 Thread chintan
Hi forum i have a simple problem as im new to php how do i set the output type from table to columner like below: CompanyName :Data Address :Data City:Data Zipcode :Data ... Please help me know that loop i tried very much but i was unable to find that out. -- PHP

RE: [PHP-DB] Referring web page

2005-02-28 Thread Bastien Koert
$_SERVER['HTTP_REFERER'] is what you want bastien From: "Ron Piggott" <[EMAIL PROTECTED]> To: "PHP DB" Subject: [PHP-DB] Referring web page Date: Mon, 28 Feb 2005 22:30:32 -0500 I want to change my question --- Is there a way to check the referring web page --- IE where the link came from and what

[PHP-DB] Referring web page

2005-02-28 Thread Ron Piggott
I want to change my question --- Is there a way to check the referring web page --- IE where the link came from and what would that variable name be? I mean this in the same fashion that $_SERVER['REMOTE_ADDR'] gives you the IP address of the user. Ron -- PHP Database Mailing List (http://www.ph

[PHP-DB] onClick

2005-02-28 Thread Ron Piggott
Another question: Is there a way that I may set up an IF command with the onClick function so that my_web_page.php3 will not be displayed unless a web form was used to generate it? Ron -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] PHP form processing

2005-02-28 Thread Martin Norland
Ron Piggott wrote: Is there a way to find out the IP address of the computer submitting a form --- other than through a cookie. Is there a header command or something like this? Ron Response: rtfm / wrong list Answer: for Apache, $_SERVER['REMOTE_ADDR']; Cheers, -- - Martin Norland, Sys Admin

[PHP-DB] PHP form processing

2005-02-28 Thread Ron Piggott
Is there a way to find out the IP address of the computer submitting a form --- other than through a cookie. Is there a header command or something like this? Ron -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Re: password in md5 to connect to mysql instead of clear password

2005-02-28 Thread Simon Rees
On Monday 28 February 2005 13:52, Gael Lams wrote: > Simon, I read your post regarding the use of a C > program and I would be interested in having some more > details as we started thinking about implementing > something similar. Unfortunately I've misplaced the program I'd used in the past to do

Re: [PHP-DB] Pear help

2005-02-28 Thread Martin Norland
Craig Hoffman wrote: Thanks for getting back to me... Comments below - On Feb 28, 2005, at 10:49 AM, Martin Norland wrote: Craig Hoffman wrote: Hi There, I'm trying to configure my OS X box to work with PEAR. Everything seems to be working (updating PEAR libraries, etc.) except when I run my tes

RE: [PHP-DB] MySQLPHP decrypt(password)

2005-02-28 Thread Bastien Koert
Password and MD$ return different values. They are not compatible. Since both are one way encryptions, you can not retrive the orginal value From: "moses Woldeselassie" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED], php-db@lists.php.net Subject: RE: [PHP-DB] MySQLPHP decrypt(password) Date: Mon, 28

Re: [PHP-DB] Pear help

2005-02-28 Thread Craig Hoffman
Thanks for getting back to me... Comments below - On Feb 28, 2005, at 10:49 AM, Martin Norland wrote: Craig Hoffman wrote: Hi There, I'm trying to configure my OS X box to work with PEAR. Everything seems to be working (updating PEAR libraries, etc.) except when I run my test script I get the fo

RE: [PHP-DB] MySQLPHP decrypt(password)

2005-02-28 Thread moses Woldeselassie
thank you. I do have login and registration script, which work fine. the problem is with new password. I am using password() to registrate a user. I did change in the change_password() md5() into password(), it changes the user password. I coud easliy see it in mysql db. but a user could not l

Re: [PHP-DB] Pear help

2005-02-28 Thread Martin Norland
Craig Hoffman wrote: Hi There, I'm trying to configure my OS X box to work with PEAR. Everything seems to be working (updating PEAR libraries, etc.) except when I run my test script I get the following error: Fatal error: Cannot redeclare class db in /usr/lib/php/DB.php on line 271 Here is my t

[PHP-DB] Pear help

2005-02-28 Thread Craig Hoffman
Hi There, I'm trying to configure my OS X box to work with PEAR. Everything seems to be working (updating PEAR libraries, etc.) except when I run my test script I get the following error: Fatal error: Cannot redeclare class db in /usr/lib/php/DB.php on line 271 Here is my test script: I've i

Re: [PHP-DB] How to emulate phpMyadmin for editing with checkboxes

2005-02-28 Thread Bret Hughes
On Thu, 2005-02-24 at 13:57, Mahmoud Badreddine wrote: > Thank you for your generous response. > I am almost there, but not quite. > > I changed my checkbox statement to looke like the following: > > > try ^ your not doing anything with $row Bret -- PHP Database Mailing List

Re: [PHP-DB] Re: password in md5 to connect to mysql instead of clear password

2005-02-28 Thread Gael Lams
Hi All, Thanks for all the answers received :-) I understand now that, if someone can read the md5 hash, he/she can connect. I will check later the certificate stuff. What I will do for time being will be to: - move the php connection file out of the web root - change the privileges so that only

Re: [PHP-DB] password in md5 to connect to mysql instead of clear password

2005-02-28 Thread Jason Wong
On Monday 28 February 2005 19:33, Simon Rees wrote: > You said in that post: "Set default MySQL user and password in your > virtual host container. Then connect to MySQL without specifying user > and password." > > Presumably the file which contains the virtual host directive is > readable by the

Re: [PHP-DB] password in md5 to connect to mysql instead of clear password

2005-02-28 Thread Simon Rees
On Monday 28 February 2005 10:52, Jason Wong wrote: > > If you don't need the flexibility of the custom program and would rather > make use of existing infrastructure: > > http://marc.theaimsgroup.com/?l=php-general&m=110137778213700&w=2 You said in that post: "Set default MySQL user and password i

RE: [PHP-DB] MySQLPHP decrypt(password)

2005-02-28 Thread moses Woldeselassie
Thank you Bastien It works fine, but i do have a problem with login. MySQL does not allowed the user to login. I did try to use sending email without using the change_password(), but it is sending different password each time: 1. Why is it sending different password for one user? 2. How could I

Re: [PHP-DB] password in md5 to connect to mysql instead of clear password

2005-02-28 Thread Jason Wong
On Monday 28 February 2005 18:44, Simon Rees wrote: > On Sunday 27 February 2005 20:53, Micah Stevens wrote: > > I think about as safe as you can get is by putting the connection > > data out of the served directory, somewhere that's not directly > > accessable, and concentrate on system integrity.

Re: [PHP-DB] password in md5 to connect to mysql instead of clear password

2005-02-28 Thread Simon Rees
On Sunday 27 February 2005 20:53, Micah Stevens wrote: > I think about as safe as you can get is by putting the connection data > out of the served directory, somewhere that's not directly accessable, > and concentrate on system integrity. (security wise) A refinement of this technique is availab