Most viewed questions in Web Development

0 votes
1 answer

jQuery find all elements with class beneath parent, even in children elements

Remove > from your select $(".parent .searchEl"). You can use the .find() method ...READ MORE

Jun 7, 2022 in JQuery by Edureka
• 13,670 points
9,875 views
–1 vote
1 answer

Error:Notice: Array to string conversion in C:\xampp\htdocs\Niroj\FinalSubmissionOfTheFormPHP.php on line 8

Hello @kartik, When you have many HTML inputs ...READ MORE

Aug 27, 2020 in PHP by Niroj
• 82,880 points
9,812 views
0 votes
1 answer

Error: Cannot find module 'ejs'

Hello @kartik, Go up one level (above app.js) ...READ MORE

Sep 7, 2020 in Node-js by Niroj
• 82,880 points
9,806 views
0 votes
0 answers

PHP Session Destroy on Log Out Button

I'm currently working on a website that ...READ MORE

Jul 26, 2022 in PHP by Kithuzzz
• 38,010 points
9,766 views
0 votes
1 answer

How to make login with Nodejs and MongoDB?

MongoDB Login and Registration with Node js ...READ MORE

Jun 16, 2022 in Node-js by Neha
• 9,060 points
9,724 views
0 votes
2 answers

Define a SQL query? What is the difference between SELECT and UPDATE Query? How do you use SQL in SAS?

HI.. SQL is Structured Query Language, which is ...READ MORE

Aug 8, 2020 in PHP by anonymous
9,692 views
0 votes
1 answer

How To Pass GET Parameters To Laravel From With GET Method ?

Hello @kartik, The simplest way is just to ...READ MORE

Sep 24, 2020 in Laravel by Niroj
• 82,880 points
9,653 views
0 votes
1 answer

jQuery UI DatePicker to show month year only

Here's a hack (updated with entire .html ...READ MORE

Jun 2, 2022 in JQuery by Edureka
• 13,670 points
9,624 views
0 votes
1 answer

How npm start runs a server on port 8000?

Hello @kartik, If you will look at package.json file. you will ...READ MORE

Sep 7, 2020 in Node-js by Niroj
• 82,880 points
9,617 views
0 votes
1 answer
0 votes
1 answer

Required_if laravel with multiple value

You just have to pass all the ...READ MORE

Dec 8, 2020 in Laravel by Niroj
• 82,880 points
9,508 views
0 votes
1 answer

Text border using css (border around text)

To apply borders to fonts in CSS, ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
9,458 views
0 votes
1 answer

Fixed position but relative to container

The issue with "fixed" positioning is that ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,690 points
9,447 views
0 votes
1 answer

How to upload and delete files from dropzone.js?

Hello, For deleting thumbnails you have to enable ...READ MORE

Nov 4, 2020 in PHP by Niroj
• 82,880 points
9,415 views
0 votes
1 answer

How can I ping a server port with PHP?

Hello, Try this : echo exec('ping -n 1 -w ...READ MORE

Nov 22, 2020 in PHP by Niroj
• 82,880 points
9,396 views
0 votes
1 answer

How jQuery event to trigger action when a div is made visible?

Hello @kartik, You could always add to the ...READ MORE

Aug 25, 2020 in Java-Script by Niroj
• 82,880 points
9,375 views
0 votes
1 answer

How to change url after success in ajax without page reload?

Hello @kartik, Use the browser history to change ...READ MORE

Apr 29, 2020 in Java-Script by Niroj
• 82,880 points
9,366 views
0 votes
1 answer

How can I use break or continue within for loop in Twig template?

Hello @kartik, This can be nearly done by setting a ...READ MORE

Oct 22, 2020 in PHP by Niroj
• 82,880 points
9,334 views
0 votes
1 answer

How do I use HTML as the view engine in Express?

Hello @kartik, To make the render engine accept ...READ MORE

Jul 17, 2020 in Node-js by Niroj
• 82,880 points
9,332 views
0 votes
1 answer

addClass and removeClass in jQuery - not removing class

What happens is that your close button ...READ MORE

Jun 2, 2022 in JQuery by Edureka
• 13,670 points
9,308 views
0 votes
1 answer

How to order results with findBy() in Doctrine

Hii @kartik, Try out this code $ens = $em->getRepository('AcmeBinBundle:Marks')               ...READ MORE

Apr 20, 2020 in PHP by Niroj
• 82,880 points
9,297 views
0 votes
1 answer

How to access iFrame parent page using jquery?

Hello @kartik, To find in the parent of ...READ MORE

Sep 3, 2020 in Java-Script by Niroj
• 82,880 points
9,265 views
0 votes
0 answers

How can I access http://localhost/wordpress/wp-admin/install.php?

WordPress is running on localhost for me ...READ MORE

Aug 6, 2022 in PHP by Kithuzzz
• 38,010 points
9,254 views
0 votes
0 answers

phpmyadmin Failed to set session cookie. Maybe you are using HTTP instead of HTTPS

I successfully installed PHP, Apache, and MySQL. ...READ MORE

Jul 28, 2022 in PHP by Kithuzzz
• 38,010 points
9,254 views
0 votes
1 answer

How to upload files in Laravel directly into public folder?

Hello @kartik, You can create a new storage ...READ MORE

Sep 28, 2020 in Laravel by Niroj
• 82,880 points
9,219 views
0 votes
1 answer

Get selected value of a dropdown's item using jQuery

Use the jQuery: selected selector in combination ...READ MORE

Jun 3, 2022 in JQuery by Edureka
• 13,670 points
9,212 views
0 votes
1 answer

How could I call that function from the command line in nodejs?

Hello @kartik, In your db.js, export the init function. There are ...READ MORE

Oct 7, 2020 in Java-Script by Niroj
• 82,880 points
9,191 views
0 votes
1 answer

Error:Composer Out of memory in Laravel?

Hey @kartik, This Error  happens in almost all ...READ MORE

Mar 30, 2020 in Laravel by Niroj
• 82,880 points
9,180 views
0 votes
1 answer

How do you get the path to the Laravel Storage folder?

Hello @kartik, In Laravel 3, call path('storage'). In Laravel 4, ...READ MORE

Sep 11, 2020 in Laravel by Niroj
• 82,880 points
9,167 views
0 votes
0 answers

localhost/phpmyadmin is not working when i am trying to open using admin button in xampp dashboard but working in some other way

The phpmyadmin console is not opening when ...READ MORE

May 29, 2022 in PHP by Kichu
• 19,050 points
9,126 views
0 votes
1 answer

How to upload and Save Files with Desired name using php?

Hello, You can try this, $info = pathinfo($_FILES['userFile']['name']); $ext = ...READ MORE

Nov 4, 2020 in PHP by anonymous
• 82,880 points
9,062 views
0 votes
1 answer

How to deny direct access to a folder and file by htaccess?

Hello @kartik, Just move the includes folder out of the ...READ MORE

Aug 24, 2020 in Web Development by Niroj
• 82,880 points
9,017 views
0 votes
1 answer

How to print all session variables currently set?

Hello @kartik, Use this: echo '<pre>'; var_dump($_SESSION); echo '</pre>'; Or you can ...READ MORE

Oct 19, 2020 in PHP by Niroj
• 82,880 points
8,985 views
0 votes
1 answer

How to open the newly created image in a new tab?

Hello @kartik, You can try something like: success: function ...READ MORE

Jun 19, 2020 in Java-Script by Niroj
• 82,880 points
8,956 views
0 votes
1 answer

How to unset or remove a collection element after fetching it?

Hello @kartik, You would want to use ->forget() $collection->forget($key); Hope it ...READ MORE

Sep 11, 2020 in Laravel by Niroj
• 82,880 points
8,947 views
0 votes
1 answer

How to show old data of dynamic checkbox in Laravel?

Hello @kartik, This will work: ...READ MORE

Sep 30, 2020 in Laravel by Niroj
• 82,880 points
8,940 views
0 votes
1 answer

How to update nested state properties in React

Hello @kartik, In order to setState for a nested object ...READ MORE

Jul 22, 2020 in Angular by Niroj
• 82,880 points
8,927 views
0 votes
1 answer

How to get all pending jobs in laravel queue on redis?

Hello @kartik, Here is the way I do ...READ MORE

Apr 6, 2020 in Laravel by Niroj
• 82,880 points
8,925 views
0 votes
1 answer

How do I run PHP code when a user clicks on a link?

Hello @kartik, You'd need to have a javascript ...READ MORE

Jul 6, 2020 in Java-Script by Niroj
• 82,880 points
8,901 views
0 votes
1 answer

Error: Unexpected token import in nodejs

Hello, Unfortunately, Node.js doesn't support ES6's import yet. To accomplish what ...READ MORE

Apr 24, 2020 in Java-Script by Niroj
• 82,880 points
8,900 views
0 votes
1 answer

How to Install a local module using npm?

Hello @kartik, This is what worked for me: npm ...READ MORE

Jul 9, 2020 in Node-js by Niroj
• 82,880 points
8,867 views
0 votes
1 answer

Error:The bootstrap/cache directory must be present and writable' error after update

Hello @kartik, Try this after you have run ...READ MORE

Aug 11, 2020 in Laravel by Niroj
• 82,880 points
8,842 views
0 votes
1 answer

How can I use PHP to check if a directory is empty?

Hello @kartik, It seems that you need scandir instead of ...READ MORE

Nov 10, 2020 in PHP by Niroj
• 82,880 points
8,838 views
0 votes
1 answer

How do check if a PHP session is empty?

Hii, I would use isset and empty: session_start(); if(isset($_SESSION['blah']) && !empty($_SESSION['blah'])) { ...READ MORE

Nov 9, 2020 in PHP by Niroj
• 82,880 points
8,838 views
0 votes
1 answer

How can I format a date coming from MongoDB?

Hello @kartik, JavaScript has built-in support for dates. ...READ MORE

Nov 30, 2020 in Node-js by Niroj
• 82,880 points
8,822 views
0 votes
0 answers

PHP file_get_contents() returns "failed to open stream: HTTP request failed!"

I'm having trouble using PHP code to ...READ MORE

Jul 28, 2022 in PHP by Kithuzzz
• 38,010 points
8,807 views
0 votes
1 answer

Error:React-router urls don't work when refreshing or writing manually

Hello @kartik, You can change your .htaccess file and insert ...READ MORE

Apr 27, 2020 in Java-Script by Niroj
• 82,880 points
8,802 views
0 votes
1 answer

How to Prevent browser caching of AJAX call result?

Hii, JQuery's $.get() will cache the results. Instead ...READ MORE

Jun 18, 2020 in Java-Script by Niroj
• 82,880 points
8,790 views
0 votes
1 answer

How to Abort Ajax requests using jQuery?

Hello kartik, Just use ajax.abort(). For example you could ...READ MORE

Apr 27, 2020 in Java-Script by Niroj
• 82,880 points
8,777 views
0 votes
1 answer

How to write a test which expects an Error to be thrown in Jasmine?

Hello @kartik, Try using an anonymous function instead: expect( ...READ MORE

Jul 13, 2020 in Node-js by Niroj
• 82,880 points
8,761 views