RaitisRR Posted January 23, 2007 Report Posted January 23, 2007 Ka lai pareizi izvadu datus no kadas konkretas datu bazes tabulas ... plz paradiet kadu piemeru ...
RaitisRR Posted January 23, 2007 Author Report Posted January 23, 2007 man vajg no datubazes Forums izdrukat tabulu - phpbb_banlist
Hamlets Posted January 23, 2007 Report Posted January 23, 2007 (edited) http://paste.php.lv/5018 Nezinot tabulas struktūru neko labāku nevaru piedāvāt. Edited January 23, 2007 by Hamlets
RaitisRR Posted January 23, 2007 Author Report Posted January 23, 2007 Tnx pa to pashu es jau pats izpipeju kur man bij kluuda - bet nu tnx tapat !! :) pec neguletas nakts piellavu stulbu neuzmanibas kluudu un tapec ar bij tadz tizls jautaajums... :D
RaitisRR Posted January 23, 2007 Author Report Posted January 23, 2007 (edited) Man jauns jautajums vai rakstu pareizi - if ($row['ban_userid'] =" ") tad neizdrukaa ? man vajg panakt ja id ir mazaks par 3 tad lai vinsh neko nedruka araa ... Edited January 23, 2007 by RaitisRR
bubu Posted January 23, 2007 Report Posted January 23, 2007 = un == ir divas dažādas operācijas. = http://www.php.net/manual/en/language.oper....assignment.php == http://www.php.net/manual/en/language.oper....comparison.php
andrisp Posted January 23, 2007 Report Posted January 23, 2007 (edited) Ja jau vajag, lai neizdrukā tos, kur id mazāks par 3, tad tā arī raksti: if ($row['ban_userid'] >= 3) { // izdrukajam } Edited January 23, 2007 by andrisp
v3rb0 Posted January 23, 2007 Report Posted January 23, 2007 (edited) tad kāpēc vispār no db vilkt ārā, ja tālāk tāpat neizdrukās .. where id < 3 Edited January 23, 2007 by v3rb0
Recommended Posts