Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It might have helped if you would have posted the response. </p> <p>On my test I got this</p> <pre><code>Username should be equal to or more than 3 characters long </code></pre> <p>although I used one with 6 characters. Looking at the code it's obvious: </p> <pre><code>$username=$_POST['username']; [...] if(!isset($username) OR strlen($userid) &lt;3){ $msg=$msg."Username should be equal to or more than 3 characters long&lt;BR/&gt;"; $status= "NOTOK"; } </code></pre> <p>You simply used the wrong variable $userid instead of $username. Correct it and the script should be working. </p> <p>But before you do so, there a a few more things wrong with your code: </p> <ol> <li>Never use PHP variables directly in SQL! Encapsulate them with <a href="http://de3.php.net/manual/en/function.mysql-real-escape-string.php" rel="nofollow">mysql_real_escape_string</a> or better use something like <a href="http://php.net/manual/en/mysqli.prepare.php" rel="nofollow">mysqli_prepare()</a> or your script will be open for a SQL-injection attacks and a lot of trouble with characters like "'"</li> <li><p>Never use root as database user for your scripts. Create one with fewer rights to minimize the effect if there is some hole in your SQL handling.</p></li> <li><p>Clean up your code! Indention are there for a reason and help you read yours (and others) code. At least do it before posting it and asking for help. With a bit of luck you would have found the error by yourself.</p></li> <li><p>Check your HTML. There are a lot of invalid things in there...</p></li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload