|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this 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
|
|||
|
|||
|
I thought I'd try this question here. Using a script Mitch developped (Click here for more info), I made this news script for my site. However, I cannot get the date that posts were made to show up. I am completely stumpped! Any suggestions?
Thanks! |
|
#2
|
|||
|
|||
|
post your code please
|
|
#3
|
|||
|
|||
|
What code exactly?
|
|
#4
|
|||
|
|||
|
i think the file were you tried your date stuff should be enough and the query.
Didnt the php.net help you? what do you get if you echo your date var? Last edited by timepoint5 : February 19th, 2003 at 11:16 AM. |
|
#5
|
|||
|
|||
|
PHP.net did help me get the date on there, but it was the exact same date, and it woould change to the current date, everyday.
The only think I echoed was the 'datePublished' field. That too changed with the days. 200302191372 that's how today's date would look when I echoed that. I need it so that it displays the date the article was published. |
|
#6
|
|||
|
|||
|
that is the date, in secounds counted from 1970( unix time)
try this: $date = date("F Y, l d @ H:i",$time); echo "$date"; $time is my var filled with the mysql query |
|
#7
|
|||
|
|||
|
Okay. Where is the correct place to put this? Should I add it just as I added the 'author' field?
|
|
#8
|
|||
|
|||
|
you echo it were you want to place it
f.e echo "$artikel"; echo "<br>"; echo "$date"; makes Arktikel bla bla bal date |
|
#9
|
|||
|
|||
|
When I do that, it places the current date on each and every post. I was looking to have the date articles were posted.
|
|
#10
|
|||
|
|||
|
actually, nothing shows at all.
|
|
#11
|
|||
|
|||
|
actually, I got it to work where posters can pick the date off of a drop down menu. But the thing is they have to look for the exact date, everyday. Do you know how I can get the date to show up automatically on the drop down menu? Kind of like the SiteWorksPro drop down menu.
|
|
#12
|
|||
|
|||
|
great news! and this time its true!
I got the date to show up like I wanted it. One problem though, perhaps someone will know what the problem is. For some reason, the script will not seporate my paragraphs. For example, I type out: The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. But the script displays it like this The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. The article text here. Just in one paragraph. Odd, I know. Any ideas why this may be happening? Thanks! |
|
#13
|
|||
|
|||
|
If you use the nl2br() function, it will display it the way you type it into your textarea!
__________________
____________________________________________ Developer Shed Weekly Writer | DevArticles Forum Moderator Build Your Own KlipFolio Klip With PHP FrankManno.com - Under Construction Design Interactive Group - Under Construction |
|
#14
|
|||
|
|||
|
Sorry, when I checked out that link, all I got was confusion
...Could you possibly show me what I need to do directly? Where or how I need to add that code? ANYONE? Thanks Last edited by banx : February 23rd, 2003 at 03:22 PM. |
|
#15
|
|||
|
|||
|
Never mind, got it all worked out.
THANK YOU SO MUCH! if any wants to see the board in action, just check out my site... TheWrestleHolics.com Thanks again guys. |
![]() |
| Viewing: Dev Articles Community Forums > Databases > General SQL Development > I have a PHP News Board -- Anyone know How I can have the date news was posted on it? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|