Article View: pl.comp.lang.php
Article #220131Re: wiec jak to bedzie dla for:)?
From: northman
Date: Wed, 12 Aug 2009 10:52
Date: Wed, 12 Aug 2009 10:52
13 lines
1671 bytes
1671 bytes
<?php
for ($i=0;$i<$totalRows;$i++){
$myrow = mysql_fetch_row($tables_query);
echo ('<option value='.'"'.$i.'">'.$myrow[0].'</option>');
}
?>
w ten sposób działa, drogą dedukcji stwierdzam, że mysql_fetch_row pobiera
rekord z bazy i pamięta pozycję, bo następnym razem
pobiera następny rekord. Ja miałem trochę inną filozofię myślenia, ale
właśnie w teraz już rozumiem, jak wykorzystywać tą funkcję.
Człowiek uczy się na błędach.:)
Pozdrawiam i dziękuję za oddany czas!
Technical Details
Message-ID:
<h5u6sf$o34$1@inews.gazeta.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailReferences:
<h5rtoi$6og$1@inews.gazeta.pl> <51d9.000002ad.4a81d52f@newsgate.onet.pl> <h5to0u$da0$1@inews.gazeta.pl> <4A82836C.5090600@phpencoder.R3m0v3.pl> <h5u595$h0c$1@inews.gazeta.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail From: "northman" <northmantif@gazeta.pl> Newsgroups: pl.comp.lang.php Subject: Re: wiec jak to bedzie dla for:)? Date: Wed, 12 Aug 2009 12:52:07 +0200 Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 15 Message-ID: <h5u6sf$o34$1@inews.gazeta.pl> References: <h5rtoi$6og$1@inews.gazeta.pl> <51d9.000002ad.4a81d52f@newsgate.onet.pl> <h5to0u$da0$1@inews.gazeta.pl> <4A82836C.5090600@phpencoder.R3m0v3.pl> <h5u595$h0c$1@inews.gazeta.pl> NNTP-Posting-Host: ip-94-42-31-95.multimo.pl X-Trace: inews.gazeta.pl 1250074319 24676 94.42.31.95 (12 Aug 2009 10:51:59 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Wed, 12 Aug 2009 10:51:59 +0000 (UTC) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Priority: 3 X-RFC2646: Format=Flowed; Response X-User: northmantif2 X-Antivirus: avast! (VPS 090811-0, 2009-08-11), Outbound message X-MSMail-Priority: Normal X-Antivirus-Status: Clean X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit