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
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
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
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
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
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:
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
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
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
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
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
[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
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
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
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:
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
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
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
-
: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
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
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.
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
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
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
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:
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
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),
27 matches
Mail list logo