Jump to content

getting tab spacing as data from database


ricmetal

Recommended Posts

hi all

i'm getting tab spaces from a database query where the data is nothing but empty - no white spaces or anything (in the database)

when i print out this supposedly empty data into textareas these get populated with tab spaces, and just the first row.

i've tested the empty data with strlen and it returns zero. if i print any other data into the textarea (not brought in from the database) the tab spaces go away. any ideas to what is occurring?

thanks

 

it would take seeing the code that reproduces the problem to help you. a copy/paste of the 'view source' of the incorrect output would help too. do you have any javascript/jquery on the page that could be altering the textarea?

 

edit: i'm going to guess that your <textarea>   </textarea> tags have the tabs between them in your source code and when you output actual data they are after the data and get trimmed off or otherwise ignored.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.