Here's the code, embedded using codebender!
The lcd.begin(16,2) command set up the LCD number of columns and rows. For example, if you have an LCD with 20 columns and 4 rows (20x4) you will have to change this to lcd.begin(20x4).
A full line of products plus custom engineered solutions are available. We source LCD displays direct from major manufacturers world wide allowing for a cost advantage over our competitors. EarthLCD offer’s the world’s widest variety of LCD’s in fully integrated solutions for OEM supply chain requirements. So when you tried lcd.print('1234 ' + number) and got '34 ', what most likely happened is that you advanced the pointer, pointing to the first character of '1234 '(i.e. '1') by number (i.e. 2), thus making the pointer point to the 3rd character in the string and thus making lcd.print display '34 '. In order to print something that contains.
The lcd.print('--message--') command print a message to first column and row of lcd display. The 'message' must have maximum length equal to lcd columns number. For example, for 16 columns display max length is equal with 16 and for 20 columns display max length is equal with 20.
The lcd.setCursor(0,1) command will set cursor to first column of second row. If you have an LCD 20x4 and you want to print a message to column five and third row you have to use: lcd.setCursor(4,2).
Try downloading the codebender plugin and clicking on the Run on Arduino button to program your Arduino with this sketch. And that's it, you've programmed your Arduino board!
You can keep playing with that by clicking the 'Edit' button and start making your own modifications to the code. For example, try to change message on first and second row.