Originally posted by sidsel
How do I put this into my query?
I'm trying to select the first 10 letters from a column named 'header'.
Select bla1, bla2, bla3, LEFT('header', 10) FROM table
The above doesn't work.
When you use a function, you have to give it an alias:
Select bla1, bla2, bla3, LEFT(header, 10) as myhead FROM table
Then you can access through $row["myhead"].
I hope this help you.