How would I go about making a button where if it gets clicked $value1 goes up by 1?
I’ve got the button working
[php]
Clicks: //The value i’m trying to increase
<?php
$username= $_SESSION['user']['username'];
$sql= "SELECT clicks FROM users where username='$username'";
$result = mysqli_query($conn, $sql);
$row = mysqli_fetch_assoc($result);
$_SESSION['clicks']= $row['clicks'];
echo $row['clicks'];
?><br><br>
<?php
if(isset($_REQUEST['click']))
{
echo "click";
}
?>
[/php]
[php]Clicks:[/php]
This scares me… It looks AWFULLY like a label for a GOTO statement.