$result = $db->sql_query("SELECT st_num, st_name, st_fam, st_father, st_id, st_sodoor, st_birth, st_bm, st_bd, st_snum, st_level from " . $user_prefix . "_webclass where st_id='$ch_user'");
$numrows = $db->sql_numrows($result);
if($numrows > 0) {
$row = $db->sql_fetchrow($result);
//$chng_uid = intval($row['st_num']);
$chng_stnum = $row['st_num'];
$chng_stname = $row['st_name'];
$chng_stfam = $row['st_fam'];
$chng_stfather = $row['st_father'];
$chng_stid = $row['st_id'];
$chng_stsodoor = $row['st_sodoor'];
$chng_stbirth = $row['st_birth'];
$chng_stbm = $row['st_bm'];
$chng_stbd = $row['st_bd'];
$chng_stsnum = $row['st_snum'];
$chng_stlevel = $row['st_level'];
$result = $db->sql_query("SELECT n_dquran, n_motoon from " . $user_prefix . "_" . $tbname . " where st_id='$ch_user'");
$numrows = $db->sql_numrows($result);
if($numrows > 0) {
$row = $db->sql_fetchrow($result);
$chng_ndquran = $row['n_dquran'];
$chng_nmotoon = $row['n_motoon'];
select a1, b1, c1 from table1 where a1=1 and b1=1 and c1=1
select a2, b2, c2 from table2 where a2=2 and b2=2 and c2=2
select a1, b1, c1, a2, b2, c2 from table1, table2 where a1=1 and b1=1 and c1=1 and a2=2 and b2=2 and c2=2
select table1.a1, table1.b1,table1. c1, table2.a2, table2.b2, table2.c2 from table1, table2 where table1.a1=1 and table1.b1=1 and table1.c1=1 and table2.a2=2 and table2.b2=2 and table2.c2=2
where table1.a1=table2.a2
$result = $db->sql_query("SELECT st_num, st_name from nuke_num_mehr where st_id='$username' and st_num='$password'");
$numrows = $db->sql_numrows($result);
if($numrows > 0) {
$row = $db->sql_fetchrow($result);
$n_stnum = $row['st_num'];
$n_stname = $row['st_name'];
$result = $db->sql_query("SELECT num_mehr.st_num, num_mehr.st_name from nuke_num_mehr where num_mehr.st_id='$username' and num_mehr.st_num='$password'");
$numrows = $db->sql_numrows($result);
if($numrows > 0) {
$row = $db->sql_fetchrow($result);
$n_stnum = $row['st_num'];
$n_stname = $row['st_name'];