I guess you would either need to make the vars global or else keep
redeclaring them. Obviously, redeclaring them in each function
$var=$_GET[whatever] is technically the more secure method.
Kris
Jeff McKeon wrote:
Ok,
I've got the user authentication thing down and now I'm continuing to
--- Jeff McKeon [EMAIL PROTECTED] wrote:
The problem I'm having is with the $_GET variables. I guess I'm not
declaring them correctly. Do I need to set them as soon as the page
loads, and outside of any functions like so..
[code start]
$custid = $_GET['custid'];
$custname =
['vesselid']' order
by Status DESC, Created ASC;
[code end]
Jeff
-Original Message-
From: Chris Shiflett [mailto:[EMAIL PROTECTED]
Sent: Friday, October 03, 2003 3:45 PM
To: Jeff McKeon; php
Subject: Re: [PHP] User Authentication Continued
--- Jeff McKeon [EMAIL PROTECTED
--- Jeff McKeon [EMAIL PROTECTED] wrote:
$query=SELECT * from tickets where VesselID='$_GET['vesselid']'
order by Status DESC, Created ASC;
$query = select * from tickets where vesselid = '{$_GET['vesselid']}'
order by status desc, created asc;
Note the curly braces.
Hope that
On Fri, 2003-10-03 at 16:44, Jeff McKeon wrote:
Actually, here's the problem I get with using global variables in a
mysql_query string..
[error begin]
PHP Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING
[error end]
[code
* Thus wrote Jeff McKeon ([EMAIL PROTECTED]):
Actually, here's the problem I get with using global variables in a
mysql_query string..
[error begin]
PHP Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING
[error end]
[code
One more mystery solved.
Thanks one and all
Jeff
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Friday, October 03, 2003 4:55 PM
To: Jeff McKeon
Cc: PHP-General; [EMAIL PROTECTED]
Subject: RE: [PHP] User Authentication Continued
On Fri
--- Jeff McKeon [EMAIL PROTECTED] wrote:
$query=SELECT * from tickets where VesselID='$_GET['vesselid']'
order by Status DESC, Created ASC;
$query = select * from tickets where vesselid = '{$_GET['vesselid']}'
order by status desc, created asc;
Note the curly braces.
I am
Good advice! Thanks!
Jeff
-Original Message-
From: Chris Shiflett [mailto:[EMAIL PROTECTED]
Sent: Friday, October 03, 2003 5:19 PM
To: Jeff McKeon; php
Subject: RE: [PHP] User Authentication Continued
--- Jeff McKeon [EMAIL PROTECTED] wrote:
$query=SELECT * from
9 matches
Mail list logo