Data dodania Pytanie
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
2017-04-15 10:04 Adding a custom button after add to cart button in single product pages »
I am developing an ecommerce store based on WooCommerce. I would like to add an View Cart Below the Add To Cart Button. It would be even better if it...
(2) odpowiedzi
2017-04-15 10:04 Laravel 5.4 route group and resource mess up the parameters »
This resource definition is good: Route::resource('servers', 'ServerController'); Gives: +--------+-----------+-----------------------+-----------...
(1) odpowiedzi
2017-04-15 08:04 Save product custom field radio button value in cart and display it on Cart page »
I have added some custom options on woocommerce single product page using the code below on my theme's functions.php: function options_on_single...
(1) odpowiedzi
2017-04-15 06:04 Get Cart Tax Total programmatically in WooCommerce »
How do you get the tax total in WooCommerce in the functions.php page in WordPress, Using : global $woocommerce; $discount = $woocommerce->cart...
(2) odpowiedzi
2017-04-15 05:04 Adding text below image, output depends on input language? »
I'm trying to create a website such that users can upload images and captions of those images. I want to format those captions such that really long c...
(2) odpowiedzi
2017-04-15 02:04 automatic order id system check existence in mysql database »
What I am trying to achieve is I have a systematic order generating system for my website I am just not able to check if the order id already exist if...
(0) odpowiedzi
2017-04-15 01:04 Laravel Service as Controller - working with multiples controllers »
I'am a Brazilian developer, so... sorry for my limited English right away. Well, in fact my problem is more a convention problem because until now I ...
(2) odpowiedzi
2017-04-14 23:04 Leaderboard, rank query, how to return the rows above/below a users rank »
Given this query, if I want to pull the rank of a specific individual where I know there $name and $score and return the rows above/below that rank (s...
(1) odpowiedzi
2017-04-14 22:04 Child theme functions.php not working »
I created a wordPress child theme but after activate the site shows 500 Error and admin page showing blank. here is my code: /* Theme Name: WP Kall...
(0) odpowiedzi
2017-04-14 19:04 Laravel: N to N (mysql) relation using Eloquent ORM »
I got 4 tables: // Table countries +----+------+ | Id | Name | +----+------+ | 1 | USA | | 2 | GB | +----+------+ // Table platforms +----+----...
(1) odpowiedzi
2017-04-14 19:04 How to hide header on specific page in wordpress »
I am trying to hide the header on a specific page in WordPress. I know that I can do this using CSS. The page id as displayed in the dashboard is: ...
(3) odpowiedzi
2017-04-14 19:04 Laravel Uncaught exception 'ReflectionException »
Im getting an error when trying to launch a Laravel App . Fatal error: Uncaught exception 'ReflectionException' with message 'Class log does not ex...
(0) odpowiedzi
2017-04-14 18:04 Change Cart total price in WooCommerce »
I am running into issues with the cart total only displaying 0 Essentially what I am trying to do is only accept a deposit total of a certain amount ...
(2) odpowiedzi
2017-04-14 08:04 Laravel functional testing ajax control »
In laravel 5.4, I can see that there are methods such as: $browser->pause(1000); $browser->waitFor('.selector'); $browser->waitForLink('Crea...
(2) odpowiedzi
2017-04-13 21:04 MySQL User with Roles, Role specific fields? »
I have an application where a User can be a Supplier or a Shop. Now these 2 roles have very different role-specific fields.. Basically, a Shop ...
(3) odpowiedzi
2017-04-13 17:04 Style For Span Class Not Showing Up In Inspector Styles »
I wrapped a WordPress function, .the_post_thumbnail(). inside of a span with class 'post-image', like this: echo "<span class='post-image'>"....
(2) odpowiedzi
2017-04-13 17:04 Add lists() method in Query Builder in Laravel 5.4 »
I know the fact that Laravel has removed lists() function and moved functions signature as pluck(). But, this leads to a lot of work for someone who...
(2) odpowiedzi
2017-04-13 16:04 How to Style WordPress Functions With Span »
I already checked this solution, but I still don't know why I'm getting a syntax error for this code: <?php $args = array('post_type' => 'pos...
(2) odpowiedzi
2017-04-13 14:04 Laravel CSRF scraping »
I am just wondering how much the laravel CSRF protection really adds. Correct my if I am wrong here but couldn't you just scrape the contents of pag...
(1) odpowiedzi
2017-04-13 14:04 Class 'Illuminate\Mail\Events\MessageSent' not found in Laravel 5.4 notification »
Please, I need help to resolve an issue with the notification system. Here is my notification class: <?php namespace App\Notifications; use I...
(2) odpowiedzi
2017-04-13 13:04 Laravel 5.4 Seeds not seeding all tables »
I'm seeding in Laravel 5.4 but it only seeds one table, the others are not seeded. The seeders were created using the command: php artisan make:seede...
(1) odpowiedzi
2017-04-13 13:04 how to get the return of array sended to one ajax in the datatable? »
Hi people of stackoverflow I'm using the datatable for to show of data of my tables... and I need to make some custom filters at the same time. I bas...
(0) odpowiedzi
2017-04-13 12:04 Milliseconds compare in php »
$date1 = "2017-04-13 09:09:80:300" $date2 = "2017-04-13 09:09:80:400" how can I check if the date2 is more or less 100 milliseconds then $date 1 in...
(3) odpowiedzi
2017-04-13 10:04 Difference between 2 dates in months Yii2 »
I have a question here. I need to get the difference betweeen 2 dates in months by using Yii2. I know that I should use diff and format it in months, ...
(2) odpowiedzi