Search found 8 matches

by sparklehorse7
Tue Nov 29, 2005 3:21 am
Forum: PHP - Code
Topic: news post help
Replies: 15
Views: 649

oh yeah, I'm not sure if this is the right db field format?

name, varchar, NoNull
subject, varchar, NoNull
message, varchar, NoNull
date, date, NoNull, 000-00-00
ID, int, NoNull, 0 (doesn't increment when data entered?)

and I've indexed the table on ID for which does crap?

any better ways?
by sparklehorse7
Tue Nov 29, 2005 3:15 am
Forum: PHP - Code
Topic: news post help
Replies: 15
Views: 649

Yeah that works but it only posts todays date for all the posts no matter what date i enter? // 2000-12-12 Formatted Date → Tue 29th Nov 05 // gg ggggggggggggggg I really want it to post date posted(in formatted date style Tue 29th Nov 05 Subject Message From todays date onwards? thanks for all the ...
by sparklehorse7
Mon Nov 28, 2005 12:18 pm
Forum: PHP - Code
Topic: news post help
Replies: 15
Views: 649

Don't know what I've done wrong? This is in the news.php which posts the db data. I get this Parse error: parse error, unexpected T_STRING in news/news.php on line 27 ??? Where should I put this code? mysql_connect($db_host,$db_username,$db_password) or die(mysql_error()); mysql_select_db($db_name) ...
by sparklehorse7
Mon Nov 28, 2005 7:32 am
Forum: PHP - Code
Topic: news post help
Replies: 15
Views: 649

I put this code in my news.php file yeah? What do I replace the $myDate = "28-11-2005"; so it's the entered date data?
sorry but i'm crap at this :cry:
by sparklehorse7
Mon Nov 28, 2005 6:56 am
Forum: PHP - Code
Topic: news post help
Replies: 15
Views: 649

thanks heaps, I think got some timestamp thing going on cos I only get todays date in my post? can you tell me what variables and values I need to set my date to so I can just enter any date in? And how can I enter a date in as 28-11-2005?
any help would be awesome
by sparklehorse7
Mon Nov 28, 2005 6:24 am
Forum: PHP - Code
Topic: news post help
Replies: 15
Views: 649

that's awesome advice, I'm really a bit naive in thinking that that sort of hacking won't happen to me, thanks for switching me on to it :) How can I change my date ourput to eg. Mon 28th Nov 2005? and also how can I create some sort of admin section where I can access my database and change it's va...
by sparklehorse7
Sun Nov 27, 2005 5:31 am
Forum: PHP - Code
Topic: news post help
Replies: 15
Views: 649

news post help

Sami | Please use and tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color] hi guys, I'm looking for some pretty basic help with my news post. I just need someone that knows php to help me out with these php ...
by sparklehorse7
Mon Nov 21, 2005 7:45 pm
Forum: PHP - Code
Topic: create a gig guide
Replies: 0
Views: 174

create a gig guide

Hello people!! I hope you can help me out here. I need some direction in making a gig guide for my website. What i want to do is when you open the page up, it will display whats on for the current day, eg. monday 21st november 2005, at the top of the page and follow with the rest of the week/month. ...