Hi,
I'm having trouble designing a good html-form/MySQL combination for an
access rights system.
I'm having three tables in MySQL: members (with member information for my
site), albums (with information for separate albums with digital photos on
my site) and accessrights (which should
On Sunday 02 February 2003 22:57, anders thoresson wrote:
I'm having trouble designing a good html-form/MySQL combination for an
access rights system.
[snip]
You may want to have a look at this:
http://phpgacl.sourceforge.net
It seems to provide a very comprehensive system for setting
Hi,
I've got a html form where not all fields need to be filled by the users.
How can I build a MySQL query based on which fields the user have filled?
My guess is that I can do something like this:
if(!empty($f_name)) {
some_commands_to_add_$f_name_to_querystring
}
if(!empty($l_name))
Hello All:
I am using PHP and MySQL in my application. I need to be able to allow
ONLY authorized users access to some pages in the site. For this I am
creating a session variable ''$valid_user, after the user has
successfully authenticated himself with the Database. The pages that
need to be
and
either included() or fopened() into the PHP script that has authenticated
the user.
-Kevin
- Original Message -
From: Pushpinder Singh Garcha [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 31, 2003 3:09 PM
Subject: [PHP] Help Needed
Hello All:
I am using PHP and MySQL
PROTECTED]
To: Pushpinder Singh Garcha [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Monday, January 27, 2003 11:02 PM
Subject: Re: [PHP] help needed with session variables
Are you sure $first_name and $last_name have a value? Double check...
---John Holmes...
- Original Message -
From
pass it one value at the time:
session_register(valid_user);
session_register(firstname);
session_register(lastname);
Another recommended method is to use superglobal variable $_SESSION. You
can then simply do:
$_SESSION['valid_user'] = $login;
$_SESSION['firstname'] = $first_name;
Isnt it better to do it in this way?
Better than what?
session_start();
session_register('USER');
$USER['valid'] = true;
$USER['firstname'] = $first_name;
$USER['lastname'] = $last_name;
Then I really know what I am doing!
It's personal preference... whatever you understand.
I'd
hello,
I am making use of sessions in my PHp/MySQL Database application. When
the user is successfully authenticated against the database, a session
is created in following manner:
session_register(valid_user,firstname,lastname);
$valid_user = $login;
$firstname = $first_name;
Are you sure $first_name and $last_name have a value? Double check...
---John Holmes...
- Original Message -
From: Pushpinder Singh Garcha [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 27, 2003 4:44 PM
Subject: [PHP] help needed with session variables
hello,
I am
hello all
I am using php and mysql in my web application. I am making use of
forms to accept data from the user and add it to the mysql database. I
also have a login system in place. I need to create a way for the user
to edit the information that he/she entered. Can you suggest a way I
can
Look at UPDATE at http://www.mysql.com/
*** REPLY SEPARATOR ***
On 03/01/2003 at 6:37 PM Pushpinder Singh Garcha wrote:
hello all
I am using php and mysql in my web application. I am making use of
forms to accept data from the user and add it to the mysql database. I
Don't post in HTML and are you paying?
---John Holmes...
- Original Message -
From: Mike Bowers [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 7:15 PM
Subject: [PHP] Help needed on CMS Project
I'm working on a CMS project. It's based on PHP-Nule but I am re
Title: Message
I'm working on a CMS
project. It's based on PHP-Nule but I am re-writing it to make the DB less used
and to clean the code up a bit. Unfortunately I do not have time alone to do all
I want and the last devs and coders I had quit on me. I'm looking for coders
with basic
Why dont you try Post-Nuke :)
Good Luck
Tariq
Mike Bowers wrote:
I'm working on a CMS project. It's based on PHP-Nule but I am re-writing
it to make the DB less used and to clean the code up a bit.
Unfortunately I do not have time alone to do all I want and the last
devs and coders I had
I dont know if this is possible in PHP (Newbie) im working on a project
where each product has 3 diffierent prices depending on the amount sold so
say for example 1- 100 price A 101-299 price B and above 300 Price C. What
I need to be able to do is increment an mysql database field each time an
Hi
The script is not working.
function authenticate($user,$pass) {
$result = -1;
$data = file(shadow); /* permission every
one read */
foreach($date as $line ) {
$arr = explode(:,$line);
if($arr[0] == $user) {
/* user
Hi,
Wednesday, December 4, 2002, 12:45:15 AM, you wrote:
cyc Hi
cyc The script is not working.
cycfunction authenticate($user,$pass) {
cyc $result = -1;
cyc $data = file(shadow); /* permission every
cyc one read */
cyc foreach($date as $line ) {
cyc
Hi
I made some changes to this script but still it is
not working
cycfunction authenticate($user,$pass) {
cyc $result = -1;
cyc $data = file(shadow); /* permission
every
cyc one read */
cyc foreach($data as $line ) {
cyc $arr =
Hi,
Wednesday, December 4, 2002, 1:27:49 AM, you wrote:
cyc Hi
cycI made some changes to this script but still it is
cyc not working
Try using the whole password as the salt like this
if(crypt(trim($pass),$arr[1]) == $arr[1])
Or are you still only getting -1 returned ?
--
regards,
Tom
Hi all
I am trying make changes with the register_global variable in the
php.ini file, but I am unable to locate it.
I am running Mac OS JaguarPlease help me out
Many Thanks.
--Pushpinder
Pushpinder Singh Garcha
_
Web Architect
T. Falcon Napier and
You need to supply more info here for help.
1. like how is php installed: compile, rpm
2. where is php trying to look for you php.ini file ( phpinfo() path)
3. tell us what you have done to try and find the php.ini file.
Then we can really help out...
or just run and search for the file php.ini
I am trying make changes with the register_global variable in the
php.ini file, but I am unable to locate it.
I am running Mac OS JaguarPlease help me out
Create a page with ? phpinfo(); ? only on it and call it up through your
browser. The first block on the page will tell you where
Hello
I am using php based forms, which collect information from the client
and send it in the form a email message to the admin.
I need to start using validation i.e. check whether some field/s has
been correctly entered in the from.
My application consists of 2 php pages
1). info.php
Soporte Técnico
- Licenciamiento de Software
-Mensaje original-
De: Pushpinder Singh Garcha [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 21 de noviembre de 2002 16:28
Para: [EMAIL PROTECTED]
Asunto: [PHP] help needed with forms
Hello
I am using php based forms, which collect
PROTECTED]
Subject: [PHP] help needed with forms
Hello
I am using php based forms, which collect information from the client
and send it in the form a email message to the admin.
I need to start using validation i.e. check whether some field/s has
been correctly entered in the from.
My application
Hello,
Van Andel, Robert [EMAIL PROTECTED] wrote:
Sounds like JavaScript would be the answer here. You can use a javascript
function to validate the form before it is even submitted.
Yes, perhaps. But people can turn off JavaScript so you might want to use
JavaScript AND PHP to validate your
Hi
I am using MIME to send mail (http://www.phpclasses.org/mimemessage)
I need to be able to send attachments that are present on the local
machine.
Is there a way to send attachements without uploading then to the
server ??
Thanks
-pS
--
PHP General Mailing List (http://www.php.net/)
To
Simple answer: No
Pushpinder Sngh Garcha wrote:
Hi
I am using MIME to send mail (http://www.phpclasses.org/mimemessage)
I need to be able to send attachments that are present on the local
machine.
Is there a way to send attachements without uploading then to the
server ??
Thanks
-pS
--
Karl, This list usually works best if:
a) you do some looking around at google, the manual, and other PHP/script
resources before asking questions
b) you have a specific problem that we can help with (eg why is this
function not working?, not who can build me a complete blah blah?)
Cheers,
Hi ,
I am using PhpMailer in my mail application.
I keep getting this error when I run the application Message was not
sent Mailer Error: SMTP Error: Could not authenticate
Here is the code that I am using :
?php
require(class.phpmailer.php);
//require(class.smtp.php);
$mail = new
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Are you sure your SMTP requires authentication? If so, have you checked the
username and password you supplied?
On Wednesday 06 November 2002 11:19 am, Pushpinder Sngh Garcha wrote:
Hi ,
I am using PhpMailer in my mail application.
I keep
Is There anyone that I can chat with in reatlime
About the project I need help with for my fantasy football
League.
Karl
Hi All
I am new in the php development world. I have made a simple mail
application using the phph mail() function.
I needed to use an attachment facility ith the mailing program...so I
have tried to use this solution called phpmailer()
from http://sourceforge.net/projects/phpmailer
I am not
SEE: http://phpmailer.sourceforge.net/extending.html
(click Home Page then examples)
-js
Pushpinder Singh Garcha wrote:
Hi All
I am new in the php development world. I have made a simple mail
application using the phph mail() function.
I needed to use an attachment facility ith the
Hi
I am trying to create an online survey using PHP ...I am using MySQL as
the database and MAC OS Jaguar. I do not need the results to be added to
the database. I need to be able to send the results of the survey to an
email addressI know that this is possible using MS FrontPage but
I am trying to create an online survey using PHP ...I am using MySQL as
the database and MAC OS Jaguar. I do not need the results to be added to
the database. I need to be able to send the results of the survey to an
email addressI know that this is possible using MS FrontPage but
with
--- Pushpinder Singh Garcha [EMAIL PROTECTED] wrote:
Hi
I am trying to create an online survey using PHP
...I am using MySQL as
the database and MAC OS Jaguar. I do not need the
results to be added to
the database. I need to be able to send the results
of the survey to an
email
The easiest way to do this would be to have your survey be a basic HTML
page. Then use a single PHP processing page. You could just write the value
of $_POST to a variable and send that in your email.
$string = implode(\n,$_POST);
mail($to,$subject,$string);
Correct me if I'm mistaken but
, October 15, 2002 11:49 AM
To: 1LT John W. Holmes; Pushpinder Singh Garcha;
[EMAIL PROTECTED]
Subject: Re: [PHP] Help Needed
The easiest way to do this would be to have your survey be a basic HTML
page. Then use a single PHP processing page. You could just write the
value
of $_POST to a variable
Hello,
I need a PHP programmer to assist me with updates to childrens website.
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
is it a free assistance or a non-free one?
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
Michael Plasse [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
Hello,
I need a PHP programmer to assist me with updates to
Hello everyone,
I am a new PHP user, from Belgium. I am trying to manage a MySQL database with PHP,
and I kindly request your help to solve a little (probably very stupid) problem I have
been dealing with for a while already ...
I have a MySQL database (called sessions) with a auto-increment
On Sunday 18 August 2002 17:45, Jean-Marc Godart wrote:
I have a MySQL database (called sessions) with a auto-increment INT field
called sessionID. I try to check if there is already a record in this
database with a given sessionID, which is called $sessionID in PHP. I use
this query, which
PROTECTED]
Sent: Sunday, August 18, 2002 11:53 AM
Subject: Re: [PHP] Help needed about queries with MySQL, thanks.
On Sunday 18 August 2002 17:45, Jean-Marc Godart wrote:
I have a MySQL database (called sessions) with a auto-increment INT
field
called sessionID. I try to check
On Sunday 18 August 2002 17:59, Jean-Marc Godart wrote:
Thanks for your suggestion ... Yes, I tried to print $sessionID (using
echo()) and I get the right value (the one I am looking for) ... Though the
query does not work. Any other idea ??? Thanks again !
Please post your code so we can
I have a MySQL database (called sessions) with a auto-increment
INT field called sessionID. I try to check if there is already
a record in this database with a given sessionID, which is called
$sessionID in PHP. I use this query, which must be wrong (but I
cannot find out why !!!) :
if ($a hexdec())
would become
if ($a -1)
See if this makes a difference.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 06, 2002 5:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Help needed with hexdec();
Hi Guys
Hi Guys,
I have a problem wich I hope has been solved by someone :-)
Here's the deal,
I have to convert a perl script to PHP trying to do so I get negative
values from hexdec(), If I use (int)hexdec() the numbers aren't negative
anymore, but they do not add up to what they should.
Here's
I would like to create a text file that doesn't save to disk but askes me to
save the file.
like when i click on a zip file from a website, ie asks me to save the file
to somewhere.
how do i create the file and then tell my browser to ask the user to save
the file somewhere
???
--
PHP
Hello again.
I have the following function that generates a prime number of x
bits. It seems to work but i am just trying to see if i can make it any
faster as generateing 1024 bit prime can take a while. so i thoought i
would ask here to see if anybody has any ideas or suggestions.
:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 10:06 PM
To: PHP List
Subject: [PHP] Help needed with Sessions
Hi all,
I am trying to get sessions to work to use to pass some data
around, but the
values do not seem to be coming through - I've probably got
something basic
wrong
PHP
You can look at this articles too:
http://www.phpbuilder.com/columns/mattias2312.php3
http://www.phpbuilder.com/columns/mattias2105.php3
William.
El mar, 26-02-2002 a las 10:27, Johnson, Kirk escribió:
Start here: http://www.php.net/manual/en/ref.session.php
You will need to call
Hi all,
I am trying to get sessions to work to use to pass some data around, but the
values do not seem to be coming through - I've probably got something basic
wrong
PHP version is 4.0.4pl1
sources are
validate.php
?php
include(header.inc);
?
HTML
HEAD
TITLEToday's Date/TITLE
/HEAD
BODY
Hi there,
I am struggling with a concept and can't seem to find a way to do it so
hoping you all can help.
We want to use PHP with MySql Db.
For security reasons on the DB, it is to be accessed only through this front
end i.e. via the internal web
Each user will have a number of levels of
I can think of three ways you could do this.
1. as a cookie
2. using sessions
3. put it in every link
Martin
-Original Message-
From: WG4- Cook, Janet [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 10:59 AM
To: PHP db list; PHP List
Subject: [PHP] Help needed - need
Hello All,
I have been asked to do a project that seems to be baffling
me. It's not really the php which is the hard part, but the mathematical problem
behind the project that is causing me to have a headache!
Imagine an ecommerce site where a user can pick 5 products (it
must be 5) from
Hello hamish,
[msg converted from HTML to simple-text format]
I have been asked to do a project that seems to be baffling me. It's not really the
php which is the hard part,
but the mathematical problem behind the project that is causing me to have a headache!
...
=This reminds me of the
There not much documentation in the online manual about eregi. Apart from
the usage I need to know more about what regx it uses,
in the linux shell , using grep i got it right for my needs ..
I want to find and reject content with email address ..
[desiredating@opie desiredating]$ echo [EMAIL
from the manual:
These functions all take a regular expression string as their first
argument. PHP uses the POSIX extended regular expressions as defined by
POSIX 1003.2. For a full description of POSIX regular expressions see the
regex man pages included in the regex directory in the PHP
Hi,
To test a new php installation I accessed a page called index.php that
contains only ?php phpinfo(); ? but that produces this error:
Warning: Failed opening '' for inclusion
(include_path='.:/usr/local/lib/php:/usr/local/include/php:/usr/local/bin/ph
p') in Unknown on line 0
This seems
To test a new php installation I accessed a page called index.php that
contains only ?php phpinfo(); ?
Perhaps you want to:
?phpinfo();?
Not sure if anything else should produce errors..
Bye,
B.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Hi,
I've made a PHP Chatroom and i need help developing
the logic behind the Private Chat feature.
I'll first explain briefly how my chat works.
It's a very very simple Chat using just DB and nothing
else.
User enters.. his name,date goes into Chat.
QueryString passes his name to main area
Hi,
Thanks for the info. about free web hosting www.multimania.com , i will be
greateful if any one help in the steps of config. mysql and php on this web
hosting, the problem is that site is in non-english language (i think its in french
which i dont understand). if any one let me know briefly
http://babelfish.altavista.com
That URL may help you translate the page...
Andrew
- Original Message -
From: Kamran H. Hassan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, October 27, 2001 7:22 PM
Subject: [PHP] help needed for multimania.com
Hi,
Thanks for the info. about
PLEASE REPLY DIRECTLY TO THIS EMAIL ADDRESS, I AM NOT SUBSCRIBED TO THE LIST
hi there I am trying to insert this code into my pages to dynamically add
backwards and forwards links to my pages but the code keeps giving me
errors.
below is the code, if someone could please tell me what I am doing
:39 AM
To: [EMAIL PROTECTED]
Subject: [PHP] help needed
PLEASE REPLY DIRECTLY TO THIS EMAIL ADDRESS, I AM NOT SUBSCRIBED TO THE
LIST
hi there I am trying to insert this code into my pages to dynamically
add
backwards and forwards links to my pages but the code keeps giving me
errors.
below
PROTECTED]
To:
Sent: Friday, August 24, 2001 4:38 AM
Subject: [PHP] help needed
PLEASE REPLY DIRECTLY TO THIS EMAIL ADDRESS, I AM NOT SUBSCRIBED TO THE
LIST
hi there I am trying to insert this code into my pages to dynamically add
backwards and forwards links to my pages but the code keeps giving
I'm using copy() and the final owner is nobody, I'm opening a socket
connection with fsockopen() so I have a validate user.
I want the validated user to be the owner of the new file
That`s de code:
- open the socket
- validate user
- change dir chmod so we can write
- write the file (with nobody
try this,
form name=f1
select name=selectall[]
optionline1/option
option selectedline2/option
optionline3/option
/select
input type=text name=txt1
/form
script language=JavaScript
!--
selectobjname = selectall[];
selectobj = null;
for (i=0; i f1.elements.length; i++)
{
Hello,
Vox2Vox needs 2 developers for a short project. They don't need to work on
site. The company is in Miami/FL and the developers can be anywhere. Please
send Curriculum Vitae with your answer... Contact me directly.
Pre-requisites:
- Availability: NOW
- 3 years experience minimum
Hiya i've got a script that basically draws values from a db and will display them, as
i have multiple records in there and want to display them all i'm using a
while ( ($myrow = mysql_fetch_array($result) ) )
statement this is all good as far as it will display them all how ever when i go
On Wed, 4 Apr 2001 09:27, Peter Houchin wrote:
Hiya i've got a script that basically draws values from a db and will
display them, as i have multiple records in there and want to display
them all i'm using a
while ( ($myrow = mysql_fetch_array($result) ) )
statement this is all good as far
snip
$rs = "UPDATE main SET system='$system',";
$rs .= "part='$part',";
$rs .= "monthly='$monthly'";
$rs .= "WHERE id='$id'";
$result = mysql_query($rs,$db);
?
form name="update" method="get" action="../../ben.php"
?
$foo = "SELECT * FROM main";
$result
On Wed, 4 Apr 2001 11:23, Peter Houchin wrote:
snip
$rs = "UPDATE main SET system='$system',";
$rs .= "part='$part',";
$rs .= "monthly='$monthly'";
$rs .= "WHERE id='$id'";
$result = mysql_query($rs,$db);
?
form name="update" method="get"
If the keywords inputted from user are: "word2, word1", it
will reture News1 twice:
That's because you are selecting all the records that match
each single key word individually.
I want to search this table based on the Keywords. the code is:
$split = explode(" ",$keywords);
$Num = 0;
Hello all,
I have an issue that I can not seem to resolve. Scenario:
Solaris 2.7
Netscape Enterprise Server 4.1
PHP 4.0.4
Oracle 8i
Configured as:
--enable-debug
--enable-pic
--enable-inline-optimization
--with-regex=system
--with-gettext=/usr/bin
--enable-safe-mode
--enable-sysvmem
ubject: [PHP] Cobalt Raq/PHP Help Needed
Hi all, this list to date has been extremely helpful and I thought you might
be able to help with my latest problem.
I have a Cobalt Raq and need to host many different domain names but have
them all point to one directory. e.g.
web site is called www.
101 - 178 of 178 matches
Mail list logo