[PHP] Building Dynamic Value list using ohp

2001-09-26 Thread George Pitcher
Hi all, I'm having a problem with dynamically building a value list. My code: ?php mysql_connect ('localhost', 'root', 'monty'); mysql_select_db ('Heronsql'); $query = (select HEI from heronuser); // LINE 22 on original script $result = mysql_query($query, $mysql_link);

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread George Pitcher
: Wednesday, September 26, 2001 2:46 PM Subject: Re: [PHP] Building Dynamic Value list using ohp hi! try: $query = select HEI from heronuser; // line 22 greetinx! gottfried Hi all, I'm having a problem with dynamically building a value list. My code: ?php mysql_connect

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Derek Mailer
/ref.mysql.php - Original Message - From: George Pitcher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, September 26, 2001 2:54 PM Subject: Re: [PHP] Building Dynamic Value list using ohp Thanks Gottfried, but that doesn't change the response I get. Any more

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Derek Mailer
[EMAIL PROTECTED] Sent: Wednesday, September 26, 2001 2:46 PM Subject: Re: [PHP] Building Dynamic Value list using ohp hi! try: $query = select HEI from heronuser; // line 22 greetinx! gottfried Hi all, I'm having a problem with dynamically building a value list. My

RE: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Maxim Maletsky \(PHPBeginner.com\)
] Building Dynamic Value list using ohp Hi all, I'm having a problem with dynamically building a value list. My code: ?php mysql_connect ('localhost', 'root', 'monty'); mysql_select_db ('Heronsql'); $query = (select HEI from heronuser); // LINE 22 on original script $result = mysql_query

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread George Pitcher
suggestions (please)? George - Original Message - From: Maxim Maletsky (PHPBeginner.com) [EMAIL PROTECTED] To: 'George Pitcher' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, September 26, 2001 3:17 PM Subject: RE: [PHP] Building Dynamic Value list using ohp 1. this: print(option

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Steve Cayford
- From: George Pitcher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, September 26, 2001 2:54 PM Subject: Re: [PHP] Building Dynamic Value list using ohp Thanks Gottfried, but that doesn't change the response I get. Any more suggestions. George P in Edinburgh

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Sheridan Saint-Michel
- Original Message - From: George Pitcher [EMAIL PROTECTED] To: Maxim Maletsky (PHPBeginner.com) [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, September 26, 2001 9:42 AM Subject: Re: [PHP] Building Dynamic Value list using ohp Thanks for everyone's help but this is still

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Derek Mailer
Subject: Re: [PHP] Building Dynamic Value list using ohp Thanks for everyone's help but this is still failing to work. Revised code is: ?php $link = mysql_connect ('localhost', '', '') or die (Could not select db); mysql_select_db ('Heronsql') or die (Could not connect

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread George Pitcher
right now. George - Original Message - From: Sheridan Saint-Michel [EMAIL PROTECTED] To: George Pitcher [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, September 26, 2001 4:00 PM Subject: Re: [PHP] Building Dynamic Value list using ohp - Original Message - From: George

RE: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Maxim Maletsky \(PHPBeginner.com\)
What error do you see, George? Maxim Maletsky www.PHPBeginner.com -Original Message- From: Sheridan Saint-Michel [mailto:[EMAIL PROTECTED]] Sent: mercoledì 26 settembre 2001 17.01 To: George Pitcher; [EMAIL PROTECTED] Subject: Re: [PHP] Building Dynamic Value list using ohp

RE: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Maxim Maletsky \(PHPBeginner.com\)
, 2001 3:42 PM Subject: Re: [PHP] Building Dynamic Value list using ohp Thanks for everyone's help but this is still failing to work. Revised code is: ?php $link = mysql_connect ('localhost', '', '') or die (Could not select db); mysql_select_db ('Heronsql') or die (Could

RE: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Philip Olson
The reason for it is that within double quote you can parse for 'simple' variables only (es: $var, not $var[]). Otherwise it gives you a parse error. Just a quick note, this is partially true. The following works : error_reporting(E_ALL); $arr = array ('a' = 'apple','b' = 'banana');

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Evan Nemerson
On another side-note, I haven't had trouble with echo foo $arr[$a] which is very handy in loops (especially for, while, and foreach) Also, nice to have you back, Maxim On Wednesday 26 September 2001 09:28 am, you wrote: The reason for it is that within double quote you can parse for