doc_sql.inc
来自「FIREFLY 是一个多用户专业帮助桌面系统」· INC 代码 · 共 50 行
INC
50 行
<?################################################################# 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 + =
减小字号Ctrl + -
显示快捷键?