Get checkbox value in jQuery

To get the value of the Value attribute you can do something like this: Or if you have set a class or id for it, you can: However this will return the same value whether it is checked or not, this can be confusing as it is different to the submitted form behaviour. To check … Read more

Why php tag is not working in html file?

Your web server will server the HTML page as is. It will only parse the HTML as best as it can. If you rename your page with a PHP extension, the web server will parse it using the PHP interpreter and that is when PHP will be interpreted. Also as Fred points out in the … Read more

Why use $_SERVER[‘PHP_SELF’] instead of “”

The action attribute will default to the current URL. It is the most reliable and easiest way to say “submit the form to the same place it came from”. There is no reason to use $_SERVER[‘PHP_SELF’], and # doesn’t submit the form at all (unless there is a submit event handler attached that handles the submission).

laravel updateOrCreate method

In your use case, you should specify a second parameter. The first indicates the conditions for a match and second is used to specify which fields to update. Here is an example from the documentation: https://laravel.com/docs/5.4/eloquent

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)