0
我在SQL數據庫egz設置:{"group":"622","shop":"541","ext":"pdf;mpg;mp4;mpeg;m3u;url"}
PHP SQL JSON操作
對於GET PARAM使用此代碼
$setting = $sql->dbquery("SELECT setting FROM public.table");
echo json_decode($setting['setting'],true)['ext'];
如何插入新的VAL egz:AVI只有當不存在(短代碼)
{"group":"622","shop":"541","ext":"pdf;mpg;mp4;mpeg;m3u;url;avi"}
或刪除現有VAL egz:PDF
{"group":"622","shop":"541","ext":"mpg;mp4;mpeg;m3u;url"}