Livar
Now 35% cooler!
- Oct 15, 2010
- 846
- 86
Hey thar, I'm trying to update the users table, this is what it'll really do - update users where username is %name% set motto %motto%;
Does someone mind posting a form and the PHP update please. I can't figure it out.
This is my code so far that shows the motto if you've got one, but I need to know how to update the users table using it;
Does someone mind posting a form and the PHP update please. I can't figure it out.
This is my code so far that shows the motto if you've got one, but I need to know how to update the users table using it;
<?php
if (strlen($motto) == 0)
{
$motto = "";
}
echo '';
echo '
<form method="post">
<input type="hidden" name="token" value="SEC-467_0439d6b4d2982cb820664c100db82df61" />
<input type="text" name="motto" value="' . $motto . '" style="margin-right: 5px; width: 175px;" />
<input type="submit" value="Save" name="hidden_motto" style="width: 65px;" />
</form>
';
?>