Cùng ủng hộ nhau moi xiền của google

Search

Google
 

Sunday, 27 January 2008

Export, Import table trong MySQL

1/Export 1 table ra text file
+)tạo 1 database và 1 table với cấu trúc phía dưới
PHP Code:
drop database if exists Exdatabase;
create database Exdatabase;
create table Exdatabase.Extable (
id tinyint(2) AUTO_INCREMENT not null,
ten varchar(30) null,
ngaysinh date null,
primary key (id)
)
engine=innodb charset=utf8;
+)nhập DL cho table Extable
PHP Code:
insert into Exdatabase.Extable(ten,ngaysinh)
values ('thanh','6543-2-1'),('vợ thanh','2345-6-7')
+)tiến hành Export data trong table Extable ra text file(ExportMySQL.txt)
PHP Code:
select * from extable into outfile 'D:\ExportMySQL.txt'
fields TERMINATED by ','
lines TERMINATED by '\r\n';
bây giờ bạn đã có 1 file ExportMySQL.txt nằm ở thư mục ổ D với định dạng file
Trích dẫn:
1,thanh,6543-02-01
2,vợ thanh,2345-06-07
chú ý :
-bạn có thể thay đổi dấu ngăn cách mỗi cột trong table Extable bằng cách thay đổi kí tự trong lệnh fields TERMINATED by 'kí tự'
-có thể export với nhiều điều kiện khác nhau sau lệnh select


2/Import 1 text file vào 1 table trong MySQL
+)tạo 1 database và 1 table với cấu trúc phía dưới
PHP Code:
drop database if exists Imdatabase;
create database Imdatabase;
create table Imdatabase.Imtable (
id tinyint(2) null,
ten varchar(30) null,
ngaysinh date null
)
engine=innodb charset=utf8;
+)Nhập dữ liệu cho text file ImportMySQL.txt('D:\ImportMySQL.txt') với các cột được ngăn cách bằng kí tự tùy ý,mỗi dòng trong text file sẽ tương ứng với mỗi record được import vào table,bạn lưu ý khi save text file bạn cần chọn Encoding=utf8 nếu muốn hiển thị unicode lên table cần import
+)tiến hành Import data từ ImportMySQL.txt vào table Imtable
PHP Code:
load data infile 'D:\ImportMySQL.txt'
into table Imtable
fields TERMINATED by
'kí tự ngăn cách'
lines TERMINATED by '\r\n';
với cấu trúc DL trong text file
Trích dẫn:
1,vô danh,2134-3-4
2,chưa rõ,3456-1-2
kết quả ta nhận được bảng Import



chú ý : bạn có thể giới hạn số dòng cần Import với lệnh IGNORE 'số dòng' LINES sau lệnh Import

với file html cũng tương tự như file text

Saturday, 26 January 2008

margin và padding

MARGIN

Margin được dùng để kiểm soát khoảng trống giữa các thành phần của trang, hay còn được gọi là lề. Hãy để ý các khoảng trống mà trình duyệt của bạn hiển thị khi bạn xem bất kỳ trang web hay blog. Nào, đăng nhập blogger.com bằng tài khoản Google của bạn, vào Template (Mẫu) ->Edit HTML (Chỉnh sửa HTML), kéo thanh trược xuống và bạn có thể nhìn thấy rất nhiều thành phần có margin với các giá trị khác nhau. Phụ thuộc vào số giá trị đứng phía sau mà khoảng trống khác nhau. Bạn có thể bắt gặp 4, 3, 2, thậm chí 1 giá trị đứng phía sau.

Bốn giá trị:

margin 10px 5px 0 5px;

Lề trên, phải, dưới, trái được canh lần lượt theo các khoảng cách 10px, 5px, 0px, 5px

Ba giá trị:

margin: 30px 20px 70px;

Lề trên, phải, dưới, trái được canh lần lượt theo các khoảng cách 30px, 20px, 70px, 20px

Hai giá trị:

margin: 30px 20px;

Lề trên và dưới: 30px
Lề trái và phải: 20px

Một giá trị:

margin: 100px;

Tất cả các lề đều được canh một khoảng cách 100px

Nếu bạn không nhớ các vị trí này, hãy sử dụng theo cú pháp sau cho từng vị trí một.

margin-top: 1px;
margin-right: 2px;
margin-bottom: 3px;
margin-left: 4px;

(Các con số ở đây là ví dụ)

PADDING

Padding dùng để kiểm soát khoảng trống giữa nội dung và đường viền của nó. Trong tiếng Anh, từ này có nghĩa là vật hay sự đệm, lót.

Tương tự như margin, padding cũng có thể có 4 giá trị đi phía sau, tương ứng trên, phải, dưới, trái (như chiều kim đồng hồ).

Ví dụ:

padding: 15px 30px 25px 0;

Trên 15px, phải 30px, dưới 25px, trái 0px

Ngoài ra người ta có thể dùng:

padding-top: 15px;
padding-right: 30px;
padding-bottom: 0;
padding-left: 30px;

(Các con số ở đây là ví dụ)

Bạn đã nắm được chưa, bắt tay vào thay đổi margin và padding đi nào!

Tuesday, 22 January 2008

Những câu chúc ngày Tết

Những lời chúc xuân

1. CHÚC MỪNG NĂM MỚI. 12 tháng phú quý, 365 ngày phát tài, 8760 giờ sung túc, 525600 phút thành công 31536000 giây VẠN SỰ NHƯ Ý. Wishing you 1 year of happiness, 12 months of fun, 52 weeks of gladness, 365 days of success, 8760 hours of good health and 525600 minutes of good luck !

2. HAPPY NEW YEAR! Chúc năm mới

3. Ngàn lần như ý, Vạn lần như mơ, Triệu sự bất ngờ, Tỷ lần hạnh phúc.

4. Tống cựu nghênh tân – Vạn sự cát tường – Toàn gia an phúc

5. Năm hết tết đến. Rước hên vào nhà. Quà cáp bao la, một nhà không đủ. Vàng bạc đầy tủ. Gia chủ phát tài. Già trẻ gái trai, sum vầy hạnh phúc. Cầu tài chúc phúc. An lành thịnh vượng.

6. Tết tới tấn tài – Xuân sang đắc lộc, Gia đình hạnh phúc - Vạn sự cát tường

7. Đong cho đầy Hạnh phúc. Gói cho tròn Lộc tài. Giữ cho mãi An Khang. Thắt cho chặt Phú quý. Cùng chúc nhau Như ý, Hứng cho tròn An Khang, Chúc năm mới Bình An. Cả nhà đều Sung túc.

8.
Mùa xuân xin chúc
Khúc ca an bình
Năm mới phát tài
Vạn sự như ý

Già trẻ lớn bé
Đầy ắp tiếng cười
Trên mặt ngời ngời
Tràn đầy hạnh phúc

Xuân đến hy vọng
Ấm no mọi nhà
Kính chúc ông bà
Sống lâu trăm tuổi

Kính chúc ba mẹ
Sức khoẻ dồi dào
Đôi lứa yêu nhau
Càng thêm nồng ấm

Các em bé nhỏ
Học giỏi chăm ngoan
Chúc Tết mọi người
Năm mới hoan hỉ
Gặp nhau niềm vui...


9. Sang năm mới chúc mọi người có một bầu trời sức khoẻ, một biển cả tình thương, một đại dương tình cảm, một điệp khúc tình yêu, một người yêu chung thủy, một tình bạn mênh mông, một gia đình thịnh vượng. Chúc các bà, các ông, các cô, các chú, các chị, các anh sang năm mới vạn sự như ý, tỷ sự như mơ, làm việc như thơ, đời vui như nhạc, coi tiền như rác, coi bạc như rơm, chung thủy với cơm và sắc son với phở. Chúc vui vẻ

10. Cung Chúc Tân Xuân Phước Vĩnh Cửu
Chúc Trong Gia Quyến Được An Khương
Tân Niên Lai Đáo Đa Phú Quí
Xuân Đến An Khương Vạn Thọ Tường


11.
Năm hết tết đến
Rước lộc vào nhà
Quà cáp bao la
Mọi nhà no đủ
Vàng bạc đầy tủ
Gia chủ phát tài
Già trẻ gái trai
Xum vầy hạnh phúc
Cầu tài chúc phúc
An khang thịnh vượng

Bộ sưu tập lời chúc năm mới ^_^..... hay lắm ý !


Mỗi dịp Tết đến Xuân về, hẳn mỗi chúng ta đều nhận được rất nhiều lời chúc Tết qua điện thoại, blog, email...

Không biết mọi người thì sao? Còn tôi thì vừa thích nhận được những lời nhắn chúc Tết đọc thấy hóm hỉnh, vui vui (dù biết đây là những lời chúc gửi ai cũng được, thường thì người gửi copy lại của người khác và gửi cho mình, nhưng dù sao như vậy thì chí ít người ta cũng nhớ đến mình); lại vừa mong muốn nhận được những lời chúc tình cảm riêng tư mà người chúc viết riêng cho mình, chỉ mình mới cảm nhận được hết cái ý vị của nó!

Sưu tầm một số lời chúc hay hay gọi là làm quà chúc Tết chung cho mọi nhà:

Những lời chúc đã quen thuộc trong nhiều năm:

- Thay mặt Đảng, Quốc hội, Chính phủ, Mặt trận Tổ quốc kính chúc đồng chí và gia đình một năm mới hạnh phúc, an khang, thịnh vượng!

- Chúc bạn có 1 bầu trời sức khỏe, 1 Biển cả tình thương, 1 Đại dương tình bạn, 1 Điệp khúc tình yêu, 1 Người yêu chung thủy, 1 Sự nghiệp sáng ngời, 1 Gia đình thịnh vượng.

- Chúc cả gia đình bạn vạn sự như ý, Tỉ sự như mơ, Triệu triệu bất ngờ, Không chờ cũng đến!

- Năm mới Tết đến. Rước hên vào nhà. Quà cáp bao la. Mọi nhà no đủ. Vàng bạc đầy hũ. Gia chủ phát tài. Già trẻ gái trai. Sum vầy hạnh phúc. Cầu tài chúc phúc. Lộc đến quanh năm. An khang thịnh vượng!

- Chúc một năm mới vui vẻ, 12 tháng sức khoẻ, 52 tuần thành công, 365 ngày hạnh phúc, 8.760 giờ tốt lành, 525.600 phút may mắn, 31.536.000 giây như ý...

- Đong cho đầy hạnh phúc - Gói cho trọn lộc tài - Giữ cho mãi an khang - Thắt cho chặt phú quý...

- Hoa đào nở, chim én về, mùa Xuân lại đến. Chúc nghìn sự như ý, vạn sự như mơ, triệu sự bất ngờ, tỷ lần hạnh phúc...

- Cung chúc tân niên, Sức khỏe vô biên, thành công liên miên, hạnh phúc triền miên, túi luôn đầy tiền, sung sướng như tiên.

- Today 3 people ask me about you. I gave them your details and contact. They’ll be finding you soon. Their names are Happiness, Wealth and Love. Cheers - Happy New Year”. (Hôm nay có 3 người hỏi tôi về bạn và tôi đã giúp để họ tìm đến với bạn ngay. Tên của 3 người ấy là Hạnh phúc, Thịnh vượng và Tình yêu".

Những lời chúc ngắn gọn, nhẹ nhàng:

- Năm mới thái độ yêu đời mới!

- Chúc các bạn nhiều lý do để vui vẻ năm tới!

- Chúc bạn luôn vui vẻ, bình an và hạnh phúc trong năm mới!

Chúc nhau bằng thơ, câu đối:

- Xuân này hơn hẳn mấy xuân qua.
Phúc lộc đưa nhau đến từng nhà.
Vài lời cung chúc tân niên mới.
Vạn sự an khang vạn sự lành

- Năm mới chúc nhau sức khỏe nhiều.
Bạc tiền rủng rỉnh thoải mái tiêu.
Gia đình hạnh phúc bè bạn quý.
Thanh thản vui chơi mọi buổi chiều.

- Đầu xuân năm mới chúc BÌNH AN,
Chúc luôn TUỔI TRẺ chúc AN KHANG.
Chúc sang năm mới nhiều TÀI LỘC,
Công thành danh toại chúc VINH QUANG..

- CUNG kính mời nhau chén rượu nồng
CHÚC mừng năm đến, tiễn năm xong
TÂN niên phúc lộc khơi vừa dạ
XUÂN mới tài danh khởi thỏa lòng
VẠN chuyện lo toan thay đổi hết
SỰ gì bế tắc thảy hanh thông
NHƯ anh, như chị, bằng bè bạn
Ý nguyện, duyên lành, đẹp ước mong

- Cung chúc tân niên một chữ nhàn.
Chúc mừng gia quyến đặng bình an.
Tân niên đem lại niềm Hạnh Phúc.
Xuân đến rồi hưởng trọn niềm vui

- Năm mới chúc nhau sức khỏe nhiều.
Bạc tiền rủng rỉnh thoải mái tiêu.
Gia đình hạnh phúc bè bạn quý.
Thanh thản vui chơi mọi buổi chiều

- Tui cũng xin chúc bà con
Đàn ông lủng lẳng hai hòn còn nguyên
Đàn bà thêm đẹp, nhiều duyên
Trẻ con nho nhỏ có tiền ăn chơi!

Những lời chúc vui vui:

- Chúc ông bà 1 tô như ý. Chúc cô chú 1 chén an khang. Chúc anh chị 1 dĩa, 1 dĩa...tài lộc!

- Giao thừa sắp đến.Chúc bạn đáng mến. Sự nghiệp tiến lên. Gặp nhiều điều hên!

- Chúc năm mới: 1 vợ, 2 con, nhà 3 tầng, xe 4 chỗ!

- Thay mặt nhân dân của một đất nước có hơn 2 triệu người chết đói cách đây 63 năm xin chúc quý vị ăn Tết thật xa hoa, lãng phí. Hoặc: Thay mặt những gia đình nghèo, nạn nhân của các cơn bão năm qua trên đất nước ta, xin chúc quý vị ăn Tết thật xa hoa, lãng phí!

Lời chúc dành cho năm Chuột (Mậu Tý 2008):

- Chàng Hợi 07 vui vẻ mời. Nàng Tý 08 tươi trẻ tới. Pháo hoa rực sáng đêm giao thừa. Chúng ta vui mừng đón chào năm mới!

- Mừng 2008 phát tài phát lộc/ Tiền vô xồng xộc, tiền ra từ từ/ Sức khoẻ có dư, công danh tấn tới/ Tình duyên phơi phới, hạnh phúc thăng hoa/ Xin chúc mọi nhà một năm ĐẠI THẮNG!

- :•.(¯`°´¯).• ¤*•,¸.¸,¤*•,¸.¸, •*¤*•,¸.CHÚC MỪNG NĂM MỚI,•*¤*•,¸.¸, •*HAPPY•*HAPPY NEW YEAR *•,¸.¸,•*¤*•,¤*•,¸.¸ ,•*¤*•,¸.,•*¤*•,¸.¸, •*?,•*¤*•,¸.,•*¤*•,¸ .¸,•*?*¤*•,¸.¸,•* ..^^..


Theo Aryan® "s Blog

Saturday, 15 December 2007

6 Ways to Make Money Blogging

1) Cost-Per-Click (CPC) Advertising Programs
CPC advertising programs are the best money making programs for most of the bloggers. They are suitable to all kind of blogs with family-friendly content regardless of their traffic level and age. CPC programs work well on blog because they display contextual ads that are highly relevant to blogs content and bloggers will earn anywhere between 10 cents to 50 cents for each contextual ads click by their visitors. With proper CPC ads optimization and consistent amount of traffic, a blogger can earn a steady amount of money displaying CPC ads on his/her blog.

2) Cost-Per-Action (CPA) Advertising Programs
CPA programs is quite similar to CPC programs except CPA programs don't pay bloggers for each click on the CPA ads hosted by bloggers. The blogger only makes money when the visitor takes an action on the CPA advertiser website. The action can be a sign up, making a purchase, generating a lead, downloading a product and more. CPA networks pay a lot more than CPC programs, for a visitor sent by the blogger from his/her blog to a CPA advertiser website and the visitor taken an action on the advertiser site, the blogger can earn few dollar to fifty dollar depend on the niche. But CPA ads tend to work well on large traffic blogs only. AzoogleAds.com, Commission Junction and Advertising.com are some of the largest CPA networks. They are good payer currently. Good way to make extra money together with CPC.

3) Promote Affiliate Programs
Marketing affiliate programs is very common nowadays. You sign up with affiliate program of an online company, then decide whether to use the company's text link or banner ads on your blog to promote the company's products or services and earn affiliate commission when a visitor make a purchase through your affiliate link. Affiliate programs can be promoted without a website and blog too.

4) Pay Per Post Programs
Pay per post programs started last year. The programs pay bloggers to write a blog post about a sponsor's website. The paid blog post can be a review or an introduction on the advertiser's website, products or services. The blogger will be paid a least $5 for each sponsor post. Blogs that have massive traffic, high Google PR and large number of subscribers can charge a few hundred dollar for just writing one sponsor post.

The downside of pay per post is that writing too many sponsor posts that are not relevant to your blog content can seriously affect your traffic.

5) Sell Text Link Ads
Selling text links on your blog can be a great source of additional online revenue. It is not difficult to get started, just go to to sign up an account (and get $100 free), then decide which part of your pages you want to display paid text links, set your price and you are ready to take order. Text-link-ads.com will handle all the promotional works. Another company that offers the similar services as Text-link-ads.com is Reverselinks.com

6) Hosting Web Poll
Vizu Answer offers a pretty new way to monetize your blog's and website's traffic. The pays the publishers on a cost-per-thousand impression (CPM) basis for hosting targeted web poll. The money a blogger can earn from hosting poll is depending on the page views. The more page views, the higher the earning

Wednesday, 12 December 2007

10 more jobs you can have at home

(CareerBuilder.com) -- How would you like to work from home? No hustling out the door 10 minutes late, no fighting your road rage or battling for the last seat on train, no fast food lunch and no noisy co-workers. Sounds like heaven doesn't it?

More than ever, workers are attracted to the 30-second commute, thanks to social and economic trends. Technologies necessary for setting up a home office are widely available, relatively inexpensive and getting easier for people to use. And more workers are seeking flexible schedules to care for aging parents and children.

Home-based working is growing rapidly, according to a 2004 survey by ITAC, the association for advancing work from anywhere. The number of employed Americans who worked from home, from as little as 1 day a year to full time, grew from 41.3 million in 2003 to 44.4 million in 2004.

Many people associate working from home with starting a home-based business and becoming an entrepreneur, but more and more employers are offering this option to workers in order to attract and retain top employees. In fact, 7.6 million employees conduct work from home every month.

Don't fret, there are jobs that you can find with established employers. Even if the job is advertised as office-based, these positions are telework-friendly and could be in your future.

Administrative assistant
Also known as virtual assistants, home-based administrative assistants use office experience and computer skills as support personnel. Many skills easily transition into this position which offers many part-time and temporary opportunities.

Advertising sales agent
It's said that Americans are exposed to more than 3,000 ad messages a day. Advertising sales representatives sell or solicit advertising space in print and online publications, custom-made signs, or TV and radio advertising spots.

Computer software engineer
Computer software engineers are projected to be one of the fastest-growing occupations over the 2002-2012 period. Duties include design, development, testing and evaluation of computer software, and continual training is suggested for the quickly evolving industry.

Corporate event planner
Employed by a private company rather than a hotel or convention facility, a corporate event planner coordinates staff activities including group meetings, client presentations, special events, conventions and travel.

Copy editor
Copy editors mostly review and edit a writer's copy for accuracy, content, grammar and style. This is a competitive field; however, the growth of online publications and services is spurring the demand for writers and editors, especially those with Web experience.

Desktop publisher
Desktop publishers use computer software to format and combine text, images, charts and other visual elements to produce publication-ready material. Duties of this fast-growing profession include writing and editing text, creating graphics, converting photos and drawings into digital images, designing page layouts and developing presentations.

Data entry clerk
Like administrative assistants, job prospects should be best for those with expertise in computer software applications. By typing text, entering data into a computer, and performing other clerical duties, these workers ensure companies keep up with information and technology.

Insurance underwriter
Insurance underwriters serve as the main link between the insurance carrier and the insurance agent. Underwriters analyze insurance applications, calculate the risk of loss from policyholders, decide whether to issue the policy and establish appropriate premium rates.

Market research analyst
Market Research Analysts gather data on competitors and analyze prices, sales, and methods of marketing and distribution. They often design surveys, compile and evaluate the data and make recommendations to their client or employer based upon their findings.

Paralegal
While lawyers assume ultimate responsibility for legal work, much of their work is delegated to paralegals. Paralegals not only assist in preparation for closings, hearings, trials, and corporate meetings, they also perform a number of other vital functions including draft contracts, mortgages, separation agreements, trust instruments and may assist in preparing tax returns and planning estates.

If you want to make the case to a potential employer or your boss to let you work from home, keep a few things in mind. If possible, provide concrete examples of how this arrangement was successful in the past or how it will succeed.

Suggest that you ease into it -- spending a few days to a few weeks in the office at the outset, meeting people and getting to know procedures. Then, during the first three to six months on the new job, make frequent visits. E-mail to a friend E-mail to a friend

Copyright CareerBuilder.com 2007. All rights reserved. The information contained in this article may not be published, broadcast or otherwise distributed without the prior written authority

Tuesday, 4 December 2007

Top 10 best links for Earn money online

Online Currency Trading
FX Trading .07% Commissions. 2100+ Markets, Guaranteed Stops. GFT AU
http://www.GFT.com.AU/ (sponsored)

Quick Money Wealthy
Make Money With Us Now, Free Paying And Support 24/7/365
http://www.quickmoneywealthy.com/ (sponsored)

Simple Money Wealthies
Earn Monthly Income With Us Make Money Online At Here
http://www.simplemoneywealthies.com/ (sponsored)

Incredible Business Opportunity

No inventory, No pressuring customers 250k first yr income potential.
http://www.exuberantwealth.com (sponsored)

Google AdSense

Have a website or blog? Earn revenue with Google Ads.
http://www.google.com/adsense/ (sponsored)

Data Entry Jobs- $3500 Weekly At Home

Typing Simple Data From Home. Start Now With An Investment Of $49.95.
http://www.DataEntryBusiness.com (sponsored)

Power Investments Pro

24X7 Fx Trade, Up To 200:1 Leverage Expert Market Advice - 60% Return
http://powerinvestmentspros.com/ (sponsored)

Wanna Fire Your Boss?

Learn how to make money online from home.
http://www.therichjerk.com (sponsored)

Start A Home Business Right Now - Free

Earn great income just giving away a card. Click here to learn how.
http://thecardway.com/pats (sponsored)

Work From Home

Let Your Computer Start Making YOU Money Full Time From Home.
http://herbs-space.com (sponsored)