@Yorkiebar14
Need a script to unlock certain pages after completion
Can you elaborate more? It's very hard to understand what you need help with without any code.
LastMitch
Industrious Poster
4,195 posts since Mar 2012
Reputation Points: 134
Solved Threads: 336
Skill Endorsements: 45
@Yorkiebar14
May I ask what was the downvote for? The answer was to provide a code~! Without any code it will be difficult plus noone will write it for you!
LastMitch
Industrious Poster
4,195 posts since Mar 2012
Reputation Points: 134
Solved Threads: 336
Skill Endorsements: 45
@Yorkiebar14
Just to clarify, I didn't downvote you... Just incase I did by accident I just upvoted you :)
I wasn't too sure why someone downvote comment when I wasn't being rude or offended anyone it was just asking for a code. But Thanks.
OK, You said the query is working
$query = "select * from users where user='{$_SESSION['username']}'";
$result = mysql_query($query) or die(mysql_error());
$getinfo = mysql_fetch_row($result);
$basicLevel = $getinfo[3];
mysql_query("UPDATE users SET BasicLevel = BasicLevel +1 where username='Admin'")
Try to put $id in here
$query = "select * from users where user='{$id = $_SESSION['username']}'";
Try to do this in the query in PHPMyAdmin:
CREATE PROCEDURE increment (IN uniqid VARCHAR(255))
BEGIN
UPDATE `users` SET BasicLevel = BasicLevel + 1 WHERE id = uniqid;
SELECT BasicLevel FROM `users` WHERE id = uniqid;
END
Let me know did it increase the INT
LastMitch
Industrious Poster
4,195 posts since Mar 2012
Reputation Points: 134
Solved Threads: 336
Skill Endorsements: 45