Jump to content
php.lv forumi

probleemas sintakseE?


Mikijs

Recommended Posts

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

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...