Guest User

Untitled

a guest
Apr 22nd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <?php
  2. $baglanti=pg_connect("host=localhost port=5432 user=postgres password=root dbname=postgres");
  3. $name="namequery";$surname="surnamequery";$city="cityquery";$otherinf="otherquery"; // I need a checkbox.
  4. $myquery=pg_query("select * from datatables where namecolumn='$name' and surnamecolumn='$surname' and citycolumn='$city' and othercolumn='$otherinf'");
  5. $user=pg_fetch_array($myquery);
  6. echo $user;
  7. ?>
Add Comment
Please, Sign In to add comment