At 10:46 -0800 12/14/01, Richard S. Crawford wrote:
>At the risk of sounding like a browser-snob...
>
>The quotes probably don't matter in IE, but that's primarily IE
>allows (and, in my opinion, encourages) bad coding practices.
>
>Your "echo" command really ought to look like this:
>
>echo "" .
At the risk of sounding like a browser-snob...
The quotes probably don't matter in IE, but that's primarily IE allows
(and, in my opinion, encourages) bad coding practices.
Your "echo" command really ought to look like this:
echo "" . $row["name"] .
"\n";
Many coders even forget to put in the
gt;%s", $myrow["colorname"], $myrow["colorname"]);
> I also prefer to use printf(" so it has the value in
> quotes - just a fussy html thing i do though.
>
> -Original Message-
> From: Matthew Crouch [mailto:[EMAIL PROTECTED]]
> Sent: 13 Decem
> I also prefer to use printf(" so it has the value in
> quotes - just a fussy html thing i do though.
If you like your code to be legible in a browser's 'View Source' function
(which can sometimes be helpful for debugging), you can also add a newline
"\n" character to the end of each option line
;
I also prefer to use printf(" so it has the value in
quotes - just a fussy html thing i do though.
-Original Message-
From: Matthew Crouch [mailto:[EMAIL PROTECTED]]
Sent: 13 December 2001 22:58
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Re: Dynamically populating a dropdown box
I
or alternatively, you can download a drop down box populating class from
http://phpclasses.upperdesign.com/
- Original Message -
From: "Matthew Crouch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 14, 2001 6:57 AM
Subject: [PHP-DB] Re: Dy
I'm no expert, and my code is probably buggy, but I think this is the gist of it:
%s", $myrow["colorid"], $myrow["colorname"]);
}
?>
Chris Payne wrote:
> Hi there everyone,
>
> I have a shopping cart which is starting to work nicely, but I have to select
>size/color from the entries, how do