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);
: 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
/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
[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
] 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
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
-
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
- 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
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
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
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
, 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
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');
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
14 matches
Mail list logo