Mikijs Posted February 27, 2008 Report Share Posted February 27, 2008 amm daudz jau nav jastasta =/ vnk rada ka nav vestulu =/ bet ir 3 ieraksti $query=pg_query("SELECT * FROM izejosas WHERE test='test@localhost'"); if(!pg_num_rows($query)){ echo 'Nav izejošo vestulu'; }else{ echo "Ir izejošas vestules"; } Link to comment Share on other sites More sharing options...
Mikijs Posted February 27, 2008 Author Report Share Posted February 27, 2008 vispar man =/ lol vinjs nekadu atbildi nedod izmantojot pg_num_rows(...); meiginaju pilnas tables palaist bet neka =/ Link to comment Share on other sites More sharing options...
Mikijs Posted February 27, 2008 Author Report Share Posted February 27, 2008 atvainojos par lieko topic - iesaku visiem nakotne pirms postosanas parbaudit vai ir savienojums! pg_connect("host=localhost dbname=db user=user password=paswrod") or die('Nevaru savienoties ar datubazi: ' . pg_last_error());[/cide] Link to comment Share on other sites More sharing options...
Recommended Posts