Jump to content

Recommended Posts

Before I start I'm a bit of a PHP/MYSQL newbie.

 

I have created a simple blog/news feed using PHP and MYSQL:

http://stephengreig.co.uk/newjack/blog.php

 

Currently I can insert the news post details into the database table and the news feed will update.

 

What I want to do is create a form where a user can input the post title and text as well as upload an image (which is the main bit I'm having trouble with). When submitted this form then inserts the data into the database and updates the news feed page.

 

My database table for the news post is simply: id, postdate, title, newstext.

Do I simply add another field for image with a BLOB type? Or does the image need its own table?

 

Any help would be greatly appreciated.

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.