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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -