dbquery Help please:)

JayC

Always Learning
Aug 8, 2013
5,494
1,398
Never had to do this kind of query before and im not sure what im doing wrong:

<?php
if(isset($_POST['motto']))
{
$mot = filter($_POST['motto']);

if(strlen($mot) < 1 || strlen($mot) > 20)
{
echo '<center><div class="rounded rounded-red"><strong>Motto must be between 1 and 20 characters</strong></div></center>';
}else
{
dbquery("UPDATE `users` SET motto='".$mot."' WHERE username='".USERNAME."'");
echo '<center><div class="rounded rounded-green"><strong>Motto Updated</strong></div></center>';
}
}
?>
 

Users who are viewing this thread

Top