Data dodania Pytanie
2017-12-02 23:12 How to find a specific code source using dev tools and then find it in FTTP »
I'm quite new in programming, so I encounter a lot of problems. For example I am editing a WordPress theme and I use inspect element to determine what...
(1) odpowiedzi
2017-12-02 21:12 Can't order wordpress posts »
I have there the code I'm using, and I'm trying to get the posts in the order of the IDs from the $menus array but don't do that, he gave me the posts...
(3) odpowiedzi
2017-12-02 21:12 Phpunit testing Laravel controller »
I'm building a small Laravel application and I would like test it using phpunit. Is a very simple application with one controller: namespace App\Http...
(1) odpowiedzi
2017-12-02 19:12 Add text after price unless the price is zero, then Call for price in WooCommerce »
I have products with prices that need to all end with "per sq. ft." I want this to only apply to products of a particular category and only when the ...
(2) odpowiedzi
2017-12-02 18:12 Can't get browser language (facebook inapp browser) »
Interesting problem I've ran into this past week. I've been using something like this to detect my visitor's browser language: if(isset($_SERVER['H...
(0) odpowiedzi
2017-12-02 11:12 Seeding database with tasks that belong to a user »
My laravel version is Laravel Framework 5.5.22. I have the following Schema for tasks: Schema::create('tasks', function (Blueprint $table) { ...
(2) odpowiedzi
2017-12-02 11:12 try catch in php pdo, doing it right way »
I am using php pdo with postgres. I am using core php, no mvc, no classes and objects. I have some doubts in my mind since i am new to development, :-...
(2) odpowiedzi
2017-12-02 09:12 How to access varible inside orWhere() in laravel query builder|Laravel »
I am trying to build little complex query where everything wan OK until I tried to use a advanced where condition. In the code below I am getting an e...
(2) odpowiedzi
2017-12-02 04:12 Adding an additional custom field in Woocommerce Edit Account page »
IN WooCommerce, I have been able to add a custom fields in Edit Account page. I have tried adding a 2nd custom field "Favorite Color 2" but I ca't get...
(1) odpowiedzi
2017-12-02 00:12 PHP built-in server serving only .php files »
I created a dir named "test", and inside this dir, i created 3 files: 1.jpg, 2.html and 3.php. If i run php -S localhost:80 and try to visit localhost...
(1) odpowiedzi
2017-12-01 22:12 How to order/limit an inner join in MySQL? »
I am bad at SQL. I need to get certain information out of my database. This information is a list of User ID's and their username under a single accou...
(2) odpowiedzi
2017-12-01 22:12 Laravel - Download specified list of images from S3 into a directory »
I have been searching around but cannot find any information. Currently have a list of images on my page and each have a download button which is jus...
(1) odpowiedzi
2017-12-01 21:12 How to increase the number of entries a jquery DataTable displays? »
I have a database with 18000 rows. The DataTable is displaying the first 500 rows. How do I increase the number of entries it can display? pageLengt...
(2) odpowiedzi
2017-12-01 14:12 Laravel passport gives 401 Unauthenticated error »
I'm using laravel passport for API authentication, it works perfectly when I use it with one db, but gives 401 when using multiple database, What I'm...
(1) odpowiedzi
2017-12-01 14:12 Undefined variable: request in sub method »
When I try to get all the records that have a relation to the category table, where the category_definition_id is the search input, I cannot access th...
(2) odpowiedzi
2017-12-01 13:12 Graph-API: How-to refresh share attachment of post? »
I have a website which automaticaly post links in several facebook pages. It has worked fine until yesterday, when the first link posted doesn't take ...
(0) odpowiedzi
2017-12-01 04:12 Why does print_r not show all properties of WP_User object? »
If I do this I get many properties shown, including display_name, but the first and last names are NOT shown $user = get_userdata( 4 ); print_r( $use...
(1) odpowiedzi
2017-11-30 21:11 PHP JSON GET showing correctly on webpage, but not in php »
my code: <?php header('Content-Type: application/json; charset=utf-8'); $url = "http://80.211.192.133:8117/stats"; $json = file_get_c...
(1) odpowiedzi
2017-11-30 18:11 Woocommerce - Can't display image within loop of cart items »
I have a loop of cart items in Woocommerce that currently only displays the name, quantity and price. I'm trying to also get the image thumbnail to di...
(1) odpowiedzi
2017-11-30 17:11 How can I get clusters from distance matrix, using PHP? »
I have distance matrix as two-dimensional array, like this: So, I need to find clusters, of elements with its help. I can do it, using hierarchic c...
(0) odpowiedzi
2017-11-30 16:11 Hook woocommerce_thankyou doesn't receive order »
In WooCommerce, I am using a custom function hooked in woocommerce_thankyou action hook, to execute some code after a payment has been made. The hook ...
(1) odpowiedzi
2017-11-30 15:11 Laravel phpunit assertViewHas doesn't match the expected test data »
I am writing a test for my search method, but had currently a assertSee and want to change it for a assertViewHas for a better test result. But the da...
(1) odpowiedzi
2017-11-30 14:11 PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_oci8_12c.dll' - The specified procedure could not be found »
we face a big problem to connect oracle server in php What i done Setp 1: Install Windows 7 32bit Step 2 : install XAMPP 32 ( Includes: Apache...
(1) odpowiedzi
2017-11-30 14:11 How can I combine this query? »
I'm using Laravel Eloquent to hit the database twice. I merge the results of the 2 queries into one. How can I make this into a single query so it onl...
(2) odpowiedzi
2017-11-30 11:11 display or hide custom tab on product page depending on variable »
I am trying to hide a display or not display a tab on the single product page depending on the value of $sizeGridNumber. So if this value is 1 or empt...
(2) odpowiedzi
2017-11-30 10:11 MySQL: Specified key was too long; max key length is 767 bytes »
I'm creating a development version of a Laravel 5.4 application, which is working, albeit without a complete database. When I ran php artisan migrate...
(1) odpowiedzi
2017-11-30 09:11 MySql get row if id is in sequence »
We require to get row if product_id is in sequence. Table (product) product_id name 1 Parle 2 Coconut 3 Pizz...
(1) odpowiedzi
2017-11-30 08:11 Is it possible to append laravel DB queries? »
CODES IN CONTROLLER public function getAthleteProperties(Request $request) { $getAthlete = DB::table('students') ->join('sport...
(1) odpowiedzi
2017-11-30 08:11 What is the concept behind using "use" keyword in different context on laravel? »
I have two queries regarding the use of "use" keyword in php(laravel). Below is a code excerpt from laravel docs: use App\Flight; $flights = App\Fl...
(2) odpowiedzi
2017-11-29 15:11 laravel withCount get likes that have been deleted »
This function is not getting a count for posts that have been deleted. It's just getting a count of total likes but it disregards if deleted_at is = n...
(1) odpowiedzi
2017-11-29 13:11 How to set 'Access-Control-Allow-Credentials' header to upload a file in angular 4? »
I am working on angular 4 app, In which, I have a requirement to upload a file on form submit, for this I am using ng2-file-upload plugin. But I faced...
(0) odpowiedzi
2017-11-29 12:11 SoapServer() call not able to access wsdl file »
I have a symfony based product in which i have to expose a Soap API. I have created the wsdl file which is accessible from browser after entering User...
(0) odpowiedzi
2017-11-29 10:11 Update WooCommerce "flat rate" shipping cost using Jquery ajax »
I am trying to update the shipping cost after the address is entered. When the client starts typing the address, and autocomplete function helps the c...
(1) odpowiedzi
2017-11-29 09:11 mysql select removes + sign from varchar »
I have noticed a strange behavior in mysql, and cannot understand why it happens. I have a varchar field, storing a telephone number, like: '+1234567...
(0) odpowiedzi
2017-11-29 06:11 Joining two mysql tables to get a true/false column »
I'm working with PHP and MySql. I'm trying to find a way to select a number of movies from a mysql table, but apart from the movies table I have a wat...
(1) odpowiedzi