Aleksejs Posted September 29, 2005 Report Share Posted September 29, 2005 Varbūt tava servera konfigurācija neatpazīst <? kā php tagu, pamēģini visur izmantot <?php Link to comment Share on other sites More sharing options...
Snukzz Posted September 30, 2005 Author Report Share Posted September 30, 2005 hmmm... kaads vareetu izskatiities skripc kas saka : ja db nekaa nav tad echo "Tuksh" ? Atsvaidziniet man atminju luudzu! Link to comment Share on other sites More sharing options...
bubu Posted September 30, 2005 Report Share Posted September 30, 2005 Tu mūs āzē? Izselektē tabula ierakstu skaitu, un izdomā ar kādu skaitli tas jāsalīdzina, lai noteiktu vai tā ir tukša... Link to comment Share on other sites More sharing options...
Snukzz Posted September 30, 2005 Author Report Share Posted September 30, 2005 Tu mūs āzē? 23510[/snapback] nee... :P ... atradu kas par kjezu... kaut kas ar MySQL bij samugiijies - paarliku pa jaunam un viss aizgaaja! :lol: Link to comment Share on other sites More sharing options...
Snukzz Posted September 30, 2005 Author Report Share Posted September 30, 2005 (edited) Vai shaads kods speej paarbaudiid arii tukshas MySQL atgrieztas veertiibas? :blink: pieprasaam tabulai jebko $res=mysql_query('SELECT TO... $row=mysql_fetch_row($res); if (empty($res)) { echo 'Ieraxtu nav!'; } else{ .... } daram kaut ko citu Par shito teemu es webaa neko nevareeju atrast! Man principaa vajag kodu kas izcheko, vai mysql atgriez veertiibu. Edited September 30, 2005 by Snukzz Link to comment Share on other sites More sharing options...
bubu Posted September 30, 2005 Report Share Posted September 30, 2005 Es tak tev teicu - izselektē skaitu un salīdzini ar skaitli: select count(*) from tabule Ar kādu skaitli salīdzināt - izdomā pats. Link to comment Share on other sites More sharing options...
Recommended Posts