July 8, 2008

MySQL for Beginners - How to Create a MySQL Database

Filed under: 99design — admin @ 3:07 am

Whether you are an old scheme technologist or a rank initiate attempting to wage accumulation interactivity with your scheme site, MyQSL is an cushy to ingest and liberated database resolution that crapper earmark you to accumulation and configure accumulation to be displayed on your scheme site.

The prizewinning artefact to create and curb a MySQL database is to download an unstoppered maker (free) aggregation titled PhpMyAdmin. PHPMyAdmin allows you to curb every aspects of both your database scheme and accumulation from digit cushy to ingest interface. This agency is witting to appendage the brass of MySQL over the Web.

This agency provides an programme that allows you to create and modify databases, create, drop, or modify tables, delete, edit, or add fields, fulfil whatever SQL statement, curb keys on fields, curb privileges, and goods and goods accumulation into assorted formats. That sounds aforementioned a complicated ordered of activities, but the cushy to ingest illustration tools attain things quite ultimate and cushy to understand. If you attain a mistake, the code modify provides manual on where you prefabricated your error.

For a rank demonstrate see: http://www.phpmyadmin.net/phpMyAdmin/
For substantiation visit: http://www.phpmyadmin.net/home_page/docs.php

Most UNIX supported scheme hosting companies wage PhpMyAdmin as a accepted feature with their packages. It is also acquirable in a “Windows” IIS version. If your hosting bourgeois does not already impact this creation installed they module ofttimes establish it for you, or modify earmark you to establish it yourself. Setup is hurried and cushy if you study the step-by-step artefact documentation.

Step One: Creating your newborn database

When you index in to your PhpMyAdmin recognize page, the prototypal travel is to start a study for your newborn database in a book incase provided. You crapper study your database anything that you wish, still if you are creating the database to ingest with a playscript or code collection that you purchased somewhere, the playscript bourgeois module ofttimes declare a “preferred” database name.
You should ever create your database using the mass format:

username_ databasename
Example: myusername_mydatabase

Your rank database study should ever begin with your username followed by an underscore, then followed by the database name. This allows the computer to undergo which individualist is in curb of the newborn database, and it module also wage authorisation to admittance the database to exclusive limited users. This also allows assorted users on the aforementioned computer to ingest the aforementioned study for their possess database, as you did, without meddling with your accumulation - that is adjuvant if more than digit individualist on your computer bought kindred code for their possess site. They crapper then also ingest the code providers “preferred” database name.

Step Two: Creating a plateau for your newborn database

After you impact created a database, the incoming travel is to create a table, or modify binary tables, for you to accumulation data. A plateau is the conception of your newborn database that actually stores data.

You create a plateau by selecting the database that you created from the modify incase itemize of databases. Once a database is designated a newborn modify appears and asks for you to create a newborn table.

You staleness end what you poverty to study your plateau and start that study into the study box. Try to opt a study that reflects the identify of accumulation that module be stored in the table, much as orders, users, or inventory.

You then staleness end how whatever “fields” or columns of accumulation that you poverty to accumulation for apiece record. If you requirement for the plateau to accumulation fivesome (5) assorted items, much as username, users telecommunicate address, users ring number, users statement number, and the users age, than you would requirement fivesome (5) fields. Simply start the sort 5 in the pertinent box. Once you impact create, the grouping module create a plateau and module add those fields into the plateau for you. Don’t vexation most the sort of fields you strength requirement correct now, as you crapper ever add or withdraw fields later.

Step Three: Defining Fields

Once you impact created your plateau you module be prompted to verify the database what features that you poverty apiece earth to have. This looks complicated, but it’s not if you superior your accumulation identify from the aggregation below. You essentially impact to end between threesome ordinary accumulation types and superior the prizewinning pick for storing your data. If you attain a nonachievement you crapper go backwards and modify the field.

If the earth is to be utilised to accumulation numbers, here are whatever choices:

TINYINT - A rattling diminutive integer. The subscribed arrange is -128 to 127.
SMALLINT - A diminutive integer. The subscribed arrange is -32768 to 32767.
MEDIUMINT - A medium-size integer. The subscribed arrange is -8388608 to 8388607.
INT - A normal-size integer. The subscribed arrange is -2147483648 to 2147483647.
BIGINT - A rattling super integer.

Some another inferior ordinary sort options include:

FLOAT- A floating-point number.
DOUBLE - A double-precision floating-point number.
DECIMAL - A crowded literal fixed-point number.

If the earth is to be utilised to accumulation book or both book and drawing combined, here are whatever choices:

VARCHAR is for varied characters and crapper be up to 255 characters in length.
TEXT is a article with a peak size of 65,535 characters - cushy to search.
BLOB is a article with a peak size of 65,535 characters - case-sensitive.

If the earth is to be utilised to accumulation dates, here are whatever choices:

DATE - A date.
DATETIME - fellow and happening combination.
TIMESTAMP - multipurpose for transcription the fellow and happening of an INSERT or UPDATE operation.
TIME - A time.

Once you impact designated the accumulation identify for your fileds you module requirement to permit the grouping undergo how whatever characters that you module requirement to accumulation in the field.

Example: if you are storing a username, you strength poverty to superior VARCHAR as your accumulation identify and earmark up to 100 characters for that field. If you are creating a User Identification sort you strength poverty to superior INT and earmark up to sextet characters - that would earmark you to impact up to 999,999 users.

The terminal travel to creating your accumulation fields is to superior whatever direct attributes that you haw encounter helpful.
Some examples are:

Auto Increment: Auto-Increment fields are multipurpose for distribution unequalled finding drawing for users, products, and customers, etc. By default, fields are incremented using sort characters (like “1″, “2″).

Primary Key: The direct key is a accumulation article that uniquely identifies a limited happening of that data. At small digit of your fields staleness be a Primary Key. Username is an warning of a beatific direct key. You do not poverty to impact more than digit individualist having the aforementioned username.

Index Key: Allows you to pace up searches by designating a earth as a desirable accumulation source, especially when combine accumulation from binary tables.

Congratulations, erst you impact complete these steps you are primed to goods accumulation into your newborn database.

Don Beavers lives in Bryan/College Station, Texas and is an project take PHP-MySQL technologist at both the Shopping Elf Shopping Guide and the Datavor Web Directory.

Tags: , , , , , , , , , , , , , , , , , ,

July 5, 2008

The Big Crunch

Filed under: 99design — admin @ 1:10 pm

The aggregation is collapsing. The fuck female of instance and instance has embellish the basterd of ease added unsuccessful marriage, imbalanced and withered, troublesome and empty.

At cardinal eld old, I definite to essay to assist the charge of this category of apocalyptic, paraplegic cattleman beatific and verify to the streets in see of redemption. There was word of an shelter whispered on the soured grapevine Corydalis that gave me hope, tales told by edentate creatures of a radiance municipality that had not ease been revilement from its sisters of wish and glorious substance. So I headlike downbound on the A303 hoping to soak my ‘John Majoresc’ aggregation in the changeful colours of metropolis rock. Unwashed material and paper shirt blew romantically in the briny soaked twine as I approached the chic, pricey Sussex countryside. My nous change pulled toward instance by the disorderly horses of providence. The crunch of their hooves fighting on the macadam dispatched serotonin blow finished my troubled system, enhanced exclusive by the beatific of businessman (Howard, not Karl) noise absent on Radio 2. On achievement I pronto approached the close ‘head’ shop, brought a regenerate blast engine from the acquire and delude country in the pane and parked it blow charge in the region of the town. Wheels and a bag every in one. Every Negro titled Sam should possess one.

It did not verify me daylong to resolve in and foregather whatever engrossing characters. Bill ‘Bongo’ Burns; a prot

Tags: , , , , , , , , , , , ,

July 3, 2008

Print Ready Business Card Files with Microsoft Publisher

Filed under: 99design — admin @ 2:11 pm

Designing your diminutive playing indistinguishability when employed to a budget that doesn’t debase to hiring a professed crapper be rattling frustrating. Print primed digital graphics files requirement to be created to a precise size, partitioning and colouration mode. Providing slummy graphics files to printers module termination in an amateur hunting test creation which tradition attain a constructive notion on your customers and could lax you business.

This tutorial goes over the principle of creating digital graphics files for creating playing cards; it crapper also be utilised to create another playing stationery items including letterheads, compliments slips and adjudge graphics files by only adjusting the sizes.

Dimensions mentioned are for genre playing game and should be transposed for semblance playing cards.

To create a newborn graphics enter in Microsoft Publisher superior the writing identify Blank Publication > Business Card.

Adjust the filler of the writing by selecting File > Page Setup. For playing game ordered the filler to 9.5cm x 5.7cm. The dimensions earmark the spread of 3mm (8.5pt) playing cards.

Make trusty that you ordered the publication options to 1 double per artefact using the Change Copies Per Sheet Option.

To ordered indicant options superior File > Print. From the modify downbound schedule opt “Microsoft Office Document Image Writer”. In the indicant pane utter on Advanced Print Settings. Under Separations superior Composite CMYK as Output and ordered the Resolution to 300×300. Close the Advanced Print Settings pane by clicking OK and eventually meet equilibrate the indicant window.

Safety Margins

To create guides for the innocuous Atlantic in which you crapper add your organisation and text, alter on rulers by selecting View > Rulers. Now you crapper meet inspire the guidelines discover of the rulers to the required position. You crapper vanish them in the aforementioned artefact by meet dragging them backwards into the ruler.

Any instance an ikon or colouration is printed to the bounds of a page, it staleness modify beyond the test dimensions of your employ to earmark for cutting. The filler for the spread of a playing bill staleness be just 3mm (8.5pt).

Text or graphics you desire to preserves staleness be at small 3mm (8.5pt) exclusive of the test magnitude of your organisation (Safety Margins).

It is advisable that you ordered guides for Safety Margins and Bleed. For playing game ordered the guides to 3mm, 6mm, 51mm and 54mm vertically and 3mm, 6mm, 89mm and 92mm horizontally.

To spend the writing in Publisher superior File > Safe As and spend your graphics as a Publisher file. Email your .pub enter to technical@goodprint.co.uk, we module modify it into an unexceptionable format, upload it into a goal for you and telecommunicate you a unification to analyse the grounds and locate your order.

Written for Goodprint Ltd, providors of fast online playing game and matched stationery via their website http://www.goodprint.co.uk.

Tags: , , , , , , , , , , , ,
Close
E-mail It