Hello you all genius guyz once again i am in need of your help I am trying to create a page on admin to be able to see the profiles of all the users but filed to do that I have tried the while loop but still I am unsuccessfull let me show you how I created then please let me know where I am mistaken
<label>
<p>Select User</p>
<p>
<select name="select3">
<?php
$recordset6 = mysql_query("select * from users");
while($record6 = mysql_fetch_array($recordset6)) {
echo"<option value=",$record6["uid"],">",$record6["ulogin"],"</option>";
}
?>
</select>
</P>
</label>
<label>
<input type="submit" value="Show" name="button" class="button" style="float:left;margin-left:25%;">
</label>
<?php
$result3 = mysql_query("SELECT * FROM users where uid='$uid'");
while($row3 = mysql_fetch_array($result3))
{
$fname=$row3['fname'];
$lname=$row3['lname'];
$uaddress=$row3['uaddress'];
$uphone = $row3["uphone"];
$uemail = $row3["uemail"];
$desig = $row3["udesignation"];
$empstat = $row3["empstat"];
$jdate = $row3["jdate"];
}
echo $fname . "<br />" . $lname . "<br />" . $uaddress . "<br />" . $uphone
. "<br />" . $uemail . "<br />" . $desig . "<br />" . $empstat. "<br />" . $jdate;
?>
</form>
Once again thank you for your help in advance