Two while for the same query
A few things here:

Comments:

Your comments are all compeletely useless.. nothing personal and no offense. That is a beginner-mistake. You don't need to comment everything.

Comments should explain the why and not the how or the what. Exceptions:


License comments
Documentation (python's docstring, java's javadoc, c#'s summary, ...)


Naming:


$con = //...
$query1 = //...
$assoc1 = //...



As opposed to what many people seem to think, source code characters are not costly. Spell it out:

$connection = //...
$userQuery = //...
$userRecord = //...


Formatting:

The convention is, to place subordinate blocks in a visually different place than surrounding code. This is usually done by indenting the block and putting it on a separate starting line


while($assoc1=mysqli_fetch_assoc($query1)){echo $assoc1['user'].'&lt;br&gt;';}



then becomes:

while ($userRecord = mysqli_fetch_assoc($userQuery)) {
    echo $userRecord['user'].'&lt;br&gt;';
}


This would definitely improve the readability of your code, as one line is not a whole loop! Putting too much on one line makes it extremely difficult to follow the thoughts behind your code and makes reading a pain.