# Strange thing.. (news script with txt db)

**URL:** <https://forum.kirupa.com/t/strange-thing-news-script-with-txt-db/149524>\
**Category:** Uncategorized\
**Created:** [May 30, 2005, 7:45am UTC](https://forum.kirupa.com/t/strange-thing-news-script-with-txt-db/149524 "2005-05-30T07:45:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sWo0p](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sWo0p](https://forum.kirupa.com/u/sWo0p)\
**Post date:** [May 30, 2005, 7:45am UTC](https://forum.kirupa.com/t/strange-thing-news-script-with-txt-db/149524/1 "2005-05-30T07:45:25Z")

</div>

HI, im real puzzeled right now and cant seem to find what is wrong… i made an news system trough this tutorial ([http://www.devarticles.com/c/a/PHP/Creating-a-News-System-with-PHP/2/](http://www.devarticles.com/c/a/PHP/Creating-a-News-System-with-PHP/2/))… i added a few extra’s like picture upload… everything works pretty good but 1 function seems to do something i dont want… let me expllain…

This script is 1 .php file with pic upload, edit, delete, and ad news… is i add news with a picture it works fine… delete works fine to… but edit does something strange and i just cant find where or what is wrong…

if i add news, i get:

date, header, message, image

if i edit somehow my new changes:

date image, message (header is gone)

this is the piece of code that edits…
