Re: [PHP] Simplistic PHP tutorial

2004-05-25 Thread Dennis Seavers
I disagree with the suggestion that you need to or should have programming experience to learn PHP, although it is helpful. There are a few books out there (and books probably are the best starting point) that assume the reader has no programming background, although you need to be familiar with

RE: [PHP] Newbie Question: Variables on the fly

2004-05-27 Thread Dennis Seavers
variables from scratch, following a (hopefully) finite mathematical formula. Or you could manipulate data that already exists, turning this data into some kind of variables. Ultimately, you'll have to give a better of sense of the end result you'd like. Dennis Seavers [Original Message] From

RE: [PHP] Newbie Question: Variables on the fly

2004-05-27 Thread Dennis Seavers
Message] From: Dennis Seavers [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Date: 05/27/2004 9:30:19 PM Subject: RE: [PHP] Newbie Question: Variables on the fly Maybe others will catch on to your intention, but I think you need to provide a bit more information. For example

[PHP] Security/Web tree/db connect and select

2004-05-29 Thread Dennis Seavers
I have a question about comparing the security risks for two methods of connecting to a database with PHP. The DBMS is MySQL. Option 1: Include the mysql_connect and mysql_select_db commands within the script that manipulates the data from the database. Option 2: Include the mysql_connect and

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 script tags: echo script language=\javascript\ type=\text/javascript\ !-- this.print() //-- /script; I don't believe you need a semi-colon after this.print within the javascript script. [Original Message] From: Nick Wilson

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] select from db

2004-06-04 Thread Dennis Seavers
for the confusion. [Original Message] From: Dennis Seavers [EMAIL PROTECTED] To: Robert Sossomon [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Date: 06/04/2004 12:00:39 AM Subject: Re: [PHP] select from db When you run this script, or one like it, does it work? You seem to be missing a number of brackets

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

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 run

[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

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

2004-06-05 Thread Dennis Seavers
the speed difference. Dennis Seavers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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

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 that you

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 type to go

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 like to use php

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] From:

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 toch op een

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:10 PM

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 - transmodal -

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

2004-11-19 Thread Dennis Seavers
: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 PROTECTED] To: [EMAIL PROTECTED] Date: 11/18/2004 11:34:57 PM Subject: [PHP] getting the highest number in 3

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

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.

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 select list based on elements in a database and (2) a textarea element where the client would enter something that does not appear in the select list. If so, you could use a script that uses the records in your database and has a final

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

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 sessions for

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] 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 (which I know

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 database),