prüft, ob der Account bereits für Messages genutzt werden kann

This commit is contained in:
vincent 2025-04-14 22:49:54 +02:00
parent 70a195d5f9
commit 981e3937e7

32
ready.php Normal file
View file

@ -0,0 +1,32 @@
<?php
/*
* smzint/Messages (c) schmamazon.com 2025
*/
include('../Auth/index.php');
include('/smzint/Auth/db.ini.php');
$conn = new mysqli($dbservername, $dbusername, $dbpassword, $dbname);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT * FROM smz_messages_users WHERE uid='$uid'";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
$unique_name = $row["unique_name"];
$f_name = $row["f_name"];
$l_name = $row["l_name"];
$phone = $row["phone"];
$init_date = $row["init_date"];
return true;
}
} else {
return false;
}
$conn->close();
?>