📄 doc_sql.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 + -