Data dodania Pytanie
2017-09-17 22:09 Returning a string after the second occurrence of a character and before the last occurrence of the same character with php »
I have several strings similar to the following: ORG-000012 – Name of variation – Quantity: 12 Pack – $14.95 I need to remove all characters be...
(3) odpowiedzi
2017-09-17 20:09 Can't bind parameters to WHERE clause PDO »
I use a lot of sql statements using PostgreSQL and PHP and many of them have variables in the 'WHERE' clause. I can get prepared statements to execute...
(1) odpowiedzi
2017-09-17 16:09 Decorate eloquent model attribute - Laravel 5 »
I have an eloquent model like this: <?php namespace News\Model; class News extends Model { public $fillable = [ 'title', 'd...
(1) odpowiedzi
2017-09-17 15:09 Auto change Woocommerce Subscriptions status to "On-Hold" rather than "Active" »
In Woocommerce, I would like to automatically put all Woocommerce Subscriptions "on hold" rather than "active" when the order is still "processing". O...
(1) odpowiedzi
2017-09-17 12:09 Cannot get the number of rows and fetch when using MySQLi prepared statement »
I want to get the number of rows from the database, but when I try to do this the $g_check variable will be equal to 0 and my code will echo the $sugg...
(1) odpowiedzi
2017-09-17 09:09 how to show table data regarding to id in Laravel 5.2 »
I am developing project management app using Laravel. In my application I have a project and one project have many tasks and one task have many commen...
(0) odpowiedzi
2017-09-17 07:09 Get list of select values as pipe delimited in hidden field and submit »
I have a web form with two select lists, users move the items they want from one select box to another select box, when the user hits the Save button ...
(1) odpowiedzi
2017-09-17 01:09 WooCommerce: Get the total sales for product variations in a SQL query »
I'm creating a plugin extension for a reporting plugin. The current plugin creates various report including a report on the top selling products on a ...
(1) odpowiedzi
2017-09-17 00:09 Laravel Notifications Event Listener Undefined Property »
I have the following error: Undefined property: Illuminate\Notifications\Events\NotificationSent::$user in /var/www/app/app/Listeners/Noticati...
(0) odpowiedzi
2017-09-16 23:09 Compare two sql tables »
I have two tables, one with text strings, and one with words. How do I take each string/row in TABLE A and see how many of the "words" from TABLE B...
(3) odpowiedzi
2017-09-16 20:09 How do delete options properly for WordPress multi-sites? »
I am working on uninstall.php script and want to know how to properly delete option in multi-sites environment. So far I have the following: if ( ! i...
(0) odpowiedzi
2017-09-16 19:09 Laravel - Create Separate Row for Data from txt file for mySQL database »
I am having an problem with this. Say, for example I these lines of data: QZS-2 (QZSS/PRN 184) 1 42738U 17028A 17258.40853294 -.00000184 00000...
(1) odpowiedzi
2017-09-16 17:09 Getting an image from s3 bucket and displaying in blade.php Laravel 5.4 »
i'm new to Laravel and i'm trying to get an image from Amazon s3 bucket to display on my website, but i get a FileNotFoundException error. Any Help wo...
(1) odpowiedzi
2017-09-16 16:09 How can I get first 5 and last 1 records from table mysql? »
I'm working on php small project, here I need first 5 records from beginning of records and last record 1 from end of the table's record. I don't know...
(2) odpowiedzi
2017-09-16 14:09 how does visible two models value in one view and update two models value by one controller »
I have two Models Group_ones and Group_twos. I show this value in ac_config.ctp file. My controller code is below public function ac_config($id = n...
(2) odpowiedzi
2017-09-16 12:09 Issue with file upload in codeigniter with CSRF enabled on server »
I am working on file upload with CSRF enabled in my project in codeigniter framwork. The code is working fine in localhost but it is not working on se...
(2) odpowiedzi
2017-09-16 10:09 Laravel Unique keyword for particular Column »
I'm using "unique" keyword for validating unique users for employee_id in controllers, in my database there is column called company_id , while adding...
(2) odpowiedzi
2017-09-16 09:09 How to update Woocommerce Order API using Guzzle »
I can able to get the Order Details using guzzle. But i can't able to update the Order. Here is my code: use stdClass; use GuzzleHttp\Client; use Gu...
(1) odpowiedzi
2017-09-16 01:09 Custom redirection after checkout based on a custom checkout field in WooCommerce »
I would like 2 redirection links in woocommerce after checkout. The first is the standard checkout link that sends any user to a thank you page. The o...
(1) odpowiedzi
2017-09-15 19:09 Coldfusion to PayPal Express REST API Error: No Value Passed to Payment »
Setting up connection to PayPal Express checkout with ColdFusion, I'm getting this error - "Uncaught Error: No value passed to payment" while using P...
(0) odpowiedzi
2017-09-15 19:09 Dropdown Click PHP Data From mysql »
<div class="btn-group m-b-5"> <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-info"> Ana Kategori ...
(1) odpowiedzi
2017-09-15 17:09 Woocommerce, show only products with two specific categories »
In Woocommerce, I'm trying to filter the products on my shop page and keep only the products belonging to two specific categories. To give a better i...
(0) odpowiedzi
2017-09-15 15:09 PHP regex last occurrence of words »
My string is: /var/www/domain.com/public_html/foo/bar/folder/another/.. I want to remove the root folder from this string, to get only public folder,...
(2) odpowiedzi
2017-09-15 14:09 Using Code Igniter Model function inside JQuery Datatables render function »
I am using JQuery Datatables to display all the users of my forum in a page from a table called 'users'. I am using Code Igniter for server-side proce...
(0) odpowiedzi
2017-09-15 12:09 Laravel: why a registered service provider is not called when instantiating its provided class? »
This is my service provider: <?php namespace App\Providers; use Illuminate\Support\Facades\Config; use Illuminate\Support\ServiceProvider; clas...
(1) odpowiedzi
2017-09-15 11:09 AJAX request firing twice while success is called once »
I am using laravel 5.4, my Ajax functionality is called twice every time due to which I create two users however I want to create one user per click ...
(3) odpowiedzi
2017-09-15 08:09 What is the point of writing @php @endphp instead of <?php ?> in Laravel Blade? »
You can write PHP code like below in Laravel. @php // @endphp Alternately you can write, <?php // ?> What is the difference between ab...
(1) odpowiedzi
2017-09-15 06:09 What is Exception severity in PHP? »
I saw this code in the PHP documentation: try { throw new ErrorException("Exception message", 0, E_USER_ERROR); } catch(ErrorException $e) { echo "Th...
(1) odpowiedzi
2017-09-15 02:09 How to limit unreadNotifications in Laravel? »
the code below displays all the unread notifications of a logged in user in laravel: auth()->user()->unreadNotifications I put the code into ...
(1) odpowiedzi
2017-09-14 20:09 How do I fix these illegal string offset warnings? »
Context: On one of the sites where my WordPress plugin is installed I'm seeing a series of PHP warnings, but I'm not entirely sure why this is happeni...
(2) odpowiedzi
2017-09-14 20:09 How to get rid of laravel_session cookie from Laravel Application ? »
I'm trying to get rid of laravel_session. I've tried to create a middleware for it https://laracasts.com/discuss/channels/laravel/laravel-51-disable...
(2) odpowiedzi
2017-09-14 15:09 PHP simpleXML: parse specific attribute value of multiple entries »
I have the following XML: <doc> <str name="segment">20170913064727</str> <str name="digest">427522d5ceb605f87755c909d...
(2) odpowiedzi
2017-09-14 14:09 base64 encoding of binary value of 64 bit integer in PHP is not working »
How to use base64 encoding with binary string of 64 bit integer on PHP? This code is not working as expected <?PHP $t=11545152599186258990; $byte...
(3) odpowiedzi
2017-09-14 11:09 Set multiple order by in mysql query »
I have a table of users which contain some information of users. id | name | country ------------------------------ 1 | user1 | India 2 ...
(2) odpowiedzi
2017-09-14 09:09 Redirect user to some page in WordPress when the user is not logged In »
I have an E-commerce Website in Wordpress. When the user clicks on the Buy button and if the user is not logged in it should redirect to some page and...
(2) odpowiedzi