Jump to content

Recommended Posts

Ok I have tutorials stored in my database.  But when I retrieve the information there are white spaces between some words missing.  The field is of format Text.  The information is being added to the database via PHP.  I used phpMyAdmin to go in and look at the info contained within the database and yes the spaces are missing there also.  Any ideas anyone?  All entries in this Text field called content are behaving the same.

 

Ok so just to update as I am still looking in to this right now,  It appears that because I used a textarea to input the code the line breaks have been removed from the textarea input and no spaces have been included.  EEK!!!

 

HELP!

<textarea name="contents" rows="40" cols="30"></textarea>

 

for the input field in the form.

 

$content = $HTTP_POST_VARS['contents'];
//Other vars of course!

$db = mysql_connect("**********", "********", "*********");
mysql_select_db("*******",$db);

$dbQuery="INSERT INTO table VALUES ('$numPosts', '$title', '$dateAdded', '$tuning', '$vidName', '$imagename', '$content')";
$result = mysql_query($dbQuery,$db);

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.