|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
||||||||
|
||||||||
|
PHP/MySQL News with Comments by Matt Wade (HELP NEEDED)
Okay, so I've configured the news backend. It works like a charm. I've messed about with it a little (made it valid XHTML, some formatting) and it's now included on a page. http://mysite.com/?page=news for example and everything works well.
All I needed to do was change things do this kind of thing: ?page=news&&action=show&id={$row['id']} (where Bold is added). That's all easy. But I cannot, for the love of god create a seperate Add News file. I simply cannot, but please believe me I've tried, make a php form/file which sends news to the News Table in the SQL database. Here is what it looks like at the moment: php Code:
and the add_news_post.php file: php Code:
I've tried about a hundred variations, can't you just give us the answer Matt :-/ Thanks for any replies, Jay |
|
#2
|
|||
|
|||
|
RE: PHP/MySQL News with Comments by Matt Wade (HELP NEEDED)
Oh, and the top bit of code (the html) isn't really in <? and ?> tags at all, I added the [highlight=php] by mistake :-/
Jay |
|
#3
|
|||||
|
|||||
|
RE: PHP/MySQL News with Comments by Matt Wade (HELP NEEDED)
I've now managed to get it working, but there for some reason the postdate will not work. :/ I cannot understand why, here is my post news:
php Code:
Postdate is listed as TIMESTAMP with Deafult:NULL in my db. Is my fetch code, but all i get from postdate is a load of 0's. |
![]() |
| Viewing: Codewalkers Forums > Other > Tutorials > PHP/MySQL News with Comments by Matt Wade (HELP NEEDED) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|