Jump to content

[SOLVED] help please


Jiraiya

Recommended Posts

i need help with my script. i need it to change Variable B for a logged in user if variable A is equal to 5000000 and then to update variable B the database

 

 

 

 

 

$username = $_COOKIE['ID_my_site'];
$sql = mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());




if($skill >= 5000000)
{
$rank = Akatsuki;
}


?>

Link to comment
https://forums.phpfreaks.com/topic/136797-solved-help-please/
Share on other sites

whys it set as solved if you have no idea what your doing, your still asking for help and really i dont want to help you, help for such a basic thing is all over the internet. Learn to search the internet for answers update sql is all over the internet on each MySQL tutorial

http://www.w3schools.com/sql/sql_update.asp

Link to comment
https://forums.phpfreaks.com/topic/136797-solved-help-please/#findComment-714471
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.