Home > Article > Backend Development > A method to save drag layout in php+dojo database dojo download here_PHP tutorial
After reading the dojo framework introduced by the boss, I learned and wrote it. I just started learning php, please give me some advice! Found that the attachment could not be sent. Post two codes for everyone to experience.
for ($p=1; $p<=$num;$p=$p+2){ echo ' '; '; $sql='select mokuaiid from geren where biaogeid='.$p.' and gh ='.$_SESSION['gh']; $result=mssql_query($sql,$conn); while($myrow=mssql_fetch_array($result)){ $sql='select * from module where id='.$myrow['mokuaiid']; $result1=mssql_query($sql,$conn); while($myrow1=mssql_fetch_array($result1)){ echo ''.$myrow1['mn'].''; } } echo ' } ?> | for ($p=2; $p<=$num;$p=$p+2){ echo ' '; '; $sql='select mokuaiid from geren where biaogeid='.$p.' and gh ='.$_SESSION['gh']; $result=mssql_query($sql,$conn); while($myrow=mssql_fetch_array($result)){ $sql='select * from module where id='.$myrow['mokuaiid']; $result1=mssql_query($sql,$conn); while($myrow1=mssql_fetch_array($result1)){ echo ''.$myrow1['mn'].''; } } echo ' } ?> |