About 111 results: "mysql_query repo:ssimpledecision/simpledecision"
Page 1 of 6
Filter Results
Sources
Languages
Filter Results
Try Search On





edit.materials.php in simpledecision https://bitbucket.org/ssimpledecision/simpledecision.git | 508 lines | PHP
  1. 		{
  2. 		$query=mysql_query("select * from {$pref}db_{$modul} where id={$_POST['pid']} $home_parent limit 1");
  3. 		while ($parid<>0) {
  4. 			$parid=mysql_result(mysql_query("select * from {$pref}db_{$modul} where id=$parid $home_parent "),0, 'pid');
  5. 		// $parent=$parent2;
  6. 		if (mysql_num_rows(mysql_query("select * from {$pref}db_{$modul} where id={$id} $home_parent limit 1"))==0) {die();}
  7. 
                        
  8. 		mysql_query("delete from {$pref}db_structure_alias where id_type=$id_modules and id_el={$id}");
  9. 		if (intval(mysql_num_rows(mysql_query("select * from {$pref}db_structure_alias where href='{$href}'")))>0)
  10. 		$mes_er="<font><b class='saveinfo'>Ошибка создания алиаса</b></font>";
  11. 		else
  12. 		mysql_query("insert into {$pref}db_structure_alias set href='{$href}',id_page='{$id}',id_type={$id_modules},id_el={$id}");
  13. 
                        
  14. 		$mes="<font color='green'><b class='saveinfo'>Сохранено</b></font>";
  15. 		mysql_query("update {$pref}db_{$modul} set href='{$href}',alias='{$name}',anons='{$anons}',title='{$title}',name='{$fname}',error='{$error}',menu_name='{$mname}',`description`='{$descr}',`keyword`='{$key_w}',text='{$text}',pid='{$pid}',parent='{$parent}',type='{$typ}',menu1='{$menu1}',menu2='{$menu2}',menu3='{$menu3}',menu4='{$menu4}',menu4_par='{$menu4_par}',catalog='{$catalog}',materials='{$materials}',catalog2='{$banners1}',materials2='{$banners2}',menu='{$banners3}',access_admin='{$access_admin}',access_moder='{$access_moder}',access_user='{$access_user}',access_notuser='{$access_notuser}',tpl='{$tpl}',status='{$status}' where id='{$id}'  $home_parent ");















Back to Top