Re: [PHP] $_POST['xxx'] = "blabla" ?

2004-11-22 Thread Dennis Seavers
Use unset () to reset the variable values and $_POST to set the values. As long as there's no other, unacceptable access to your server, you'll be in a good position, other security considerations aside. If any other latent $_POST values exist, what could they do? And if they were to do anything

Re: [PHP] getting the highest number in 3 db fields?

2004-11-19 Thread Dennis Seavers
also has max(), ty. > > > On Thu, 18 Nov 2004 23:46:01 -0700, Dennis Seavers > <[EMAIL PROTECTED]> wrote: > > Try using the SQL aggregate function MAX() or the PHP function max() > > > > > [Original Message] > > > From: Louie Miranda <[EMAIL PROTEC

RE: [PHP] getting the highest number in 3 db fields?

2004-11-18 Thread Dennis Seavers
Try using the SQL aggregate function MAX() or the PHP function max() > [Original Message] > From: Louie Miranda <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Date: 11/18/2004 11:34:57 PM > Subject: [PHP] getting the highest number in 3 db fields? > > I have a db field of 3. > > - prolog > - tra

RE: [PHP] parsing /'s in urls

2004-11-12 Thread Dennis Seavers
The link offers a CGI error, which is admittedly an uninteresting result. I think you'll need to indicate what your previous results were and, if different, what your desired results are. Dennis > [Original Message] > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Date: 11/11/2004 11:58:

RE: [PHP] php - no results - display other message

2004-09-14 Thread Dennis Seavers
mysql_num_rows () will tell you how many rows return in the query > [Original Message] > From: Dustin Krysak <[EMAIL PROTECTED]> > To: PHP <[EMAIL PROTECTED]> > Date: 09/14/2004 9:37:24 PM > Subject: [PHP] php - no results - display other message > > Hi there... I have a simple search page (mysql

RE: [PHP] Creation of MySQL Database Using PHP

2004-07-24 Thread Dennis Seavers
mysql_query ('CREATE DATABASE name_of_database'); > [Original Message] > From: Harlequin <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Date: 07/24/2004 3:08:47 PM > Subject: [PHP] Creation of MySQL Database Using PHP > > Hello. > > I have a friend who knows less than me about PHP and MySQL (wh

RE: [PHP] encryption needed?

2004-07-14 Thread Dennis Seavers
If you've set things up so that the id is available client-side, then there's no point in encrypting the id (by any encryption methods). If the id is stored in the client browser, then you'd better make sure it's linked to public data. > [Original Message] > From: klaus <[EMAIL PROTECTED]> > To:

RE: [PHP] Opinion: PHP Sessions or Cookies

2004-07-14 Thread Dennis Seavers
Just as folks can turn off JavaScript, they can reject cookies. Sessions have some advantages over cookies. > [Original Message] > From: Ed Lazor <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Date: 07/13/2004 2:47:31 PM > Subject: [PHP] Opinion: PHP Sessions or Cookies > > I'm using PHP sessi

Re: [PHP] mail problem

2004-07-11 Thread Dennis Seavers
Jason, et al: Is it not true that $HTTP_POST_VARS is more secure than $_POST, even though the latter is a superglobal? Doesn't the former acount for un-updated server versions? If it isn't, what disadvantage is there to using $HTTP_POST_VARS? Why should one use $_POST instead? (P.S.: Aidan Li

Re: [PHP] onchange drop down list and text field

2004-07-08 Thread Dennis Seavers
I'm not sure, but I think he meant he wanted both (1) a list based on elements in a database and (2) a element where the client would enter something that does not appear in the list. If so, you could use a script that uses the records in your database and has a final for "Other". For instanc

RE: [PHP] Is PEAR worth the effort?

2004-06-30 Thread Dennis Seavers
It's hard to say whether it's worth the effort for you; it depends on what your going to do, both for your current project and future ones. However, in general, I believe the effort you put into learning PEAR is negligible compared to the yield. I don't think PEAR is a flash in the pan. > [Orig

RE: [PHP] PHP en XML een vraag waard

2004-06-14 Thread Dennis Seavers
42. > [Original Message] > From: De Saedeleer Yves <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Date: 06/14/2004 1:28:28 PM > Subject: [PHP] PHP en XML een vraag waard > > Gegroet, > Hoi > > Ik ben reeds een tijdje bezig met PHP en hier en daar lukt er al eens iets > :=)) > > Maar nu stuit ik

RE: [PHP] converting a char variable to an int?

2004-06-14 Thread Dennis Seavers
You could cast the type when you create the variable: $variable = (integer) $variable; Or you could set the type: settype ($variable, "integer"); However, the problem may be with the database, depending on what you mean by "it's not working in my database this way." > [Original Message] > Fro

RE: [PHP] Help with an objective

2004-06-14 Thread Dennis Seavers
Also check the archives of this e-mail list. I believe this topic has been discussed before. > [Original Message] > From: Ryan Schefke <[EMAIL PROTECTED]> > To: Php-General-Help <[EMAIL PROTECTED]> > Date: 06/14/2004 5:48:16 AM > Subject: [PHP] Help with an objective > > All, > > > > I would l

RE: [PHP] SQL Query Statement for MySQL... (DataType --> TEXT vs BLOB)

2004-06-10 Thread Dennis Seavers
Probably a good question for a MySQL e-mail list. > [Original Message] > From: Scott Fletcher <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Date: 06/10/2004 12:49:07 PM > Subject: [PHP] SQL Query Statement for MySQL... (DataType --> TEXT vs BLOB) > > I'm wrestling over deciding on which data t

Re: [PHP] Re: if/elseif/else v. switch

2004-06-05 Thread Dennis Seavers
> [Original Message] > From: Aidan Lister <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Date: 06/05/2004 6:19:24 AM > Subject: Re: [PHP] Re: if/elseif/else v. switch > > Hi Rachel, > > You'll note I did not criticise the poster, merely his seemingly stupid > question. P.S. Isn't it possible

RE: [PHP] Re: if/elseif/else v. switch

2004-06-05 Thread Dennis Seavers
witch statement is faster, because the condition is > only evaluated once. However you did not ask about the speed difference. > > > "Dennis Seavers" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Is there any noticeable difference (on the p

[PHP] if/elseif/else v. switch

2004-06-04 Thread Dennis Seavers
Is there any noticeable difference (on the part of the client) between identical conditionals, one written as a switch, the other written as an if, elseif ... else conditional? I realize that one programmer coming in behind another might prefer the gentler layout of a switch; but would there be

RE: [PHP] table formatting

2004-06-04 Thread Dennis Seavers
Change the design of the HTML table. > [Original Message] > From: BigMark <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Date: 06/04/2004 8:07:51 PM > Subject: [PHP] table formatting > > This script by Rob Sossomon works great --Thanks! > however could anyone tell me if its possible to make it r

Re: [PHP] Bulk table updates

2004-06-04 Thread Dennis Seavers
Maybe I don't understand what you're trying to accomplish -- and I'm not sure what you meant by "parsed through then just one line" -- but the application you have at the link would work if you set the default values of the form elements to the data currently in your table. Even if you have a sepa

Re: [PHP] select from db

2004-06-04 Thread Dennis Seavers
I think I misread your script. I took the line print ""; to be part of the while loop, meaning there would be two statements. I'm not accustomed to seeing scripts that use functions without brackets, even when their not required. Sorry for the confusion. > [Original Messa

Re: [PHP] select from db

2004-06-04 Thread Dennis Seavers
When you run this script, or one like it, does it work? You seem to be missing a number of brackets. For example, you have: while ($row = MYSQL_FETCH_ROW($result)) instead of while ($row = MYSQL_FETCH_ROW($result)) { or while ($row = MYSQL_FETCH_ROW($result)) { > [Original Message] > From:

Re: [PHP] Re: Call JS Function with PHP Header()?

2004-06-03 Thread Dennis Seavers
You should be able to use the comment tags, just put them inside the tags: echo "