Do you mean that you only want the first few entries? try:
select foo from bar order by foo limit 50;
to get the first 50 (alphabetically or numerically or whatever) foo fields from bar table.
Is that what you're looking for?
I tried it and it didnt return any data now. I need to pull foo, foo1, foo2 and foo3 but limited to 50 charaters. Does that make sense?
I tried select left(foo, foo1, foo2, foo3, foo4 50) from bar, as well but it didnt work either.
Man do I know where you are coming from!
We do everything in Native VB6.0 & SQL7.0.. Scripting languages choke on us, for the type of CGI we are doing.
One of the few smart things I've done, was install the web server software on my development box, allowing me to program, and hit "LocalHost" from a browser on the same box.. Cut my development time down quit a bit.
Debugging CGI is a bear, especially for syntax and URL structuring errors, like the one you mentioned..