php - bootstrap Switch - on change state update db - internal server error -
this first time using bootstrap switch. im trying update data on database when changes state.
so have
<input type="checkbox" name="published" <?php echo ($published == 1 ? 'checked' : ''); ?>> $('input[name="published"]').on('switchchange.bootstrapswitch', function() { $.post("functions/dashsettings.php", { action: "publish" }); });
when change state, im getting:
post www.mydomain.com/user/functions/dashsettings.php 500 (internal server error)
stupid mistake requiring files.
i able find looking error logs.
Comments
Post a Comment