⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 doc_sql.inc

📁 FIREFLY 是一个多用户专业帮助桌面系统
💻 INC
字号:
<?#################################################################     FONCTION SQL DU MODULE DOC ################################################################################################ SQL LINK DELETEfunction SQL_DELETE_LINK($dbproc, $from_table, $from_id, $to_table, $to_id, $user_id){  /* on verifie la coh閞ence des param鑤res */  if ($from_table.$from_id.$to_table.$to_id!="")     {     	/* init transaction */	SQL_BEGIN($dbproc);	$query="DELETE FROM links                 WHERE (from_table='$from_table'                AND from_id='$from_id'                AND to_table='$to_table'                AND to_id='$to_id') 		OR 		(from_table='$to_table'                AND from_id='$to_id'                AND to_table='$from_table'                AND to_id='$from_id')";        	$result=SQL_QUERY($query,$dbproc);	/*fin transaction */	if ($result)	  {	    SQL_COMMIT($dbproc);	    return 0;	  }	else	  {	    SQL_ROLLBACK($dbproc);	    return -1;	  }    }}################################# SQL LINK INSERTfunction SQL_INSERT_LINK($dbproc, $from_table, $from_id, $to_table, $to_id, $user_id){  /* on verifie la coh閞ence des param鑤res */  if ($from_table.$from_id.$to_table.$to_id!="")     {      /* on verifie que le lien n'existe pas d閖

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -