Php+dojo database Save a method of dragging layout dojo Download _php Tutorial here

Source: Internet
Author: User
Look at the Dojo framework introduced by the boss and learn to write it down. Just started to learn PHP please teach us! No attachments were found to be sent. Send two code everyone has realized.
Copy CodeThe code is as follows:
Session_Start ();
if ($_session[' gh ']== ') {
Header (' location:login.php ');
}
Include ("config.php");
$sql = "SELECT * from module";
$result =mssql_query ($sql, $conn);
$num =mssql_num_rows ($result);
Echo $num;
?>





$sql = ' Select ' from the module where ID not in (select Mokuaiid from geren where gh = '. $_session[' gh ') ';
$result =mssql_query ($sql, $conn);
while ($myrow =mssql_fetch_array ($result))
Echo ' '. $myrow [' mn ']. '';
?>






"!--? php 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 '];
$result 1=mssql_query ($sql, $conn);
while ($myrow 1=mssql_fetch_array ($result 1)) {
echo ' '. $myrow 1[' 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 '];
$result 1=mssql_query ($sql, $conn);
while ($myrow 1=mssql_fetch_array ($result 1)) {
Echo '. $myrow 1[' mn '].
}
}
Echo ';
}
?>







Copy CodeThe code is as follows:
Session_Start ();
if ($_session[' gh ']== ') {
Header (' location:login.php ');
}
Include ("config.php");
$sql = ' Delete from Geren where gh= '. $_session[' GH ';
Mssql_query ($sql);
$gr =str_replace ("Container", "", $_post[' gr ');
Echo $gr;
$array = Explode ("$", $gr);
for ($i =0; $i <=count ($array)-2; $i + +) {
$add =explode ("|", $array [$i]);
$sql = ' INSERT INTO Geren (MOKUAIID,BIAOGEID,GH) VALUES ("'. $add [0]. '", "'. $add
[1]. ' "," '. $_session[' GH ']. ";
echo $sql. '
';
Mssql_query ($sql);
}
Header ("location:view.php");
?>

Dojo Download Http://download.dojotoolkit.org/release-0.3.1/dojo-0.3.1-ajax.zip here

http://www.bkjia.com/PHPjc/317834.html www.bkjia.com true http://www.bkjia.com/PHPjc/317834.html techarticle look at the Dojo framework introduced by the boss and learn to write it down. Just started to learn PHP please teach us! No attachments were found to be sent. Send two code everyone has realized. Copy the code code as follows: ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.