Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 

Sign in to follow this  

Super Basic CMS help!

Recommended Posts

Hi there!

I'm very new to PHP and everything that there is to it, but very eager to learn. I'm trying to do a very basic CMS(basicly all I'm trying to do is a way for me to add new posts to my blog without having to code anything, just new posts, I do not desire to change anything else via my "CMS"). Anyway, here's my issue(MySQL, btw!):

I have a form. I want this form to add new rows in my table called "content". Which method should my form use?

Also, what should I tell my database in order for my form to add into the row what is written into my inputs?

Thirdly, how do I later call upon the content in the table to be used as a blog bost?

This is the table:


2 rubrik tinytext utf8_swedish_ci

3 text longtext utf8_swedish_ci

4 bild blob

5 timestamp timestamp CURRENT_TIMESTAMP

Edited by Elmh

Share this post

Link to post
Share on other sites

Join the conversation

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

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...