Hi,
all I'm trying to do is when I get a list of users on one page I click on a button next to that user, pass variables such as email, name, username etc. to another page where
I send a canned message using @mail($email.........
this part works just fine. But I also need to update a field in that user's table row. So I try to do this but it doesn't work:
$db = mysql_connect("my_db_path", "my_db_pass", "my_db_user");
mysql_select_db("db_name",$db);
function remind ($username, $field_that_needs_update)
{
$update = mysql_query("update my_table set field_that_needs_update = '$field_that_needs_update' where username = '$username'");
}
So what am I doing wrong. Wasted at least an hour but can't figure it out. Please someone help!
😕