Jump to content

[SOLVED] Edit blog posts


Lambneck

Recommended Posts

Hi,

Can someone tell me how I can edit my blog entries? They are stored in a mysql data base row mediumblob data type. I'm not sure if this should be a php question or not. Is there a simple way to edit textual content in a database?

Thanks!

Link to comment
Share on other sites

well you have to update that database table cell with sql. somethin like

UPDATE tablename SET blogentry = 'youreditedblogentry' where blogentry = '345'

 

'345' would be the blog entry id number that it has in the database.

 

I think I understand but what is: blogentry = 'youreditedblogentry' ?

 

 

Link to comment
Share on other sites

blogentry would be the name of the column that holds all your entries...not sure what it could be called...your medium blob data type's name. and then set it equal to whatever your updated blog is...for example

 

First blog...

My dog at my homework yesterday.

 

Updated blog...

My dog at my homework a week ago.

 

So say if your column that holds the blog entries is called 'entries' it would be something like

UPDATE tablename SET entries = 'My dog at my homework a week ago.' where blogentry = '345'

 

and 'tablename' would obviously be whatever your database table is called

Link to comment
Share on other sites

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.