[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] liste enum i mysql fra php



On Wed, 2004-08-25 at 13:08, Atte André Jensen wrote:

> Jeg har en tabel i mysql med et felt defineret som 
> enum('opt1','opt2','opt3'). Nu vil jeg gerne lave en forespørgsel fra 
> php som giver mig listen af mulige options i samme rækkefølge som de er 
> defineret i, altså i dette tilfælde opt1, opt2 og opt3.

Bare af nysgerrighed, hvorfor vil du det?

IMHO er enums til for at lette programmøren, ergo ved programmøren også
hvilket mulige en enum kan indtage. 

Jeg kunne umiddelbart ikke finde en metode til at vise et dumænes værdi
mængde med. 

Mvh,
Bo




 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *