What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-09-08 09:39:01
create a random question generator php
<?php //Connect with mysql $db = new mysqli("host","user","pass","db"); //Perform the query to choose random questions $query = $db->query("SELECT * FROM `table` ORDER BY RAND() LIMIT 2... Add solution -
Other 2021-09-08 00:11:01
check if users is from outside india using lat and long
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=<YOURGOOGLEKEY>&sensor=false&v=3&li... Add solution -
PHP 2021-09-06 21:08:02
laravel download file from storage with progress bar
<script type="text/javascript"> $(".download").click(function(){ window.location.href = 'file/30mb.pdf'; //set your file url which want to download var data = []; for (var i = 0; i < 100000; i++) { var tmp... Add solution -
Html 2021-09-06 20:16:01
html starter
<!DOCTYPE html> <html> <head> <title>PUT A TITLE HERE</title> </head> <body> <canvas id="canvas" width="200" height = "200"></canvas> <script type="text/javasc... Add solution -
Html 2021-09-06 19:50:04
how to display an array in html
<p id="display-array"></p> <script type="text/javascript"> // array to be displayed var array = [1, 2, 3, 4, 5]; // access the textContent of the HTML element and set it to the // value of the array seperated ... Add solution -
Javascript 2021-09-06 16:50:03
duplicate images in webpage js
<div id="list"><img id="item" src = "picture.jpg"></div> <script type="text/javascript"> function cloneItem() { var item = document.getElementById("item"); var list =... Add solution