Jump to content

getting tab spacing as data from database


Go to solution Solved by 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.

Edited by mac_gyver
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.