All you need to know about handling file uploads is here.
http://www.zend.com/manual/features.file-upload.php
change the form to this type
<form enctype="multipart/form-data" action="URL" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />
<!--add extra form elements within the form tags and modify the action-->
</form>
Store the filename in the same table as you store the news so have id,title,news,filename as your columns.
Get the file name from
$_FILES['userfile']['name']
Use a simple if/else to check an image was uploaded or, if not, set a default image.
if($FILES['userfile']['name']))
{
$filename=$FILES['userfile']['name']);
}
else
{
$filename=" default.jpg";
}
Then insert title,news,filename
I rekon that'll do it for ya mate! Any probs drop me a line.