Hi Phil thanks for taking the time to reply back.
allow me to share my code (still learning so be gentle.)
I register 2 session vars from 2 input boxes. I then select * from the user
table where the to variables match (username and password) if they match I
want to register the auth_level field
Hi,
I have a user auth script. Very simple and works.
when I check the username and password I check it against a select all the
values from the user table where the username and password match. (inputted
from a 2 text boxes)
like so
//sets and runs SQL statement that brings back all info on u
Hello all
I have just created a login script that works fine. At the moment I have a
pretty simple (I have coded this but I am trying to keep it simple to
explain what I am after
if login != ok then
generate HTML for error page
else
Generate HTML for ok page.
end;
what I want to do is
if
thats great.
Thanks Greg.
-Original Message-
From: Greg Donald [mailto:[EMAIL PROTECTED]]
Sent: 02 March 2002 18:26
To: Matthew Darcy
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] PHP directing pages/frames to urls.
On Sat, 2 Mar 2002, Matthew Darcy wrote:
>I have the java script opt
Hi Greg,
I have the java script option, I was wondering if using java script was the
only way to do this ?
I am now guessing it is.
Thanks,
Matt.
-Original Message-
From: Greg Donald [mailto:[EMAIL PROTECTED]]
Sent: 02 March 2002 18:08
To: Matthew Darcy
Cc: [EMAIL PROTECTED]
Subject
Hi,
I asked the group for a suggestion of how to direct 2 frames to 2 different
locations on the click of a link. A suggestion using javascript was sent
back to me.
I am looking for other options can anyone suggest anything.
Many thanks,
Matt
--
PHP General Mailing List (http://www.php.net/
Hello all
I have just created a login script that works fine. At the moment I have a
pretty simple (I have coded this but I am trying to keep it simple to
explain what I am after
if login != ok then
generate HTML for error page
else
Generate HTML for ok page.
end;
what I want to do is
ing dropdown lists
from fetched arrays.
try this: (I don't have experience w/ mysql, but I do with other dbs)
".$row["col2"];
}
?>
-Original Message-
From: Matthew Darcy [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 10:06 AM
To: [EM
7;; [EMAIL PROTECTED]
Subject: RE: [PHP] RE: (HTML related) helping to creating dropdown lists
from fetched arrays.
original line:
while ($row = mysql_fetch_array($results);
new line:
while ($row = mysql_fetch_array($results))
-Original Message-----
From: Matthew Darcy [mai
al Message-----
From: Matthew Darcy [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 10:37 AM
To: Martin Towell; [EMAIL PROTECTED]
Subject: RE: [PHP] RE: (HTML related) helping to creating dropdown lists
from fetched arrays.
RE: [PHP] RE: (HTML related) helping to creating dropdown lists fr
PROTECTED]'; [EMAIL PROTECTED]
Subject: RE: [PHP] RE: (HTML related) helping to creating dropdown lists
from fetched arrays.
original line:
while ($row = mysql_fetch_array($results);
new line:
while ($row = mysql_fetch_array($results))
-Original Message-
From
TED]'; [EMAIL PROTECTED]
Subject: RE: [PHP] RE: (HTML related) helping to creating dropdown lists
from fetched arrays.
try this: (I don't have experience w/ mysql, but I do with other dbs)
".$row["col2"];
}
?>
-Original Message-
From: Matt
it does help a little.
I know the html is wrong I used this as an example to what I wanted.
What I need to know is how to use PHP to generate the options in the list
from col1 and show the option 2.
The data for these is got from an array.
so really what I want to know is how to code in PHP
Hi,
I want to create a dropdown list with options from a table.
ie
"
}
I know this is basic but it is to give you an idea of what I want.
I have tried to find an example of this in the book I am using to learn to
no result.
I am guessing this is how it works from the info I have read fr
Hi,
I have a php user authorise script.
I have 2 fields in a mysql database. user_name and user_password. Password
is encrypted with the mysql password('$password') function.
This is my PHP authorise section of the script.
$sql_authorisation = "SELECT * FROM account_details WHERE
account_nam
there is a way of using vi/vim to highlight syntax with PHP and HTML.
I am playing with it at the moment.
Matt,
-Original Message-
From: Torkil Johnsen [mailto:[EMAIL PROTECTED]]
Sent: 16 February 2002 13:45
To: [EMAIL PROTECTED]
Subject: [PHP] Text editor for linux
Anyone know of a
never mind Matt,
I noticed the missin ); on line 65
Thanks for your help.
Matt.
-Original Message-
From: Matt [mailto:[EMAIL PROTECTED]]
Sent: 16 February 2002 12:05
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] user auth script update.
> I am now getting the parse err
got the apache thing sussed.
For some reason windows using ie takes doesn't see changed on the apache
webserver as quick as linux ???
-Original Message-
From: Matthew Darcy [mailto:[EMAIL PROTECTED]]
Sent: 16 February 2002 11:58
To: PHP developers
Subject: [PHP] not really
I have apache compiled and working %100.
I have www.mydomain.com
when I visit thie domain apache loads index.html for my by default - wo my
browser displays www.mydomain.com - but the page viewed is
www.mydomain.com/index.html
I updated index.html (did not touch any apache configuration) adde
Found 1 schoold box error AGAIN I ended line 4 with : not ;
I am now getting the parse error on line 64
Can anyone review this script and tell me where I am going wrong.
Thanks,
Matt.
SCRIPT
START--
BathJobs.com User Log
Hi,
After the help given on my last script I got a bit more advanced. I am
trying to write a user auth script and start sessions. I wrote this script
and ran it and I am getting an error on line 4. Once again I cannot see any
problems. I would appriciate you experienced guys casting your eyes ove
down any more ?
Try closing all your "{" & "}". count them up, you are missing the closing
bracket on your while statment..
Jim Lucas
- Original Message -
From: "Matthew Darcy" <[EMAIL PROTECTED]>
To: "hugh danaher" <[EMAIL PROTECTED]>
Sent: 12 February 2002 16:20
To: [EMAIL PROTECTED]; php
Subject: Re: [PHP] a user_auth script.- Anyone see the problem ?
Check for a closing bracket on this statement
if($row["account_password"]==$login_name // line 14 or 15 needs )
Hope this helps
Hugh
- Original Message -
cript. The Script
You have the ending } for the if statement?
Nate
- Original Message -
From: "Matthew Darcy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 12:57 AM
Subject: RE: [PHP] a user_auth script. The Script
> was hoping som
Data Submitted
View the records
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2002 07:11, Matthew Darcy wrote:
> spotted 1 error already missing the starting " after the printf statment.
>
> Any more ?
>
> -Original Message-
> From: Matthew Darcy [mailto:[EMAIL PROTECTED]]
> Sent: 11 February 2002 23:09
> To: Roy Cabaniss; php
> Subject
Hi,
I am looking at getting users to input their details to be stored in mysql,
I would then like them to have to login to get access to certain functions
when they come back.
Does anyone have a good idea on how to do this,
is the best / only way to do this sessions ?
This must be quite secure
1.) I would like to chat about using logins with php. I think this requires
sessions, but I would like to talk about ways to provide "user accounts" and
relate user details to the accounts.
2.) E-Mailing using PHP. How to configure sendmail or qmail to allow PHP to
sendmail out from variables he
m as soon as you can.
Tomorrow is a new day; you shall begin it serenely and with too high a
spirit to be encumbered with your old nonsense." - Ralph Waldo Emerson
> From: "Matthew Darcy" <[EMAIL PROTECTED]>
> Reply-To: <[EMAIL PROTECTED]>
> Date: Wed, 23 Jan 2002
I am doing an insert into a EMPTY mysql table.
1 field is an auto increment.
here is the error I get when I do the insert
"Column count doesn't match value count at row 1"
What does this mean ?
Here is the php used to insert it.
Data Submitted
View the records
~
Thanks,
Matt.
--
30 matches
Mail list logo