I would like to change data from my mysql database ... but it does't work.
Here is the script:
<?php
session_start();
$con = mysql_connect("localhost", "...", "...");
mysql_select_db('chat',$con);
$uname = $_SESSION['username'];
mysql_query("UPDATE users SET disabled = 'yes' WHERE userame = $uname");
mysql_close($con);
header("Location: logout.php");
?>
How can I update the data? Thanks for your help!