Mikijs Posted February 27, 2008 Report 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"; }
Mikijs Posted February 27, 2008 Author Report Posted February 27, 2008 vispar man =/ lol vinjs nekadu atbildi nedod izmantojot pg_num_rows(...); meiginaju pilnas tables palaist bet neka =/
Mikijs Posted February 27, 2008 Author Report 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]
Recommended Posts