Article View: pl.comp.lang.php
Article #2206Re: MySQL, PHP i proste zapytanie.
From: Marcin
Date: Tue, 04 Sep 2001 20:53
Date: Tue, 04 Sep 2001 20:53
13 lines
1247 bytes
1247 bytes
> Czy ktos sie moze domysla gdzie popelnilem blad?
prawdopodobnie zapytanie nie zwraca zadnych wartosci -
mysql_fetch_row nie twozy zmiennych dla ktorych wartosc
wynosi NULL - mozesz wiec najpierw sprawdzic czy
zostaly zwrocone jakies rekordy, np.:
if(mysql_num_rows($result)==0) {
print("nie znaleziono danych");
exit;
}
Marcin
Technical Details
Message-ID:
<9n3equ$t20$1@news.tpi.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mailReferences:
<9n3b7h$50j$1@news.tpi.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail From: "Marcin" <marcin@sdi.pl> Newsgroups: pl.comp.lang.php Subject: Re: MySQL, PHP i proste zapytanie. Date: Tue, 4 Sep 2001 22:53:15 +0200 Organization: tp.internet - http://www.tpi.pl Lines: 15 Message-ID: <9n3equ$t20$1@news.tpi.pl> References: <9n3b7h$50j$1@news.tpi.pl> NNTP-Posting-Host: pa154.pradnik-czerwony.sdi.tpnet.pl X-Trace: news.tpi.pl 999636638 29760 217.96.219.154 (4 Sep 2001 20:50:38 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: 4 Sep 2001 20:50:38 GMT X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit