Thanks for the replies
@firefly, that didnt worked. I tried this code and it works now :up:
PHP Code:
$lesane=$award[aw];
if($lesane == "$award[awardsid]") {
$lala="checked";
} else {
$lala="";
}
Now i'm almost done with the hack but i'm stuck when you uncheck a checkbox, then the row wont be updated. The variable is still in the database. Lets say i have a award called lesane and it has currently the variable 1 in the database, now i want to uncheck it and when i click on submit then lesane must be updated as empty. Hope u can follow me and can help me out with this