andrisp Posted June 13, 2005 Report Share Posted June 13, 2005 $izsaukums = mysql_query("SELECT MIN(datums) FROM `klienti_piet_piesl`"); $izsaukums2 = mysql_query("SELECT MIN(datums) FROM `firmas_piet_piesl`"); kur probleema shajos kverijos ??? mysql_fetch_array bljauj, ka not vali mysql result resource Link to comment Share on other sites More sharing options...
v3rb0 Posted June 13, 2005 Report Share Posted June 13, 2005 echo mysql_error(); aiz $izsaukums = .. Link to comment Share on other sites More sharing options...
bubu Posted June 13, 2005 Report Share Posted June 13, 2005 Varbūt tabula tukša? Link to comment Share on other sites More sharing options...
Kavacky Posted June 13, 2005 Report Share Posted June 13, 2005 Varbūt tabula tukša?Vai tad gadījumā, ja neko neatrod, izmet kļūdu? Link to comment Share on other sites More sharing options...
Delfins Posted June 13, 2005 Report Share Posted June 13, 2005 Varbūt tabula tukša?Vai tad gadījumā, ja neko neatrod, izmet kļūdu? 18495[/snapback] cik atceros, tad RES laikam jābūt pareizam nevis false,... jo mysql_num_rows ir jāmāk pateikt ik ir ROWS iekšā... mysql_query() will also fail and return FALSE if the user does not have permission to access the table(s) referenced by the query. Link to comment Share on other sites More sharing options...
bubu Posted June 13, 2005 Report Share Posted June 13, 2005 Varbūt tabula tukša?Vai tad gadījumā, ja neko neatrod, izmet kļūdu? 18495[/snapback] Nē, atgriezīs NULL. Agregātfunkcijas nekad neizmetīs kļūdu, ja rezultāts būs tukšs (tb nosacījumam neatbilst neviena rindiņa, vai arī vispār rindiņu nav). Link to comment Share on other sites More sharing options...
andrisp Posted June 13, 2005 Author Report Share Posted June 13, 2005 njeah, atkal probleema bija mana pasha neuzmaniiba, atvainojos par trauceeshanu :) biju noraadiijis nepareizo db pie kaa sleedzas - shame on me Link to comment Share on other sites More sharing options...
Delfins Posted June 13, 2005 Report Share Posted June 13, 2005 njeah, atkal probleema bija mana pasha neuzmaniiba, atvainojos par trauceeshanu :) biju noraadiijis nepareizo db pie kaa sleedzas - shame on me 18502[/snapback] nu fakers, kā saka skolā "Sēdies, 1!" Link to comment Share on other sites More sharing options...
andrisp Posted June 13, 2005 Author Report Share Posted June 13, 2005 nevajg jau lamaaties ;) skolotaajiem skolaa ar nav labi lamaaties Link to comment Share on other sites More sharing options...
Recommended Posts