my domain
BTW, It’s my first day in this community. and you are helping me like a family. Thanks to all of you
Incorrect formatting still. Use this:
<?php
$conn = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME);
if($conn === false){
die("Failed" . $conn->error); // die() exit the program;
}
echo "Connected";
$sql = "INSERT INTO ReferredUsers (Email, Status) VALUES ('" . $Cemail . "' ,'" . $Cstatus . "')";
if ($conn->query($sql) === TRUE) {
$last_id = $conn->insert_id;
if($last_id): ?>
<script>
document.getElementById('idd').innerText = <?= $last_id ?>
</script>
<?php endif;
}
$conn->close();
?>
Try this:
if ($conn->query($sql) === TRUE) {
$last_id = $conn->insert_id;
if($last_id){?>
<script>
document.getElementById('idd').innerText =<?php echo $last_id; ?>
</script>
<?php } } else{}
$conn->close();
?>
tried this but still same error.
Tried this also, but it didn’t worked. and gives same error
I do not see any error messages, can you please screenshot it? Also, the page opens as the user already logged in, so that is a huge security issue.
1 Like
Do you have AnyDesk ?
That is not a PHP issue there. PHP issues will not show up in the console, since the browser never sees any PHP code.
Maybe, but even if I do, I am not going to give personal support outside this forum, mainly because I am not getting paid, and have better things to do.
3 Likes