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: ...