We can use the following query for add new field to table. this types of queries are alter queries Syntax :ALTER `<table name>` ADD `<fieldname>` <type> <option> Example: ALTER TABLE `engine4_core_poll_societies` ADD `soc_admin` INT NOT NULL
parseInt in jQuery for type conversion
convert data type to integer in jquery. Some times need to convert type into integer for doing different kinds of numerical operations. syntax: parseInt(value); Eg : var smarterthanyou = parseInt($(“#yourname”).val());
How to add some font to a website
<style type=”text/css”> @font-face { font-family: “Smart Tips”; src: url(https://www.smarttips.in/smarttips.ttf) format(“truetype”); } h1.customfont { font-family: “Smart Tips”, Verdana, Tahoma; } </style> add some google fonts to your website <link href=” http://fonts.googleapis.com/css?family=Smart+Tips” rel=”stylesheet” type=”text/css” /> p1 { font-family: ‘Smart Tips’, arial, serif; }
find yesterday date in php
Use php date function and minus (-1) days from today’s date $smart_yesterday = strtotime(date(‘Y-m-d’, strtotime( ‘-1 days’)));
How to Recover deleted files on netbeans IDE
NetBeans IDE 7.3 is a super tool for development and it supports several programming languages.We are now using NetBeans IDE 7.3 for different different types of software development environments. In NetBeans IDE 7.3 recovering options are also available. Right click on the folder/directory of NetBeans IDE 7.3 that the files had been deleted. Then Choose Local History…
