Skip to content

Tag: php

Invalid JSON Response due to custom wordpress shortcode

I’ve encountered a problem with a custom shortcode i created, which just outputs a table via PHP-Echo. This shortcode just serves as a search form and posts the data to another site. Everytime i insert the shortcode in a wp-site and update it, i get “Invalid JSON-Response”. I’ve tried …

Encountering “404 NOT FOUND” for Laravel update/edit

in edit_customer: web.php //Customer related pages Profile.php (controller) Answer You are using route group prefix “customer”, so your url in the form should be prefixed url(‘customer/update_customer’, [ ‘cust’ => $cust->id ] https://laravel.com/docs/8.x/routing#route-group-pref…

PHP swapping elements between 2 tables

Question: Sort the 2 tables in such a way that table 1 contains only words that have at least 1 time the letter “u” and the second table the rest of the words that do not. Hello, i’m a bit lost on displaying my code. I got the idea, which is adding elements that contains the letter ‘u&…

PHP autoloading namespace on xampp

I am trying to autoload php class under namespace on xampp. But for some reason it cannot find class under its absolute path. here is my autoloader: here is my class This is my file system: This i error i am getting: Warning: require_once(C:/xampp/htdocs/app/admin/modules/smartForm/smartForm.php): Failed to o…