What do you want to save?
Add Code snippet
New code examples
-
Python 2022-02-19 03:10:03
bootstrap Navbar active in django
# navbar_demo/pages/views.py... '''We will pass a unique variable for each page whose value will be 'active' to make a page active in navbar when it call.''' def index(request): context = {"home_page": "active"} # new info he... Add solution -
CSS 2022-02-16 05:30:03
css class id
.myclass { border:1px solid black; background-color: #d2d2d2; height:20px; width:60px; } /*If you give this class to a div in html, it will get the styles you gave to that class. You can add multiple classes to a div, and multiple divs can get tha... Add solution -
Html 2022-02-15 21:05:20
javascript how to multiply numbers
<!-- Multiplying two numbers in HTML and Javascript --> <main> <label for="firstNum">Number 1:</label> <input type="number" id="firstNum" name="firstNum"> <label for="secondNu... Add solution -
TypeScript 2022-02-03 00:25:56
how to restrict alphabets in input field in angular
phoneKeyDown(e){ const keyCode = e.keyCode; if (( (e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) && e.keyCode !=8) { e.preventDefault(); } } // IN HTML <ion-inpu... Add solution -
PHP 2022-02-02 22:05:42
SMTP -> ERROR: Failed to connect to server: Connection refused (111)SMTP Connect() failed.
<?php include "emails/PHPMailer/PHPMailerAutoload.php"; //or just include the phpMailer //Create a new PHPMailer instance $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPDebug = 1; $mail->SMTPAuth =... Add solution -
PHP 2022-02-02 18:30:50
showing database table in php
$connection = mysql_connect('localhost', 'root', ''); //The Blank string is the password mysql_select_db('hrmwaitrose'); $query = "SELECT * FROM employee"; //You don't need a ; like you do in SQL $result = mysql_query($query); echo "<t... Add solution