Data dodania Pytanie
2017-04-18 11:04 How to check hasMany relation record is empty in eloquent laravel »
I need to get those record who has not join with has many table my query like this $result = Recipes::select('id')->where("name", 'like', '%' . $i...
(2) odpowiedzi
2017-04-18 10:04 PHP stream socket not working with HTML5 socket? »
It seems that most HTML5 web socket example online with PHP are using the socket plugin. Is it possible to use stream_socket_server with HTML5 web soc...
(1) odpowiedzi
2017-04-18 09:04 Filter recursive array and only remove NULL value »
I want to remove all null or blank value but not false and 0 value from recursive array. function isNotNull($val) { if(is_array($val)) { ...
(4) odpowiedzi
2017-04-18 09:04 Laravel 5 Eloquent Model Results »
I am using eloquent model to retrieve data from database.My query $tests_details = Previous_Mocks::where($data)->orderBy('sno', 'desc')->get();...
(1) odpowiedzi
2017-04-18 09:04 How to add edit and delete link on index.blade.php file in laravel for record? »
I want to add the edit and delete link on the index.blade.php file for deleting and edit the records. Here is my code: Route file: Route::get('/ho...
(1) odpowiedzi
2017-04-18 05:04 Get Order Notes from a Woocommerce Order / WC_Order object? »
I can add an order note (private note) with: $order->add_order_note($info_for_order); But when I tried to get the values in some page with: ge...
(1) odpowiedzi
2017-04-17 20:04 Add additional product information on Woocommerce checkout page »
In WooCommerce, I have a custom product field "Time" for which I want to output the field's value on checkout, specifically in the product details, un...
(1) odpowiedzi
2017-04-17 17:04 Dispatch received orders woocommerce to dealers sending email notifications »
I have a list of emails (dealers) and I need when I receive order in wp-admin i open this order and send this order to a dealer (commercial , user...)...
(1) odpowiedzi
2017-04-17 15:04 form field is blank when input value retreived from database is 0 »
I have the following html-php input field on a form page: <input type="text" id="subnet" name="subnet" class="inputText70px" maxlength="3" value= ...
(1) odpowiedzi
2017-04-17 13:04 query data in database which expire in 2 days »
What i need here is that there is a expiry date in database, so I have to get all the records that expire in two days. what I've done so far $retur...
(1) odpowiedzi
2017-04-17 08:04 How to finds the maximum sequence of characters at the end of this array that are the same as the beginning of the array »
I want to write a function that finds the maximum sequence of characters at the end of this array that are the same as the beginning of the array. Bu...
(2) odpowiedzi
2017-04-17 05:04 Laravel 5 Search in Multi attributes »
I`m new to the laravel 5.4 and i need to create a multi attribute search.i can only do the search for a single attribute.but i cannot find out the rig...
(1) odpowiedzi
2017-04-17 04:04 Wordpress and Ajax form submission »
I'm totally lost here. Can anyone check what is going wrong with the form I'm trying to create here? It should send data with Ajax in WP custom theme ...
(2) odpowiedzi
2017-04-17 03:04 Universal user profile for subproject sites – securely trasfering user data from main server »
I have a site (A) for main project with user system (which is supposed to display all student competitions and academic events in my country for regis...
(1) odpowiedzi
2017-04-17 02:04 Searching Arabic names discard the differences between "أ" , "ا" in mysql »
I am storing Arabic name in my database. In Arabic there are some letters that may written in different format such as "ا"، "أ"، "آ" it all repr...
(1) odpowiedzi
2017-04-16 22:04 How to show 2 tables data in 1 view using laravel? »
There is two tables (one is Users and second is Branches). I want to show the Branch with its Branch Admin Name.And the branch Admin info is save in u...
(2) odpowiedzi
2017-04-16 21:04 Is it okay to validate JSON at PostgreSQL side? »
Writing APIs I used to validate all input parameters on the Java (or PHP, whatever) side, but now we moved our DBs to PostgreSQL which gives us great ...
(1) odpowiedzi
2017-04-16 18:04 Laravel: stuck old website »
Currently I have met this issue when trying to run php artisan serve. It keep compile my old test website on XAMPP even I've shut it down already Ple...
(2) odpowiedzi
2017-04-16 18:04 Laravel-datatables protection »
I'm using https://github.com/yajra/laravel-datatables currently to send ajax request for my datatable but noticed this: columns: [ { da...
(1) odpowiedzi
2017-04-16 16:04 WooCommerce reference hooked template for sku wrapper »
I couldn't find the right SKU wrapper reference hooked template in WooCommerce documentation. What I want to do is to change the sky wrapper / span f...
(1) odpowiedzi
2017-04-16 13:04 Using webpack with an existing PHP and JS project »
I have an existing PHP project with jquery and bootstrap, not using any front-end framework. I am trying to use webpack module bundler in order to cr...
(1) odpowiedzi
2017-04-16 12:04 Laravel : Keyword 'create' added to above <!DOCTYPE html> as well as command »
I have build a laravel project where there is keyword called 'create' been added to the above of every page as well as in command prompt. In every pa...
(2) odpowiedzi
2017-04-16 11:04 Laravel 5.4 - use a custom attribute model in a collection »
I have the model Order. Order has many Item. An Item has a price attribute (from the database). An Order has a getAmountAttribute method which looks ...
(2) odpowiedzi
2017-04-16 10:04 Variable product attribute: Customizing each displayed radio buttons text value »
In WooCommerce I am using WC Variations Radio Buttons plugin (by 8manos) to replace the typical dropdown selectors with Radio Buttons. I've added th...
(1) odpowiedzi
2017-04-16 07:04 Using '<' to compare two objects in PHP »
My friend asked me how can she create and compare dates in PHP. Since I knew that there is a DateTime class in PHP I told her to search about it and u...
(2) odpowiedzi
2017-04-16 07:04 Different html/css for first 4 posts in the same query in Wordpress »
I am trying to change the HTML structure and CSS styles of the first 4 posts in the main WP_Query in archive.php I am doing this simple thing where I...
(2) odpowiedzi
2017-04-15 21:04 Adding "and" between last two database results in foreach loop »
I want to add the word "and" between the last two MySQL results. I can add commas but I need to add commas between the first ones and then "and" betwe...
(5) odpowiedzi
2017-04-15 21:04 Python-like .format() in php »
I have the following array: $matches[0] = "123"; $matches[1] = "987"; $matches[2] = "121"; And the following string: $result = "My phone number is...
(1) odpowiedzi
2017-04-15 21:04 How to delete Cookie when shutting down the server »
So everytime I start my nodejs Server I set the userId: var customerId = null; When the user tries to log in I set the cookie : customerId = my...
(0) odpowiedzi
2017-04-15 17:04 How to store multiple records in the same SQL column with PHP? »
What would be a proper way to store multiple values in the same SQL column with help of PHP. For example, in a system that stores Contact/Client deta...
(4) odpowiedzi
2017-04-15 17:04 Block site visitor with IPv6 using PHP and MYSQL »
On my website I try to block bad users and bots. After detecting bad behaviour (ignoring robots.txt, too many clicks etc) the users IP address is adde...
(0) odpowiedzi
2017-04-15 17:04 Saving request to database »
I want to save a request from my laravel 5.2 app a form into my database: When I submit the request with the word testdy I get an exception: Fata...
(2) odpowiedzi
2017-04-15 16:04 Facebook Access Token is loosing all the scopes in production »
Till 3 days ago, our login service was working fine. Now its broken by a unknown problem with Facebook oAuth. Our app (built with React Native using ...
(0) odpowiedzi
2017-04-15 16:04 Language switcher working only when Artisan serve is running »
I found an article about making a multilingual laravel website here, and it works like a charm. But when I'm not running php artisan serve (on my ho...
(0) odpowiedzi
2017-04-15 13:04 arrays and foreach loops to work with input vars more efficiently »
If I have 20 user input vars and want to work between $var[0..19], $_SESSION['var'[0..19]], & $_POST['var'[0..19]], such as: $var0 = $_SESSION['v...
(2) odpowiedzi