So my code is
<?php
include ("config.php");
mysql_connect($server,$db_user,$db_pass);
$level = "1";
$mylevel = "UPDATE users SET level = '$level' WHERE username = '$myusername'";
mysql_query($mylevel);
mysql_close();
?>
or this one
<?php
include ("config.php");
mysql_connect($server,$db_user,$db_pass);
if (!isset($_SESSION['count'])) {
$_SESSION['count'] !=0;
$mypage = "UPDATE users SET page = '3l' WHERE username = '$myusername'";
mysql_query($mypage);
mysql_close();
}
else
{
echo "Not working";
}
?>
I established a session on a previous page.
I tried typing session_start(); at the beginning and it gave me the error
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sen
. So, I took it out when I load the page it does nothing. Interesting..
I don't get the not working command, so The above command is coming true. Just nothing is happening. I'm sorry, I suck at php.