RE: [PHP] Getting values?

2004-06-18 Thread Robert Sossomon
THANKS!! Worked like a charm. Robert -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Friday, June 18, 2004 8:52 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Getting values? On Friday 18 June 2004 20:38, Robert Sossomon wrote: > if ($_POST[comment-$i] != "

Re: [PHP] Getting values?

2004-06-18 Thread Jason Wong
On Friday 18 June 2004 20:38, Robert Sossomon wrote: > if ($_POST[comment-$i] != "") Put double-quotes around your array subscripts. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Devel

RE: [PHP] Getting values?

2004-06-18 Thread Jay Blanchard
[snip] I have a form that uses -$i in it to create multiple write boxes for editing the information. It then passes that information to another script that read through and modifies the DB based on the information. I have this code in my parsing script and I know it is BC of the way I am accessin

RE: [PHP] getting values from objects

2003-04-02 Thread Ford, Mike [LSS]
> -Original Message- > From: Charles Kline [mailto:[EMAIL PROTECTED] > Sent: 01 April 2003 21:21 > To: Dan Joseph > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] getting values from objects > > > My objective was to try and NOT use a temporary variable. >

Re: [PHP] getting values from objects

2003-04-01 Thread Charles Kline
My objective was to try and NOT use a temporary variable. for example I can do this: foreach ($res_pform->getSubmitValue("investigator5") AS $k=>$v){ echo $k . ""; } I was just wondering in other circumstances, how I can maybe just get to the value of one of the keys without setting it f

Re: [PHP] getting values from objects

2003-04-01 Thread Jason Wong
On Wednesday 02 April 2003 03:58, Charles Kline wrote: > $res_pform->getSubmitValue("investigator5"); > > returns an array, how do I get to the individual values in that array > without first setting it to a variable like: > > $myvar = $res_pform->getSubmitValue("investigator5"); > > echo $myvar['

RE: [PHP] getting values by a joints mysql query

2002-06-20 Thread Lazor, Ed
You need to establish a relation between the two tables to complete the join with something like: AND G.GID = U.GID Also, this is not a PHP related question. You should also be directing this to the MySQL mailing list. > -Original Message- > Im having problem in getting the the

RE: [PHP] Getting values of duplicate keys in array

2002-04-11 Thread Christoph Starkmann
Hi Michael... > hmm...he has a table for premises and one for doctors, hasn't he? > > FROM $medTable m, > > $praxTable p He has ;)) Cheers, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-69.com/ ICQ: 100601600 -- -- PHP G

Re: [PHP] Getting values of duplicate keys in array

2002-04-11 Thread Michael Virnstein
hmm...he has a table for premises and one for doctors, hasn't he? > FROM $medTable m, > $praxTable p "Justin French" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Just a quick note, you wouldn't base it upon $description would you? > It reall

RE: [PHP] Getting values of duplicate keys in array

2002-04-11 Thread Christoph Starkmann
Hi Justin! > By testing for (shared house), you'd end up grouping them > together like > this: > > Fred Flintstone > Wilma Flintstone > Homer Simpson > Marge Simpson > Bedrock > (shared house) > > ... which isn't your intended result. Yes it is ;) What you write is right but this is how

Re: [PHP] Getting values of duplicate keys in array

2002-04-11 Thread Justin French
Just a quick note, you wouldn't base it upon $description would you? It really depends on your data, but consider these four records: Fred Flintstone Bedrock (shared house) Wilma Flintstone Bedrock (shared house) Homer Simpson Springfield (shared house) Marge Simpson Springfield (shared house)

Re: [PHP] Getting values

2002-04-09 Thread ayukawa
Hello, See the manual of mysql_fetch_row(). Good luck! Hiroshi Ayukawa http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Getting values of Checkboxes

2002-03-18 Thread Kearns, Terry
If a heckbox is left blank, then the webserver does not pass it's name/value pair on to the PHP processor. This means that if you have And the box is not checked, then when your script recieves the form, $_POST['foo'] will not be available. So to test for it, use isset($_POST['foo']) to see if

RE: [PHP] Getting values of Checkboxes

2002-03-18 Thread Martin Towell
try $_POST['name_of_the_checkbox'] or just $name_of_the_checkbox (if you have register_globals set to on) -Original Message- From: Daniel Ferreira Castro [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 1:27 PM To: [EMAIL PROTECTED] Subject: [PHP] Getting values of Checkboxes I

Re: [PHP] getting values from multiple select

2002-03-14 Thread Scott St. John
On Thu, 14 Mar 2002, Erik Price wrote: > Sure! First go get a cup of coffee! :) > Then change the first line to say this: > > Let me know how that works for you. Erik- I don't do coffee, but the Iced Tea works just as well :) Thank you, all is well and my happy face is back on. I was missi

Re: [PHP] getting values from multiple select

2002-03-14 Thread Erik Price
On Thursday, March 14, 2002, at 09:52 AM, Scott St. John wrote: > Ok, how about a code snipet since I seem to be blind this morning. The > select box code: > > > $sql = "select groupID,groupName from groups order by groupName"; > ... > Any eye openers? Thanks, > > -Scott Sure! First g

Re: [PHP] getting values from multiple select

2002-03-14 Thread Scott St. John
Ok, how about a code snipet since I seem to be blind this morning. The select box code: $groupName"; } ?> On the next page I tried the code Erik recommended doing this: foreach ($groups as $group_list){ echo $group_list; } Any eye openers? Thanks, -Scott On Thu, 14 Mar 2002, E

Re: [PHP] getting values from multiple select

2002-03-14 Thread Erik Price
On Thursday, March 14, 2002, at 09:33 AM, Scott St. John wrote: > Yes, I have tried that. To view them on the next page I would call > them as $choice[0];$choice[1];, etc, but only the first item in the list > is available. Hm... have you tried using a loop to get their values, rather than us

Re: [PHP] getting values from multiple select

2002-03-14 Thread Scott St. John
Yes, I have tried that. To view them on the next page I would call them as $choice[0];$choice[1];, etc, but only the first item in the list is available. -Scott On Thu, 14 Mar 2002, Erik Price wrote: > Did you try putting brackets at the end of the input names? This tells > PHP to put the v

Re: [PHP] getting values from multiple select

2002-03-14 Thread Erik Price
On Wednesday, March 13, 2002, at 04:31 PM, Scott St. John wrote: > If I send 5 fields to the next page PHP will show me one when I echo the > variable to the page. If I try to split the varaiable I still get only > one value in the echo. Tried to reponse.write it in asp and I get the > string

RE: [PHP] getting values from multiple select

2002-03-14 Thread Ford, Mike [LSS]
> -Original Message- > From: Scott St. John [mailto:[EMAIL PROTECTED]] > Sent: 13 March 2002 21:32 > > I am working on a javascript box that will allow the user to > drag values > from one select box to another. I will use this box to set > the values. > This is a standard, multiple s

Re: [PHP] getting values inside PHP from outside script

2001-08-26 Thread Scott Mebberson
thanks heaps mate. "Chris Lambert" <[EMAIL PROTECTED]> wrote in message 000c01c12e95$b217e600$6401a8c0@server">news:000c01c12e95$b217e600$6401a8c0@server... > The easy & ugly one line solution: > > $csvalues = explode(",", implode("", > file("http://au.finance.yahoo.com/d/quotes.csv?s=NAB

Re: [PHP] getting values inside PHP from outside script

2001-08-26 Thread Chris Lambert
The easy & ugly one line solution: $csvalues = explode(",", implode("", file("http://au.finance.yahoo.com/d/quotes.csv?s=NAB&m=a&f=sl1d1t1c1ohgv&e=. csv"))) /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */

Re: [PHP] getting values from apache_lookup_uri()

2001-04-24 Thread Rasmus Lerdorf
> $var apache_lookup_uri("file"); What is your exact line? It obviously isn't that. Something like: $var = apache_lookup_uri("/path/file.html"); should work just fine. You need to pass this function a URI. A URI being the part of a URL after the hostname but including the leading / -Rasm

Re: [PHP] Getting values for posted form in HASH array rather than just variables.

2001-02-19 Thread David Robley
On Tue, 20 Feb 2001 08:56, Matthew Toledo wrote: > SUBJECT: Getting values for posted form in HASH array rather than just > variables. > > I've been using perl for a while and am just starting with PHP. I like > it. > > Is there an array that holds all the information that was submitted via > a F