Data dodania Pytanie
2017-03-15 07:03 How to remove /shop or /product in URL WooCommerce »
I'm working on WordPress site and I use WooCommerce plugin. This plugin rewrites all my URLs like www.mydomain.com/product/category/postname/ but ...
(3) odpowiedzi
2017-03-15 06:03 How can I use a condition in explode() function? »
Here is my code: $str = "this is a test" $arr = explode(' ', $str); /* output: array ( 0 => "this", 1 => "is", 2 => a, 3 =&g...
(3) odpowiedzi
2017-03-15 05:03 Codeigniter SQL Query Syntax »
I'm using Codeigniter3 and have a problem with an query The default value of the variable day is 14. I want to convert sql query below to the codeign...
(1) odpowiedzi
2017-03-14 20:03 Best way recursive PHP to array »
I have to get elements of multidimensional array and I have this solution, but I think is a rude solution... Is there a better approach to this probl...
(1) odpowiedzi
2017-03-14 18:03 Crop Image and upload with php »
I have a crop image script. How can the script upload the cropped image when the user clicks the save button? How can I make the PHP the cropped image...
(1) odpowiedzi
2017-03-14 17:03 WooCommerce Subscriptions - Get related orders Ids for a specific subscription »
Is there woocommerce function that will return me all related orders (at least the order ID) for the specific subscription that user has bough? I hav...
(1) odpowiedzi
2017-03-14 16:03 Share a variable through out Laravel application »
I have a variable. $key_test = 123456789; I want to be able to access this 1 variable anywhere in my app even in config files, models, controllers, ...
(3) odpowiedzi
2017-03-14 12:03 How to display specific errors when loggin in in a Laravel 5.3 app with the Auth::attempt() »
My question is somewhat similar to this but I'm not getting any error when logging in. I'm using Auth::attempt() to log users in my app but it returns...
(1) odpowiedzi
2017-03-14 11:03 Laravel 5.4 Password Reset »
I have a Laravel 5.4 application and I have a view in my admin area that allows me to see all users. I want to create a function that allows me to cl...
(1) odpowiedzi
2017-03-14 11:03 WooCommerce Get Order Product Details Before Payment in Plugin »
I need to display order details from cart before payment in plugin. I work on one plugin what connect woocommerce and an payment API and there I need...
(2) odpowiedzi
2017-03-14 07:03 Get all parents and children of a tree recursively »
I have a mysql table as id ***************** parent_id ************** title 1 ***************** 0 ***************** Student Managment 2 ******...
(2) odpowiedzi
2017-03-14 06:03 How to retrieve Parse.com User details in php »
I am using parse php sdk to handle data in my web page. I have a User class in my database. I am trying to display all user details into my web page. ...
(1) odpowiedzi
2017-03-14 05:03 Trim whitespace from esc_attr() in WordPress? »
So I am trying to figure out how I can:- Remove all white-space; and Remove all other characters e.g. () I have a phone number which is pulled fr...
(1) odpowiedzi
2017-03-13 23:03 Direct Insert versus using MySQLi: query behaves differently »
I'm facing a rather odd issue. I use PHP 7.0 with a MySQL 5.5 DB on Azure. When testing queries on the database, I use Sequel Pro to directly perform ...
(0) odpowiedzi
2017-03-13 18:03 How to retrieve a list of WooCommerce orders which use a particular coupon? »
I'm trying to write a function that retrieves a list of WooCommerce orders which use a specified coupon code and are in a specified date range, then s...
(1) odpowiedzi
2017-03-13 17:03 auto_prepend_file breaks xdebug »
I am debugging PHP 5.2(i know it's old) with PHPStorm 2016.2, however when i add auto_prepend_file or auto_append_file in my apache vhost file: ...
(1) odpowiedzi
2017-03-13 12:03 Laravel: Select2 option value »
I have the following code in my view: {!! Form::select( 'projectSkills', ['' => ''] + \App\Skill::where('type','freelancer'...
(1) odpowiedzi
2017-03-13 11:03 Send Data from Cassandra to DataTables (NoSQL) »
Hey Guys I have a problem. I`m new to Cassandra and DataTables and my task is to send data from our 'Cassandra-Server' to the Table plug-in 'DataTable...
(0) odpowiedzi
2017-03-13 10:03 Accessing model in middleware in laravel »
I am building a multi tenant app and I am distinguishing the tenant based on the subdomain. I have registered a global middleware on the laravel kerne...
(2) odpowiedzi
2017-03-13 09:03 Delete statement not giving errors but is not working either »
I have this delete statement that is meant to delete a row of data in a mysql table depending on the email that the users enters into the text field. ...
(1) odpowiedzi
2017-03-13 05:03 Add read replicas for SilverStripe website »
I've managed to get a stable load balanced front end servers that can scale horizontally quite well however the next bottle neck would be the db. Ther...
(1) odpowiedzi
2017-03-13 05:03 How to create the conditions on the model of eloquent? (Laravel 5.3) »
My delete method on the controller is like this : <?php public function deleteMessage($id, $seller_id, $buyer_id) { //if the seller delete ...
(2) odpowiedzi
2017-03-12 22:03 How to get the wordpress post in Java Rest API? »
I want to fetch the WordPress post/blog of my site using some kind of REST API. I want to understand to fetch the html, for example, I tried but its n...
(0) odpowiedzi
2017-03-12 21:03 How can I add soft delete on laravel mongodb? (Laravel 5.3) »
I get reference from here : https://github.com/jenssegers/laravel-mongodb#examples My model is like this : <?php namespace App\Models; use Jenss...
(0) odpowiedzi
2017-03-12 21:03 Need assistance with this SQL query »
This is an example of my table. I have multiple entries on multiple rows for a given post_id (this is metadata for posts). post_id | meta_key | meta_...
(5) odpowiedzi
2017-03-12 21:03 Symfony3 Dynamically Modify Forms witch events »
Problem is that nothing is loaded in the municipality field, it goes undefined. In the AJAX code I get the value of the province well. But in the clas...
(1) odpowiedzi
2017-03-12 20:03 Laravel form no data submitted »
My form in my-profile.blade.php looks like this: <form id="profile-form" role="form" method="POST" action="{{ route('myprofile.store') }}"> ...
(2) odpowiedzi
2017-03-12 13:03 Laravel 5: unstable display errors »
I have a weird issue, Laravel 5 sometimes display <HTML> </ HTML> rather than display error msg, and next time when refresh display the er...
(1) odpowiedzi
2017-03-12 07:03 How to extend Laravel Storage facade? »
Without knowing how Laravel facades work, based on my PHP knowledge, I tried to extend Storage facade to add some new functionalities. I have this co...
(2) odpowiedzi
2017-03-12 02:03 DataTable - limit view by customer ID in controller »
I am trying to fix an issue with a client. He have an application which runs on the Codeigniter framework. In this app, he is viewing a list of assi...
(2) odpowiedzi
2017-03-11 17:03 Strings vs integers for storing data »
What would be considered the best practise when it comes to storing datatypes to the database? For instance, you have a support ticket feature in whi...
(4) odpowiedzi
2017-03-11 15:03 I have two temporary variables, how can I compare them in PHP? »
I have two temporary variable such as $tempTeam1 and $tempTeam2 and both contains different team name between two cricket team. I'm not sure which var...
(1) odpowiedzi
2017-03-11 14:03 How do I place my background color at the bottom of my content's container? »
I would like to apply a background color, with a height of 200px. I would then like to position this background colour at the bottom of the concerned...
(2) odpowiedzi
2017-03-11 14:03 How to configure wordpress application with simple php application using Nginx? »
I want to configure a Wordpress application with a simple php application. The directory structure of the application is as follow : Root directory ...
(1) odpowiedzi
2017-03-11 13:03 How does a php program decide what function is called first when I go to a php page? »
I am trying to understand how a php application that is called with a POST to this URL works: transliterator/romaji The romaji.php looks like this:...
(2) odpowiedzi