Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2020
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. // get id upload
  2. public function getid(){
  3. $db = new mysqli("localhost","root","", "rubrica");
  4. if ($db-> connect_errno) {
  5. exit();
  6. }
  7. $nome = $this->unome;
  8. $cognome = $this->ucognome;
  9. $email = $this->uemail;
  10. $telefono = $this->utel;
  11. $query = $db->query("SELECT id FROM users WHERE nome='$nome' and cognome='$cognome' and email='$email' and telefono='$telefono'");
  12. $id = $query->fetch_assoc()['id'];
  13. $db->close();
  14. return $id;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement