Guest User

Untitled

a guest
Jan 10th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. $dbconnSrc = pg_connect("host=$dbhost dbname=$dbname user=$dbuser password=$dbpass") or die ("Could not connect");
  2.  
  3. $sql="select area, radius from circle where level>50;
  4.  
  5. $res = pg_query($dbconnSrc, $sql);
  6. var_dump(isset($res));
  7. echo "$resn";
  8. while($row = pg_fetch_array($res, NULL, PGSQL_ASSOC))
  9. {
  10. $radius=$row["radius"];
  11. print "radius is $radiusn";
  12. if (isset($radius)){
  13. echo "NOT NULLn";
  14. }
  15. else
  16. {
  17. echo "NULLn";
  18. }
  19. }
Add Comment
Please, Sign In to add comment