🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #219988

Re: za duza liczba?

#219988
From: albert
Date: Tue, 04 Aug 2009 11:26
14 lines
1737 bytes
>> oo ale sie porobilo faktycznie :) a ja w takim razie sprawdzic czy ten
>> checkbox ma byc zaznaczony? chodzi o sposob najszybszy...
>>
>> <input type="checkbox" name="table[]"
>> value="'.$in.'"'.(array_sum($_POST['table'] & $in ? ' checked' : '').'>
>
> Przerobić na tablicę asocjacyjną.

No tak, ale jak pobieram dane z DB pole SET
SELECT myset+0 FROM table;to mam jedna duuuza liczbe (suma liczb wszystkich 
zaznaczonych opcji)...oczywiscie moge pobierac SELECT myset FROM table , ale 
o ile roboty wiecej :)w pierwszym wypadku robie tylko .($zBazki['myset'] & 
$in ? ' checked' : '') i bylo po ptakach , a tu najpierw tablica .... no 
trudno inaczej sie chyba nie da, chyba, ze ogranicze do 32 slowniczek :) 
Technical Details
Message-ID: <h595st$nif$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
References: <h569e8$tns$1@news.onet.pl> <h56grd$5tg$1@nemesis.news.neostrada.pl> <h56kem$tna$1@news.onet.pl> <h56psq$jaa$1@nemesis.news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
From: "albert" <qwerty1231@vp.pl>
Newsgroups: pl.comp.lang.php
Subject: Re: za duza liczba?
Date: Tue, 4 Aug 2009 13:26:21 +0200
Organization: http://onet.pl
Lines: 16
Message-ID: <h595st$nif$1@news.onet.pl>
References: <h569e8$tns$1@news.onet.pl> <h56grd$5tg$1@nemesis.news.neostrada.pl> <h56kem$tna$1@news.onet.pl> <h56psq$jaa$1@nemesis.news.neostrada.pl>
Reply-To: "albert" <qwerty1231@vp.pl>
NNTP-Posting-Host: 78-131-216-98.tktelekom.pl
X-Trace: news.onet.pl 1249385181 24143 78.131.216.98 (4 Aug 2009 11:26:21 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Tue, 4 Aug 2009 11:26:21 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit