HI--
* I have the following variables: $c1 thru $c10.
* I also have a FOR loop like this:
for($count = 0; $count < sizeof($artist); $count++)
{ echo "$artist[$count]"; }
// $artist is a list of ten (10) artist's names.
* What I'm trying to do is somet
Hi
The following will print the variables ($tim1 and $tim2) correctly but the
IF statement using the same vars will not work, it will only work as below
which seems to work by comparing the text values of the 2 variables $tim1
$tim2.
while($myrow = mysql_fetch_array($result))
{
$tim1="timea";
$t
Hi--
I know there is a tutorial out there that shows you how NOT TO LOSE any
variable values if your browser does a refresh or a reload. Please assist.
For example, if a user fills out fields 1, 2, and 3, but on field 4 the
browser is forced to do a reload, data for fields 1-3 should be there
I am having a problem with losing a variables value. What I am doing is
taking the value from a database, 'customer_id', and putting it into a
hidden form value called 'customer'. When I hit submit on the form it sends
me to a page where it does several queries to several databases and pulls
Hello there.
Is there a way to know whether a variable was passed by a form or just typed from the
address bar?
I think what you don't know is this:
$varName = "c1";
$$varName = 3;
that just set $c1 to equal 3.
Does that help?
-Original Message-
From: Julio Cuz, Jr. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 9:56 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Variables
just set $c1 to equal 3.
Does that help?
-Original Message-
From: Julio Cuz, Jr. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 9:56 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Variables
HI--
* I have the following variables: $c1 thru $c10.
* I also have a FOR
Dear All,
I am probably doing something silly but I don't know what (story of my
life). I have just upgraded to 4.2.1 and now all the variables I post in
forms or in query strings are now coming up undefined errors and are in
absent. I'm running PHP under IIS 4.
What am I doing wrong?
--
PHP Data
inal Message-
> From: Steve Dodkins [mailto:Steve.Dodkins@;ebm-ziehl.co.uk]
> Sent: Friday, November 08, 2002 9:26 AM
> To: Php-Db (E-mail)
> Subject: [PHP-DB] Variables
>
>
> Hi
>
> The following will print the variables ($tim1 and $tim2)
> correctly but the
>
I am programming a form this morning. I don't understand arrays really well.
I think this is what I am needing to use, but I am really not sure.
I have a PHP script that checks a POP e-mail address and is suppose to take the
incoming message and save it to a mySQL table based on the subject li
On Thursday, March 29, 2001, at 04:58 PM, Scott Kalbach wrote:
> I have the individual queries in include files. It does the first 2
> queries
> fine,but when it gets to the third, the value of $customer seems to be
> gone,
> so I get no result for the rest of the query's. I looked in my scrip
Dunno without looking at code, but try storing the value of $customer into a
local variable when the script is invoked - something is wiping it clean.
my thunks,
Phil J.
Scott Kalbach wrote:
> I am having a problem with losing a variables value. What I am doing is
> taking the value from a
-
// From: J-E-N [mailto:[EMAIL PROTECTED]]
// Sent: Thursday, 23 August 2001 1:24 PM
// To: [EMAIL PROTECTED]
// Subject: [PHP-DB] variables
//
//
// Hello there.
//
// Is there a way to know whether a variable was passed by a
// form or just typed from the address bar?
//
--
PHP Database Mailing
In php.ini you need to turn register_globals on..you also might want to
start using the $_GET, $_POST, $_SESSION global arrays
ed
At 02:49 PM 5/29/2002 +0100, Rob Fraser wrote:
>Dear All,
>I am probably doing something silly but I don't know what (story of my
>life). I have just upgraded to
> From: Rob Fraser [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 29, 2002 8:49 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] variables gone?
>
>
> I am probably doing something silly but I don't know what (story of
> my life). I have just upgraded to 4.2.1 and n
> From: [EMAIL PROTECTED]> To: php-db@lists.php.net> Date: Tue, 16 Oct
2007 09:47:13 -0500> Subject: [PHP-DB] Variables & Forms> > I am programming a
form this morning. I don't understand arrays really well. I think this is
what I am needing to use, but I am really not s
Hi Ron
"" is perfectly legitimate in an e-mail header field like "Subject:".
All headers may contain any combination of ASCII characters except CR
and LF which are used to terminate the field (See RFC8222 section 2.2).
There is also defined a means to "fold" lines which involves using the
CR+LF+w
Hello
I'm writting a registration form with connection to
mysql DB, but I have a problem in the last step, I
can't access the variables to put them in the DB.
I'm using the same file to process the form, but the
last step is confirmation of the data and insertion in
the DB, here it fails because
...slightly in regards to my last email.
I have a database query which requires a variable (
$USER[$id]["cbannerID"] ) to be equal to the ID of the current banner
being viewed. If you've come to the page for the first time my script
gives that variable a default value of -1 .
if(!is
Hi. I have posted this thread before but didn't come to a solution so I try
again.
I've installed Apache 2.0 and PHP 4.2.3 (both with the msi installers) on
Windows 2000 Pro.
The problem I have is that I get the message
Notice: Undefined variable: var_name in
every time I pass a new va
Hi there. I have what I suspect is an easy one, but was unable to find
something similar in the archives (it's a tough one to search for...).
Basically I have a table with a text block column. The actual content
that lives in column contains php variables that I want to be able to
use when I
how about posting the code? or describe
the problem a bit closer.
Johannes
"Rui Machado" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello
>
> I'm writting a registration form with connection to
> mysql DB, but I have a problem in the last step, I
>
I'm trying to write a loop to read variables I receive from a form:
I'd like to get something like:
for ($i=1; $i<=10; $i++) { $tab[$i]="a".$i ;}
The expression "a".$i is actually a string, not a variable. Any idea how to
"read" the value of that string?
Thanks for your help.
Message-
From: Achilles Maroulis [mailto:[EMAIL PROTECTED]]
Sent: 22 September 2002 07:04
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Variables coming from forms
Hi. I have posted this thread before but didn't come to a solution so I try
again.
I've installed Apache 2.0 and PHP 4.2.3 (bot
Hi
you need eval()
http://uk2.php.net/manual/en/function.eval.php
HTH
Peter
> -Original Message-
> From: Brian Stoffer [mailto:[EMAIL PROTECTED]
> Sent: 23 May 2004 23:34
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] Variables in database content
>
>
> Hi there
I am using this code to connect to my database and insert form data from a
user:
$connect = mysql_connect("myhost","user","pass") or die (" not connected");
@mysql_select_db("dbname");
$sql="INSERT INTO tablename
(id,first,last,age,email,sfuser,sfship,icq,ac,loca,ref)
Values(,`$first`,`$last`,'$a
http://www.php.net/manual/en/language.variables.variable.php
> -Original Message-
> From: LeTortorec, Jean-Louis [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 29, 2001 2:04 PM
> To: '[EMAIL PROTECTED]'
> Subject: [PHP-DB] Variables in a loop
>
>
Lookup "Variable Variables" in the PHP manual. You'll use something like:
${$i}
-Original Message-
From: LeTortorec, Jean-Louis [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 29, 2001 3:04 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP-DB] Variables in a loop
I
From: LeTortorec, Jean-Louis <[EMAIL PROTECTED]>
Date: Mon, Oct 29, 2001 at 04:03:45PM -0500
Message-ID: <615315231286D21182E40008C7B1EED23C6E76@COMPAQ3000>
Subject: [PHP-DB] Variables in a loop
> I'm trying to write a loop to read variables I
try
and
for ($i=1; $i<=10; $i++) { $tab[$i]=$a[$i] ;}
This way $a will be a array.
Hope it helps
Bruno Gimenes Pereti.
- Original Message -
From: "LeTortorec, Jean-Louis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 29, 2001
-0500
>Message-ID: <615315231286D21182E40008C7B1EED23C6E76@COMPAQ3000>
>Subject: [PHP-DB] Variables in a loop
>
> > I'm trying to write a loop to read variables I receive from a form:
> >
> >
> >
> >
> >
> >
> >
> >
> > I
Hi,
I am starting to us functions with my work but I am having troubles
With the variables in the functions..
If I have the following function called from my page it will work but the
variable wont
($username)
but if I put this code straight on the page then it works fine..
Any reason for the va
If this is an exact copy of your script, then you've surrounded each
variable name in the VALUES(...) with back-ticks. Why?
-Original Message-
From: plague [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 12:57 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Variables in MySQL I
ED]]
> Sent: Friday, August 24, 2001 12:57 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] Variables in MySQL Insert Queries
>
>
> I am using this code to connect to my database and insert form data from
> a
> user:
>
> $connect = mysql_connect("my
7 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Variables in MySQL Insert Queries
I am using this code to connect to my database and insert form data from a
user:
$connect = mysql_connect("myhost","user","pass") or die (" not connected");
@mysql_select_db("
You are using a variable outside of the function's scope.
In the function, do this:
global $username;
Visit www.php.net/man to get a better understanding of globals and
scope.
On Wed, 2003-10-15 at 22:10, Adam Symonds wrote:
> Hi,
> I am starting to us functions with my work but I am having troub
Or pass the variable $username as an argument into your function:
function LoginSystem($username) {
// your function code
}
LoginSystem($username);
ck
--
Cheap Domain Registration | Web Hosting | Email Packages | + more
Fantastic prices -- Even better service.
http://www.hosttohost.net
Chris
Hola,
tengo una función en PHP que me lee de un fichero una configuración de
unas tablas de BBDD, quiero que el nombre de las tablas así como los
datos de conexión, me queden residentes en unas variables de sesión.
Cuando registro las variables dentro de la función, al acceder desde
cualquier otr
, copying, distribution or
any action taken omitted to be taken in reliance of it, is prohibited and
may be unlawful.
-Original Message-
From: _netPerceptions?= [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 13 december 2002 12:33
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Variables de SESSION dentro
Hi Francisco José Saiz netPerceptions,
would you be so kind and repeat your mail in english.
Regards,
Ruprecht
--
Ruprecht Helms IT-Service und Softwareentwicklung
Tel/Fax.: +49[0]7621 16 99 16
Homepage: http://www.rheyn.de
email: [EMAIL PROTECTED
t Helms [mailto:[EMAIL PROTECTED]]
Sent: 13 December 2002 12:32
To: Francisco José Saiz :@mayn.de: netPerceptions
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Variables de SESSION dentro de funciones PHP
Hi Francisco José Saiz netPerceptions,
would you be so kind and repeat your mail in english.
Re
2 1:08 PM
To: '_netPerceptions?='; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Variables de SESSION dentro de funciones PHP
english please!!!
___
Mark Snijders, Developer
Atos Origin
Groenewoudeseweg 1, Room VN-515
5621 BA Eindhoven, The Netherlands
* : [EMA
Thanks, I'll try it now.
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 1:49 PM
To: Francisco José Saiz :: netPerceptions
Subject: Re: [PHP-DB] Variables de SESSION dentro de funciones PHP
You're mixing register_globals o
43 matches
Mail list logo