Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // get id upload
- public function getid(){
- $db = new mysqli("localhost","root","", "rubrica");
- if ($db-> connect_errno) {
- exit();
- }
- $nome = $this->unome;
- $cognome = $this->ucognome;
- $email = $this->uemail;
- $telefono = $this->utel;
- $query = $db->query("SELECT id FROM users WHERE nome='$nome' and cognome='$cognome' and email='$email' and telefono='$telefono'");
- $id = $query->fetch_assoc()['id'];
- $db->close();
- return $id;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement