Hi all, I was wondering if it was possible to make something like this possible...
++$variable;
setCookie ("variable","$variable", time()
+30240000, "/");
$result = mysql_query("UPDATE $table SET $variable=1 WHERE username ='$loginusercookie'", $Connect);
So basically what my idea here is that everytime the script is run $variable is incremented by 1 and then reset as a cookie. an update is run after that on $table and the field would be determined by whatever the current value of the $variable cookie was. So say that $variable begins at a value of 1 and the script runs three times. field 1 field 2 and field 3 would all have their values set to 1 in the table called $table. Yes the actual field names are 1 2 3 and they already exist in $table.
Is what im saying making sense here? Im really stuck on this one so any help is appricated thanks!
D