Skip to content
  • Register
  • Login

LT BYTES

Learn Tech Bytes

  • Home
  • AWS
  • PHP

Month: January 2011

Posted inAll / Javascript

disable and enable form element using jquery

by SuryaJanuary 29, 2011December 4, 20230

Using Id: To Disable the Element: jQuery(‘#id’).attr(‘disabled’,’disabled’); //Here id is form element id To Enable the Element: jQuery(‘#id’).removeAttr(“disabled”); Using Name: To Disable the Element: jQuery(‘input[name=”elementname”]’).attr(‘disabled’,’disabled’); … disable and enable form element using jqueryRead more

Posted inAll / Javascript

Get the text box value using jquery

by SuryaJanuary 22, 2011December 4, 20230

By using textboxid: jQuery(‘#texboxid’).val(); By using name: jQuery(‘input[name=”textboxname”]’).val();

Posted inAll / Php

Get hours, minutes and second of the current time using date function in php

by SuryaJanuary 15, 2011December 4, 20230

<?php $hours = date(“H”); $minutes = date(“i”); $seconds = date(“s”); ?>

Posted inAll / Sql

get number of days between two given dates using MySQL

by SuryaJanuary 15, 2011December 4, 20230

SELECT DATEDIFF(“2007-03-07”, “2007-03-01”); // For static dates SELECT DATEDIFF(ColumnA, ColumnB); // For Table column based dates

Posted inAll / Php

Difference between include and require

by SuryaJanuary 15, 2011December 4, 20230

require(): It will cause a fatal error and halt the execution of the script if the file not found. include(): If the file not found … Difference between include and requireRead more

Posted inAll / Sql

get number of records count in mysql

by SuryaJanuary 15, 2011December 4, 20230

To get the records count of table in mysql: SELECT COUNT(‘fieldname’) AS RecordsCount FROM TableName; (OR) SELECT COUNT(*) FROM TableName;

Posted inAll / Javascript

What is AJAX and it’s full form

by SuryaJanuary 15, 2011December 4, 20230

Full Form: Asynchronous JavaScript and XML. Ajax uses web technologies on the client-side to create asynchronous web applications. With Ajax, web applications can send and … What is AJAX and it’s full formRead more

Posted inAll

Get the current date using MySQL

by SuryaJanuary 15, 2011December 4, 20230

SELECT NOW(); (OR) SELECT CURDATE(); (OR) SELECT CURRENT_DATE();

Posted inAll / Javascript

Submit a form without submit button

by SuryaJanuary 15, 2011December 4, 20230

document.formname.submit(); //It will work when we are using single form in a page document.forms[‘formname’].submit(); //It will work when we are using multiple forms // above … Submit a form without submit buttonRead more

Posted inAll / Sql

Maximum length of a Database name, Table name, Field name in MySQL

by SuryaJanuary 15, 2011December 4, 20230

Database name: 64 characters Table name: 64 characters Column name: 64 characters

Posts navigation

1 2 Next

Recent Posts

  • Deploying AWS Lambda with Docker & Serverless Framework
  • Create and Update SNS Subscription Filter Policy using Python Boto3
  • Turn on errors in PHP
  • Php coding standards
  • WordPress plugin to save contact information to database

Recent Comments

No comments to show.

Archives

  • February 2025
  • January 2024
  • December 2023
  • March 2013
  • December 2012
  • April 2012
  • August 2011
  • April 2011
  • February 2011
  • January 2011
  • October 2010
  • July 2010
  • June 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009

Categories

  • All
  • AWS
  • Javascript
  • Joomla
  • Php
  • Python
  • Sql
  • Uncategorized
  • Wordpress
Copyright © 2025 LT BYTES.
Powered by WordPress and BNM.
  • Home
  • AWS
  • PHP