Hmm.
http://marc.theaimsgroup.com/?l=php-general&m=106933918806372&w=2
> -Original Message-
> From: Alan Lord [mailto:[EMAIL PROTECTED]
Lord?! Wasn't one of those perl dark lords was it? :)
I'll try the code.
Jason Wong wrote:
> On Tuesday 24 February 2004 13:45, John Taylor-Johnston wr
>-Original Message-
>From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]
>Jason,
>Sigh ... What would I look for in the archives Jason?
>
>Don't see anything here that would give me a hint where to start Jason:
>
>http://www.php.net/manual-lookup.php?pattern=enum
umm that would be the onl
On Tuesday 24 February 2004 13:45, John Taylor-Johnston wrote:
> Sigh ... What would I look for in the archives Jason?
I had assumed you meant MySQL's enum field type which your other post
confirms. How about the obvious "mysql enum" ?
> Don't see anything here that would give me a hint where t
Jason,
Sigh ... What would I look for in the archives Jason?
Don't see anything here that would give me a hint where to start Jason:
http://www.php.net/manual-lookup.php?pattern=enum
I know you want to be helpful, and not send me back to the Dark Lords of Perl.
> On Tuesday 24 February 2004 11:
Chris,
>It's not obvious what language You mean,
Sorry. Let me explain. It's a MySQL field. I want to use PHP to read the parts of the
array of the MySQL field district:
district enum('part1','part2','part3','part4')
How do I get the array from my $table?
John
wrote:
> It's not obvious wha
It's not obvious what language You mean, but I think this will work for you:
$aDistrict = array('part1','part2','part3','part4');
foreach($aDistrict as $sDistrict)
{
echo '',$sDistrict,"\n";
}
Note: I'm using single quotes for some of the string chunks to eliminate the
multiple backslashes for t
On Tuesday 24 February 2004 11:57, John Taylor-Johnston wrote:
> Basically I have an enum field. I would like to extract the parts of the
> field to create some html.
[snip]
> Can I even do this?
yes
> How?
archives
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Softwar
On Mon, 2004-02-23 at 22:57, John Taylor-Johnston wrote:
> district enum('part1','part2','part3','part4')
>
> while (district??)
> {
> echo "".district[0]."
> }
Are you doing this in PHP? I do not think you can even create enums in
PHP.
--
Adam Bregenzer
[EMAIL PROTECTED]
http://adam.bregenzer
8 matches
Mail list logo