Feb
11
2010

check keycode enter use javascript

This function use to check enter on form with jquery function check_key(e) { var keycode; if (window.event) keycode = window.event.keyCode; else if (e) keycode = e.which; if(keycode == 13){ return false; } } Share and Enjoy:

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Twitter
Jan
30
2010

create table from other table

Tạo 1 table từ  1 table khác: Create Table new_table Select * From old_table Share and Enjoy:

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Twitter
Jan
14
2010

export from mysql to excel in PHP

Export MySQL data records to an Excel file in one PHP file, simple and easily! This tutorial require 1 PHP file and 1 table of mySQL database. export_excel.php Database “tutorial” and table “name_list” with 2 fields: id(auto_increment), name(varchar, 50) and put some records about 20 – 30 records into this table. (directly by phpMyAdmin Source Code <? // Connect database. mysql_connect(“localhost”,””,””); mysql_select_db(“tutorial”); // Get data records from table. $result=mysql_query(“select * from name_list order by id [...]

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Twitter
Jan
4
2010

Mysql Select Data From One Table Update To Other

++++++++++++++ + Website_cv ++++++++++++++ + cv_id + status ++++++++++++++ +++++++++++++++ + Website_apply_job +++++++++++++++ + cv_id + status +++++++++++++++ => copy Status From website_cv to website_apply_job UPDATE website_apply_job JOIN website_cv ON website_cv.cv_id = website_apply_job.cv_id SET website_apply_job.STATUS = website_cv.STATUS; Share and Enjoy:

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Twitter
Nov
2
2009

position: fixed in IE

/*Make position:fixed work in IE6!*/ .fixed-top /* position fixed Top */{position:fixed;bottom:auto;top:0px;} .fixed-bottom /* position fixed Bottom */{position:fixed;bottom:0px;top:auto;} .fixed-left /* position fixed Left */{position:fixed;right:auto;left:0px;} .fixed-right /* position fixed right */{position:fixed;right:0px;left:auto;} * html,* html body /* IE6 Fixed Position Jitter Fix */{background-image:url(about:blank);background-attachment:fixed;} * html .fixed-top /* IE6 position fixed Top */{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));} * html .fixed-right /* IE6 position fixed right */{position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,10)||0)-(parseInt(this.currentStyle.marginRight,10)||0));} * html .fixed-bottom /* IE6 position fixed Bottom */{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));} * html .fixed-left /* IE6 position fixed Left [...]

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Twitter

Sponsors