multiple user editing
Code: Select all
<html>
<head>
<title>Conman - Edit User</title>
<LINK href="../templates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("SELECT * from users");
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="100%" align="center" border="1">';
echo '<TR><TD width="5%">'.$data[id].'</td><td width="5%"> '.$data[accesslvl].'</TD>';
echo '<TD width="20%">'.$data[username].'</TD><TD width="15%">'.$data[password].'</TD>';
echo '<TD width="30%">'.$data[userpic].'</TD><td width="25%">'.$data[email].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="id" type="text" value="'.$data[id].'">';
///here\/ \/ \/
echo '<input name="id'.$x.'" type="text" value="id'.$x.'">';
echo '<input name="submit" type="image" src="../templates/gfx/submit.gif" border="0">';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '<center><B>No USERS found</B></center>';
}
?>
</body>
</html>Is there any way of checking for $data[id] and it not changeing on each incrementation of teh for loop? (cant think of the correct wording
Code: Select all
<html>
<head>
<title>Conman - Edit User</title>
<LINK href="../templates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("SELECT * from users");
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="100%" align="center" border="1">';
echo '<TR><TD width="5%">'.$data[id].'</td><td width="5%"> '.$data[accesslvl].'</TD>';
echo '<TD width="20%">'.$data[username].'</TD><TD width="15%">'.$data[password].'</TD>';
echo '<TD width="30%">'.$data[userpic].'</TD><td width="25%">'.$data[email].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="id" type="text" value="'.$data[id].'">';
///here\/ \/ \/
echo '<input name="id'.$x.'" type="text" value="id'.$x.'">';
echo '<input name="submit" type="image" src="../templates/gfx/submit.gif" border="0">';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '<center><B>No USERS found</B></center>';
}
?>
</body>
</html>Code: Select all
<html>
<head>
<title>Conman - Edit User</title>
<LINK href="e;../templates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("e;SELECT * from users"e;);
if (mysql_num_rows($query) > 0) {
echo '<form name="e;edituser"e; method="e;post"e; action="e;edituser.php"e;>';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="e;100%"e; align="e;center"e; border="e;1"e;>';
echo '<TR><TD width="e;5%"e;>'.$dataїid].'</td><td width="e;5%"e;> '.$dataїaccesslvl].'</TD>';
echo '<TD width="e;20%"e;>'.$dataїusername].'</TD><TD width="e;15%"e;>'.$dataїpassword].'</TD>';
echo '<TD width="e;30%"e;>'.$dataїuserpic].'</TD><td width="e;25%"e;>'.$dataїemail].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="e;id"e; type="e;text"e; value="e;'.$dataїid].'"e;>';
///here\/ \/ \/
echo '<input name="e;id'.$x.'"e; type="e;text"e; value="e;id'.$x.'"e;>';
echo '<input name="e;submit"e; type="e;image"e; src="e;../templates/gfx/submit.gif"e; border="e;0"e;>';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '<center><B>No USERS found</B></center>';
}
?>
</body>
</html&aml values for the id:Code: Select all
<html>
<head>
<title>Conman - Edit User</title>
<LINK href="../templates/style.css"e; rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("e;SELECT * from users"e;);
if (mysql_num_rows($query) > 0) {
echo '<form name="e;edituser"e; method="e;post"e; action="e;edituser.php"e;>';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="e;100%"e; align="e;center"e; border="e;1"e;>';
echo '<TR><TD width="e;5%"e;>'.$dataїid].'</td><td width="e;5%"e;> '.$dataїaccesslvl].'</TD>';
echo '<TD width="e;20%"e;>'.$dataїusername].'</TD><TD width="e;15%"e;>'.$dataїpassword].'</TD>';
echo '<TD width="e;30%"e;>'.$dataїuserpic].'</TD><td width="e;25%"e;>'.$dataїemail].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="e;id"e; type="e;text"e; value="e;'.$dataїid].'"e;>';
///here\/ \/ \/
echo '<input name="e;id'.$x.'"e; type="e;text"e; value="e;id'.$x.'"e;>';
echo '<input name="e;submit"e; type="e;image"e; src="e;../templates/gfx/submit.gif"e; border="e;0"e;>';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '<center><B>No USERS found</B></center>';
}
?>
</body>
</html>Code: Select all
<html>
<head>
<title>Conman - Edit User</title>
<LINK href="../templates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("SELECT * from users");
if (mysql_num_rows($query) > 0) {
echo '<form name="e;edituser"e; method="e;post"e; action="e;edituser.php"e;>';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="e;100%"e; align="e;center"e; border="e;1"e;>';
echo '<TR><TD width="e;5%"e;>'.$dataїid].'</td><td width="e;5%"e;> '.$dataїaccesslvl].'</TD>';
echo '<TD width="e;20%"e;>'.$dataїusername].'</TD><TD width="e;15%"e;>'.$dataїpassword].'</TD>';
echo '<TD width="e;30%"e;>'.$dataїuserpic].'</TD><td width="e;25%"e;>'.$dataїemail].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="e;id"e; type="e;text"e; value="e;'.$dataїid].'"e;>';
///here\/ \/ \/
echo '<input name="e;id'.$x.'"e; type="e;text"e; value="e;id'.$x.'"e;>';
echo '<input name="e;submit"e; type="e;image"e; src="e;../templates/gfx/submit.gif"e; border="e;0&ent management system and i want to include a feature to edit user details, i have the basic layout but i cant get individual values for the id:Code: Select all
<html>
<head>
<title>Conman - Edit User</title>
<LINK href="e;../templates/style.css"e; rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("e;SELECT * from users"e;);
if (mysql_num_rows($query) > 0) {
echo '<form name="e;edituser"e; method="e;post"e; action="e;edituser.php"e;>';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="e;100%"e; align="e;center"e; border="e;1"e;>';
echo '<TR><TD width="e;5%"e;>'.$dataїid].'</td><td width="e;5%"e;> '.$dataїaccesslvl].'</TD>';
echo '<TD width="e;20%"e;>'.$dataїusername].'</TD><TD width="e;15%"e;>'.$dataїpassword].'</TD>';
echo '<TD width="e;30%"e;>'.$dataїuserpic].'</TD><td width="e;25%"e;>'.$dataїemail].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="e;id"e; type="e;text"e; value="e;'.$dataїid].'"e;>';
///here\/ \/ \/
echo '<input name="e;id'.$x.'"e; type="e;text"e; value="e;id'.$x.'"e;>';
echo '<input name="e;submit"e; type="e;image"e; src="e;../templates/gfx/submit.gif"e; border="e;0"e;>';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '<center><B>No USERS found</B></center>';
}
?>
</body>
</html>Is there any way of checking for $data[id] and it not changeing on each incrementaent management system and i want to include a feature to edit user details, i have the basic layout but i cant get individual values for the id:
Code: Select all
<html>
<head>
<title>Conman - Edit User</title>
<LINK href="../templates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("SELECT * from users");
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="100%" align="center" border="1">';
echo '<TR><TD width="5%">'.$data[id].'</td><td width="5%"> '.$data[accesslvl].'</TD>';
echo '<TD width="20%">'.$data[username].'</TD><TD width="15%">'.$data[password].'</TD>';
echo '<TD width="30%">'.$data[userpic].'</TD><td width="25%">'.$data[email].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="id" type="text" value="'.$data[id].'">';
///here\/ \/ \/
echo '<input name="id'.$x.'" type=&q(mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="100%" align="center" border="1">';
echo '<TR><TD width="5%">'.$data[id].'</td><td width="5%"> '.$data[accesslvl].'</TD>';
echo '<TD width="20%">'.$data[username].'</TD><TD width="15%">'.$data[password].'</TD>';
echo '<TD width="30%">'.$data[userpic].'</TD><td width="25%">'.$data[email].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="id" type="text" value="'.$data[id].'">';
///here\/ \/ \/
echo '<input name="id'.$x.'" type="text" value="id'.$x.'">';
echo '<input name="submit" type="image" src="../templates/gfx/submit.gif" border="0">';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '<center><B>No USERS found</B></center>';
}
?>
</body>
</html>Is there any way of checking for $data[id] and it not changeing on each incrementation of teh for loop? (cant think of the correct wording
$data = mysql_fetch_array($query);
echo '<TABLE width="100%" align="center" border="1">';
echo '<TR><TD width="5%">'.$data[id].'</td><td width="5%"> '.$data[accesslvl].'</TD>';
echo '<TD width="e;20%"e;>'.$dataїusername].'</TD><TD width="e;15%"e;>'.$dataїpassword].'</TD>';
echo '<TD width="e;30%"e;>'.$dataїuserpic].'</TD><td width="e;25%"e;>'.$dataїemail].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is ails, i have the basic layout but i cant get individual values for the id:
Code: Select all
<html>
<head>
<title>Conman - Edit User</title>
<LINK href="../templates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("SELECT * from users");
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="e;100%"e; align="e;center"e; border="e;1"e;>';
echo '<TR><TD width="e;5%"e;>'.$dataїid].'</td><td width="e;5%"e;> '.$dataїaccesslvl].'</TD>';
echo '<TD width="e;20%"e;>'.$dataїusername].'</TD><TD width="e;15%"e;>'.$dataїpassword].'</TD>';
echo '<TD width="e;30%"e;>'.$dataїuserpic].'</TD><td width="e;25%"e;>'.$dataїemail].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="e;id"e; type="e;text"e; value="e;'.$dataїid].'"e;>';
///here\/ \/ \/
echo '<input name="e;id'.$x.'"e; type="e;text"e; value="e;id'.$x.'"e;>';
echo '<input name="e;submit"e; type="e;image"e; src="e;../templates/gfx/submit.gif"elayout but i cant get individual values for the id:Code: Select all
<html>
<head>
<title>Conman - Edit User</title>
<LINK href="../templates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("e;SELECT * from users"e;);
if (mysql_num_rows($query) > 0) {
echo '<form name="e;edituser"e; method="e;post"e; action="e;edituser.php"e;>';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="e;100%"e; align="e;center"e; border="e;1"e;>';
echo '<TR><TD width="e;5%"e;>'.$dataїid].'</td><td width="e;5%"e;> '.$dataїaccesslvl].'</TD>';
echo '<TD width="e;20%"e;>'.$dataїusername].'</TD><TD width="e;15%"e;>'.$dataїpassword].'</TD>';
echo '<TD width="e;30%"e;>'.$dataїuserpic].'</TD><td width="e;25%"e;>'.$dataїemail].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="e;id"e; type="e;text"e; value="e;'.$dataїid].'"e;>';
///here\/ \/ \/
echo '<input name="e;id'.$x.'"e; type="e;text"e; value="e;id'.$x.'"e;>';
echo '<input name="e;submit"e; type="e;image"e; src="e;../templates/gfx/submit.gif"e; border="e;0"e;>';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '<center><B>No USERS foundlude a feature to edit user details, i have the basic layout but i cant get individual values for the id:Code: Select all
<html>
<head>
<title>Conman - Edit User</title>
<LINK href="../templates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("SELECT * from users");
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="100%" align="center" border="1">';
echo '<TR><TD width="5%">'.$data[id].'</td><td width="5%"> '.$data[accesslvl].'</TD>';
echo '<TD width="20%">'.$data[username].'</TD><TD width="15%">'.$data[password].'</TD>';
echo '<TD width="30%">'.$data[userpic].'</TD><td width="25%">'.$data[email].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="id" type="text" value="'.$data[id].'">';
///here\/ \/ \/
echo '<input name="id'.$x.'"p;gt;
<head>
<title>Conman - Edit User</title>
<LINK href="../templates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("SELECT * from users");
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="100%" align="center" border="1">';
echo '<TR><TD width="5%">'.$data[id].'</td><td width="5%"> '.$data[accesslvl].'</TD>';
echo '<TD width="20%">'.$data[username].'</TD><TD width="15%">'.$data[password].'</TD>';
echo '<TD width="30%">'.$data[userpic].'</TD><td width="25%">'.$data[email].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="id" type="text" value="'.$data[id].'">';
///here\/ \/ \/
echo '<input name="id'.$x.'" type="text" value="id'.$x.'">';
echo '<input name="submit" type="image" src="../templates/gfx/submit.gif" border="0">';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '<center><B>No USERS found</B></center>';
}
?>
</body>
</html>Is there any way of checking for $data[id] and it not changeinyle.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("SELECT * from users");
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="e;100%"e; align="e;center"e; border="e;1"e;>';
echo '<TR><TD width="e;5%"e;>'.$dataїid].'</td><td width="e;5%"e;> '.$dataїaccesslvl].'</TD>';
echo '<TD width="e;20%"e;>'.$dataїusername].'</TD><TD width="e;15%"e;>'.$dataїpassword].'</TD>';
echo '<TD width="e;30%"e;>'.$dataїuserpic].'</TD><td width="e;25%"e;>'.$dataїemail].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="e;id"e; type="e;text"e; value="e;'.$dataїid].'"e;>';
///here\/ \/ \/
echo '<input name="e;id'.$x.'"e; type=&at system and i want to include a feature to edit user details, i have the basic layout but i cant get individual values for the id:
Code: Select all
<html>
<head>
<title>Conman - Edit User</title>
<LINK href="../templates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("SELECT * from users");
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="100%" align="center" border="1">';
echo '<TR><TD width="5%">'.$data[id].'</td><td width="5%"> '.$data[accesslvl].'</TD>';
echo '<TD width="20%">'.$data[username].'</TD><TD width="15%">'.$data[password].'</TD>';
echo '<TD width="30%">'.$data[userpic].'</TD><td width="25%">'.$data&#p;gt;Conman - Edit User</title>
<LINK href="../templates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("SELECT * from users");
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="100%" align="center" border="1">';
echo '<TR><TD width="5%">'.$data[id].'</td><td width="5%"> '.$data[accesslvl].'</TD>';
echo '<TD width="20%">'.$data[username].'</TD><TD width="15%">'.$data[password].'</TD>';
echo '<TD width="30%">'.$data[userpic].'</TD><td width="25%">'.$data[email].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="id" type="text" value="'.$data[id].'">';
///here\/ \/ \/
echo '<input name="id'.$x.'" type="text" value="id'.$x.'">';
echo '<input name="submit" type="image" src="../templates/gfx/submit.gif" border="0">';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '<center><B>No USERS found</B></center>';
}
?>
</body>
</html>Is there any way of checking for $data[id] and it not changeing on each incrementation of teh for loop? (cant think of tylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("SELECT * from users");
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="100%" align="center" border="1">';
echo '<TR><TD width="5%">'.$data[id].'</td><td width="5%"> '.$data[accesslvl].'</TD>';
echo '<TD width="20%">'.$data[username].'</TD><TD width="15%">'.$data[password].'</TD>';
echo '<TD width="30%">'.$data[userpic].'</TD><td width="25%">'.$data[email].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="id" type="text" value="'.$data[id].'">';
///here\/ \/ \/
echo '<input name="id'.$x.'" type="text" value="id'.$x.'">';
echo '<input name="submit" type="image" src="../templates/gfx/submit.gif" border="0">';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '<center><B>No USERS found</B></center>';
}
?>
</body>
</html>
i cant find a good way to check teh individual id values and all i get is the last value for $id (which is 2 atm).
Is there any way of checking for $data[id] and it not changeing on each incrementation of teh for loop? (cant think of the correct wording
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="100%" align="center" border="1">';
echo '<TR><TD width="5%">'.$data[id].'</td><td width="5%"> '.$data[accesslvl].'</TD>';
echo '<TD width="20%">'.$data[username].'</TD><TD width="15%">'.$data[password].'</TD>';
echo '<TD width="30%">'.$data[userpic].'</TD><td width="25%">'.$data[email].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="id" type="text" value="'.$data[id].'">';
///here\/ \/ \/
echo '<input name="id'.$x.'" type="text" value="id'.$x.'">';
echo '<input name="submit" type="image" src="../templates/gfx/submit.gif" border="0">';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '<center><B>No USERS found</B></center>';
}
?>
</body>
</html>
i cant find a good way to check teh individual id values and all i get is the last value for $id (which is 2 atm)amp;lt;head>
<title>Conman - Edit User</title>
<LINK href="../templates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("e;SELECT * from users"e;);
if (mysql_num_rows($query) > 0) {
echo '<form name="e;edituser"e; method="e;post"e; action="e;edituser.php"e;>';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="e;100%"e; align="e;center"e; border="e;1"e;>';
echo '<TR><TD width="e;5%"e;>'.$dataїid].'</td><td width="e;5%"e;> '.$dataїaccesslvl].'</TD>';
echo '<TD width="e;20%"e;>'.$dataїusername].'</TD><TD width="e;15%"e;>'.$dataїpassword].'</TD>';
echo '<TD width="e;30%"e;>'.$dataїuserpic].'</TD><td width="e;25%"e;>'.$dataїemail].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="e;id"e; type="e;text"e; value="e;'.$dataїid].'"e;>';
///here\/ \/ \/
echo '<input name="e;id'.$x.'"e; type="e;text"e; value="e;id'.$x.'"e;>';
echo '<input name="e;submit"e; type="e;image"e; src="e;../templates/gfx/submit.gif"e; border="e;0"e;>';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '<center><B>No USERS found</B></center>';
}
?>
</body>
</html>
i cant find a good way to check teh individual id values and all p;amp;lt;/title>
<LINK href="../templates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("SELECT * from users");
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="e;100%"e; align="e;center"e; border="e;1"e;>';
echo '<TR><TD width="e;5%"e;>'.$dataїid].'</td><td width="e;5%"e;> '.$dataїaccesslvl].'</TD>';
echo '<TD width="e;20%"e;>'.$dataїusername].'</TD><TD width="e;15%"e;>'.$dataїpassword].'</TD>';
echo '<TD width="e;30%"e;>'.$dataїuserpic].'</TD><td width="e;25%"e;>'.$dataїemail].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="e;id"e; type="e;text"e; value="e;'.$dataїid].'"e;>';
///here\/ \/ \/
echo '<input name="e;id'.$x.'"e; type="e;text"e; value="e;id'.$x.'"e;>';
echo '<input name="e;submit"e; type="e;image"e; src="e;../templates/gfx/submit.gif"e; border="e;0"e;>';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '<center><B>No USERS found</B></center>';
}
?&a* from users");
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="100%" align="center" border="1">';
echo '<TR><TD width="5%">'.$data[id].'</td><td width="e;5%"e;> '.$dataїaccesslvl].'</TD>';
echo '<TD width="e;20%"e;>'.$dataїusername].'</TD><TD width="e;15%"e;>'.$dataїpassword].'</TD>';
echo '<TD width="e;30%"e;>'.$dataїuserpic].'</TD><td width="e;25%"e;>'.$dataїemail].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it woent management system and i want to include a feature to edit user details, i have the basic layout but i cant get individual values for the id:
Code: Select all
<html>
<head>
<title>Conman - Edit User</title>
<LINK href="../templates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("SELECT * from users");
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="100%" align="center" border="1">';
echo '<TR><TD width="5%">'.$data[id].'</td><td width="5%"> '.$data[accesslvl].'</TD>';
echo '<TD width="20%">'.$data[username].'</TD><TD width="15%">'.$data[password].'</TD>';
echo '<TD width="30%">'.$data[userpic].'</TD><td width="25%">'.$data[email].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="id" type="text" value="'.$data[id].'">';
///here\/ \/ \/
echo '<input name="id'.$x.'" type="text" value="id'.$x.'">';
echo '<input name="submit" type="image" src="../templates/gfx/submit.gif" border="0">';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '<center><B>No USERS found</B></centert;/head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("SELECT * from users");
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="100%" align="center" border="1">';
echo '<TR><TD width="5%">'.$data[id].'</td><td width="5%"> '.$data[accesslvl].'</TD>';
echo '<TD width="20%">'.$data[username].'</TD><TD width="15%">'.$data[password].'</TD>';
echo '<TD width="30%">'.$data[userpic].'</TD><td width="25%">'.$data[email].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="id" type="text" value="'.$data[id].'">';
///here\/ \/ \/
echo '<input name="id'.$x.'" type="text" value="id'.$x.'">';
echo '<input name="submit" type="image" src="../templates/gfx/submit.gif" border="0">';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '<center><B>No USERS found</B></center>';
}
?>
</body>
</html>Code: Select all
<html>
<head>
<title>Conman - Edit User</title>
<LINK href="../templates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("SELECT * from users");
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="100%" align="center" border="1">';
echo '<TR><TD width="5%">'.$data[id].'</td><td width="5%"> '.$data[accesslvl].'</TD>';
echo '<TD width="20%">'.$data[username].'</TD><TD width="15%">'.$data[password].'</TD>';
echo '<TD width="30%">'.$data[userpic].'</TD><td width="25%">'.$data[email].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="id" type="text" value="'.$data[id].'">';
///here\/ \/ \/
echo '<input name="id'.$x.'" type="text" value="id'.$x.'">';
echo '<input name="submit" type="image" src="../templates/gfx/submit.gif" border="0">';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '<center><B>No USERS found</B></center>';
}
?>
</body>
</html>Is there any way of checking for $data[id] and it not changeing on each incrementaamp;lt;html>
<head>
<title>Conman - Edit User</title>
<LINK href="../templates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("SELECT * from users");
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="100%" align="center" border="1">';
echo '<TR><TD width="5%">'.$data[id].'</td><td width="5%"> '.$data[accesslvl].'</TD>';
echo '<TD width="20%">'.$data[username].'</TD><TD width="15%">'.$data[password].'</TD>';
echo '<TD width="30%">'.$data[userpic].'</TD><td width="25%">'.$data[email].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="id" type="text" value="'.$data[id].'">';
///here\/ \/ \/
echo '<input name="id'.$x.'" type="text" value="id'.$x.'">';
echo '<input name="submit" type="image" src="../templates/gfx/submit.gif" border="0">';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '<center><B>No USERS found</B></center>';
}
?>
</body>
</html>
i cant find a good way to check teh individual id values and all i get is the last value for $id (which is 2 atm).
Is there any way of checking for $data[id] and it not changeing on each incrementation of teh for loop? (cant think of the correct wording
Code: Select all
<html>
<head>
<title>Conman - Edit User</title>
<LINK href="../templates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("SELECT * from users");
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="100%" align="center" border="1">';
echo '<TR><TD width="5%">'.$data[id].'</td><td width="5%"> '.$data[accesslvl].'</TD>';
echo '<TD width="20%">'.$data[username].'</TD><TD width="15%">'.$data[password].'</TD>';
echo '<TD width="30%">'.$data[userpic].'</TD><td width="25%">'.$data[email].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="id" type="text" value="'.$data[id].'">';
///here\/ \/ \/
echo '<input name="id'.$x.'" type="text" value="id'.$x.'">';
echo '<input name="submit" type="image" src="../templates/gfx/submit.gif" border="0">';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '<center><B>No USERS found</B></center>';
}
?>
</body>
</html><title>Conman - Edit User</title>
<LINK href="../templates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("e;SELECT * from users"e;);
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php"e;>';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="e;100%"e; align="e;center"e; border="e;1"e;>';
echo '<TR><TD width="e;5%"e;>'.$dataїid].'</td><td width="e;5%"e;> '.$dataїaccesslvl].'</TD>';
echo '<TD width="e;20%"e;>'.$dataїusername].'</TD><TD width="e;15%"e;>'.$dataїpassword].'</TD>';
echo '<TD width="e;30%"e;>'.$dataїuserpic].'</TD><td width="e;25%"e;>'.$dataїemail].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="e;id"e; type="e;text"e; value="e;'.$dataїid].'"e;>';
///here\/ \/ \/
echo '<input name="e;id'.$x.'"e; type="e;text"e; value="e;id'.$x.'"e;>';
echo '<input name="e;submit"e; type="e;image"e; src="e;../templates/gfx/submit.gif"e; border="e;0"e;>';
echo' <br><br>';
ech<head>
<title>Conman - Edit User</title>
<LINK href="../templates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("e;SELECT * from users"e;);
if (mysql_num_rows($query) > 0) {
echo '<form name="e;edituser"e; method="e;post"e; action="e;edituser.php"e;>';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="e;100%"e; align="e;center"e; border="e;1"e;>';
echo '<TR><TD width="e;5%"e;>'.$dataїid].'</td><td width="e;5%"e;> '.$dataїaccesslvl].'</TD>';
echo '<TD width="e;20%"e;>'.$dataїusername].'</TD><TD width="e;15%"e;>'.$dataїpassword].'</TD>';
echo '<TD width="e;30%"e;>'.$dataїuserpic].'</TD><td width="e;25%"e;>'.$dataїemail].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="e;id"e; type="e;text"e; value="e;'.$dataїid].'"e;>';
///here\/ \/ \/
echo '<input name="e;id'.$x.'"e; type="e;text"e; value="e;id'.$x.'"e;>';
echo '<input name="e;submit"e; type="e;image"e; src="e;../templates/gfx/submit.gif"e; border="e;0"e;>';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '<center><B>No USERS found</B></center>';
}
?>
</body>
</html>
i cant find a good way to check teh individual id values and all i get is the last value for $id (which is 2 atm).
Is there any way of checking for $data[id] and it notamp;gt;
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("e;SELECT * from users"e;);
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="e;100%"e; align="e;center"e; border="e;1"e;>';
echo '<TR><TD width="e;5%"e;>'.$dataїid].'</td><td width="e;5%"e;> '.$dataїaccesslvl].'</TD>';
echo '<TD width="e;20%"e;>'.$dataїusername].'</TD><TD width="e;15%"e;>'.$dataїpassword].'</TD>';
echo '<TD width="e;30%"e;>'.$dataїuserpic].'</TD><td width="e;25%"e;>'.$dataїemail].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="e;id"e; type="e;text"e; value="e;'.$dataїid].'"e;>';
///here\/ \/ \/
echo '<input name="e;id'.$x.'"e; type="e;text"e; value="e;id'.$x.'"e;>';
echo '<input name="e;submit"e; type="e;image"e; src="e;../templates/gfx/submit.gif"e; border="e;0"e;>';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '&llates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("SELECT * from users");
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="e;100%"e; align="e;center"e; border="e;1"e;>';
echo '<TR><TD width="e;5%"e;>'.$dataїid].'</td><td width="e;5%"e;> '.$dataїaccesslvl].'</TD>';
echo '<TD width="e;20%"e;>'.$dataїusername].'</TD><TD width="e;15%"e;>'.$dataїpassword].'</TD>';
echo '<TD width="e;30%"e;>'.$dataїuserpic].'</TD><td width="e;25%"e;>'.$dataїemail].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="e;id"e; type="e;text"e; value="e;'.$dataїid].'"e;>';
///here\/ \/ \/
echo '<input name="e;id'.$x.'"e; type="e;text"e; value="e;id'.$x.'"e;>';
echo '<input name="e;submit&quasic layout but i cant get individual values for the id:
Code: Select all
<html>
<head>
<title>Conman - Edit User</title>
<LINK href="../templates/style.css" rel=stylesheet type=text/css>
</head>
<body>
<?
include '../config/config.php';
$x=0;
$query = mysql_query("SELECT * from users");
if (mysql_num_rows($query) > 0) {
echo '<form name="edituser" method="post" action="edituser.php">';
for($x = 1; $x <= mysql_num_rows($query); $x++){
$data = mysql_fetch_array($query);
echo '<TABLE width="100%" align="center" border="1">';
echo '<TR><TD width="5%">'.$data[id].'</td><td width="5%"> '.$data[accesslvl].'</TD>';
echo '<TD width="20%">'.$data[username].'</TD><TD width="15%">'.$data[password].'</TD>';
echo '<TD width="30%">'.$data[userpic].'</TD><td width="25%">'.$data[email].'</td></TR>';
echo '</Table>';
//just a test to see what the id value is(this is waht i realy want to do but it wont wrok so i tried it with the $x in there).
echo '<input name="id" type="text" value="'.$data[id].'">';
///here\/ \/ \/
echo '<input name="id'.$x.'" type="text" value="id'.$x.'">';
echo '<input name="submit" type="image" src="../templates/gfx/submit.gif" border="0">';
echo' <br><br>';
echo '</form>';
mysql_close($dbh);
} else {
echo '<center><B>No USERS found</B></center>';
}
?>
</body>
</html>Is there any way of checking for $data[id] and it not changeing on each incrementation of t