|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
Help with "News with Comments by Matt Wade"
Hi!
I'm using this script and it's great but I have a question: how can I display postdate when I'm displaying only one news? |
|
#2
|
|||
|
|||
|
RE: Help with "News with Comments by Matt Wade"
Doesn't anyone know or you just don't want to help?
|
|
#3
|
|||
|
|||
|
RE: Help with "News with Comments by Matt Wade"
I don't understand the question. All you have to do is display it.
|
|
#4
|
||||||||
|
||||||||
|
RE: Help with "News with Comments by Matt Wade"
ok it's like this:
With this query we display all news in the database: php Code:
this is working fine and it displays the date, when the news was posted. this query displays only one news BUT WITHOUT the date! I've tried this: php Code:
but it's not working So what do I have to do? |
|
#5
|
|||
|
|||
|
RE: Help with "News with Comments by Matt Wade"
$query = "SELECT *, DATE_FORMAT(postdate, '%Y-%m-%d') as date FROM news WHERE id=$id";
$result = mysql_query ($query); |
|
#6
|
|||
|
|||
|
RE: Help with "News with Comments by Matt Wade"
hey matt.. what do the forum rules (that you wrote) say about using the proper php/code tags?
|
|
#7
|
||||
|
||||
|
RE: Help with "News with Comments by Matt Wade"
here they are! I stole them!! |
|
#8
|
|||
|
|||
|
RE: RE: Help with "News with Comments by Matt Wade"
Quote:
You need to reread the rules. |
|
#9
|
|||
|
|||
|
RE: Help with "News with Comments by Matt Wade"
you're right, i missed the first one..
|
|
#10
|
||||
|
||||
|
RE: Help with "News with Comments by Matt Wade"
Hrm, If they're not Matt's tags, then whose did I steal?!
|
![]() |
| Viewing: Codewalkers Forums > Other > Tutorials > Help with "News with Comments by Matt Wade" |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|