[PHP-DB] Variables

2002-04-25 Thread Julio Cuz, Jr.
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

[PHP-DB] Variables

2002-11-08 Thread Steve Dodkins
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

[PHP-DB] Variables

2001-02-22 Thread Julio Cuz, Jr.
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

[PHP-DB] variables

2001-03-29 Thread Scott Kalbach
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

[PHP-DB] variables

2001-08-22 Thread J-E-N
Hello there. Is there a way to know whether a variable was passed by a form or just typed from the address bar?

RE: [PHP-DB] Variables

2002-04-25 Thread Ryan Jameson (USA)
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

RE: [PHP-DB] Variables

2002-04-25 Thread Ryan Jameson (USA)
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

[PHP-DB] variables gone?

2002-05-29 Thread Rob Fraser
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

RE: [PHP-DB] Variables

2002-11-08 Thread Hutchins, Richard
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 >

[PHP-DB] Variables & Forms

2007-10-16 Thread Ron Piggott
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

Re: [PHP-DB] variables

2001-03-29 Thread Terry Romine
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

Re: [PHP-DB] variables

2001-03-29 Thread Phil Jackson
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

RE: [PHP-DB] variables

2001-08-22 Thread Beau Lebens
- // 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

Re: [PHP-DB] variables gone?

2002-05-29 Thread Ed Gorski
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

RE: [PHP-DB] variables gone?

2002-05-29 Thread Mark Roedel
> 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

RE: [PHP-DB] Variables & Forms

2007-10-17 Thread Bastien Koert
> 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

Re: [PHP-DB] Variables & Forms

2007-10-17 Thread Niel Archer
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

[PHP-DB] Variables and DB

2001-04-19 Thread Rui Machado
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

[PHP-DB] Variables Not Staying Set

2002-08-09 Thread MET
...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

[PHP-DB] Variables coming from forms

2002-09-21 Thread Achilles Maroulis
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

[PHP-DB] Variables in database content

2004-05-23 Thread Brian Stoffer
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

Re: [PHP-DB] Variables and DB

2001-04-19 Thread Johannes Janson
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 >

[PHP-DB] Variables in a loop

2001-10-29 Thread LeTortorec, Jean-Louis
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.

RE: [PHP-DB] Variables coming from forms

2002-09-22 Thread Peter Lovatt
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

RE: [PHP-DB] Variables in database content

2004-05-23 Thread Sunmaia
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

[PHP-DB] Variables in MySQL Insert Queries

2001-08-23 Thread plague
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

RE: [PHP-DB] Variables in a loop

2001-10-29 Thread Mark Newnham
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 > >

RE: [PHP-DB] Variables in a loop

2001-10-29 Thread Rick Emery
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&#x

Re: [PHP-DB] Variables in a loop

2001-10-29 Thread
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

Re: [PHP-DB] Variables in a loop

2001-10-30 Thread Bruno Gimenes Pereti
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

Re: [PHP-DB] Variables in a loop

2001-10-30 Thread Jason G.
-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

[PHP-DB] Variables not working within Functions

2003-10-15 Thread Adam Symonds
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 won’t ($username) but if I put this code straight on the page then it works fine.. Any reason for the va

RE: [PHP-DB] Variables in MySQL Insert Queries

2001-08-24 Thread Rick Emery
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

RE: [PHP-DB] Variables in MySQL Insert Queries

2001-08-24 Thread KSchneider
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

RE: [PHP-DB] Variables in MySQL Insert Queries

2001-08-25 Thread Howard Picken
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("

Re: [PHP-DB] Variables not working within Functions

2003-10-15 Thread Chris Wanstrath
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

Re: [PHP-DB] Variables not working within Functions

2003-10-19 Thread Colin Kettenacker
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

[PHP-DB] Variables de SESSION dentro de funciones PHP

2002-12-13 Thread Francisco José Saiz : : netPerceptions
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

RE: [PHP-DB] Variables de SESSION dentro de funciones PHP

2002-12-13 Thread Snijders, Mark
, 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

RE: [PHP-DB] Variables de SESSION dentro de funciones PHP

2002-12-13 Thread Ruprecht Helms
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

RE: [PHP-DB] Variables de SESSION dentro de funciones PHP

2002-12-13 Thread Michael Hazelden
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

RE: [PHP-DB] Variables de SESSION dentro de funciones PHP

2002-12-13 Thread Francisco José Saiz : : netPerceptions
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

RE: [PHP-DB] Variables de SESSION dentro de funciones PHP

2002-12-13 Thread Francisco José Saiz : : netPerceptions
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