Fitness.com
Advertisement

Go Back   Sports Forum > Community > The Pub

The Pub

Grab a beer, sit back and relax.


» Site Navigation
 > Shop
» Current Poll
Best 5 club teams in history of Football:
Liverpool 1977-1978 - 100.00%
1 Vote
Real Madrid 1956-1960 - 0%
0 Votes
Juventus 1985 - 0%
0 Votes
Milan 1989-1990 - 100.00%
1 Vote
Ajax 1971-1973 - 0%
0 Votes
Santos 1962-1963 - 0%
0 Votes
Torinho 1940's - 100.00%
1 Vote
Ajax 1995 - 0%
0 Votes
Flamengo 1981 - 100.00%
1 Vote
Benfica 1961-1962 - 100.00%
1 Vote
Total Votes: 1
You may not vote on this poll.
» Stats
Members: 103,505
Threads: 85,004
Posts: 1,031,271
Top Poster: Karky (9,546)
Welcome to our newest member, davecarman999
» Fitness Shop
If you register for free, you will be able to post threads, vote on polls and lots more. If you have problems with the registration or logging in, please contact the administrator.

Reply
 
LinkBack Thread Tools Display Modes
Old 09-22-2007, 04:00 PM   Simple MySQL query Post #11
Registered User
 
Join Date: Jul 2007
Posts: 0
Rep Power: 0
retired_musiclova31 is an unknown quantity at this point
Default

Quote:
Originally posted by Rcjuk:
move the equals back one place!
no diff. still invalid.
retired_musiclova31 is offline   Reply With Quote
Old 09-22-2007, 04:04 PM   Simple MySQL query Post #12
Newb
 
Join Date: Sep 2007
Posts: 0
Rep Power: 0
retired_gulkis is an unknown quantity at this point
Default

is the first clause definitely legit? my SQL is a bit shaky but shouldn't you be doing an INNER JOIN somewhere? or does it just join them implicitly?
retired_gulkis is offline   Reply With Quote
Old 09-22-2007, 04:08 PM   Simple MySQL query Post #13
Registered User
 
Join Date: Jul 2007
Posts: 0
Rep Power: 0
retired_musiclova31 is an unknown quantity at this point
Default

without the date clause, the query works just fine. i WAS working with an inner join at first, but didn't need it.

just checked on phpMyAdmin - the field is a 10 character INT rather than an actual date/time stamp field in the db: that shouldn't matter should it? i mean it's still a ten digit date that is stored...
retired_musiclova31 is offline   Reply With Quote
Old 09-22-2007, 04:16 PM   Simple MySQL query Post #14
Newb
 
Join Date: Sep 2007
Posts: 0
Rep Power: 0
retired_gulkis is an unknown quantity at this point
Default

how do you mean? so 10042007 would be representing 10/04/2007. it could be a bit dodgy because i reckon dates would be internally represented using integers too (and no doubt in a different way).
retired_gulkis is offline   Reply With Quote
Old 09-22-2007, 04:26 PM   Simple MySQL query Post #15
Registered User
 
Join Date: Jul 2007
Posts: 0
Rep Power: 0
retired_musiclova31 is an unknown quantity at this point
Default

no, it's a proper mysql datestamp - 1148331647 = june 7th for example.
retired_musiclova31 is offline   Reply With Quote
Old 09-22-2007, 04:31 PM   Simple MySQL query Post #16
Registered User
 
Join Date: May 2007
Posts: 8
Rep Power: 0
dejasade is an unknown quantity at this point
Default

Quote:
Originally posted by Scatter:
no, it's a proper mysql datestamp - 1148331647 = june 7th for example.
i thought to process the date you need to put (dd MMM yyyy) so the numbers are seperated properly.
it doesn't recognise 10042007 in VB.net anyway.
dejasade is offline   Reply With Quote
Old 09-22-2007, 04:38 PM   Simple MySQL query Post #17
Registered User
 
Join Date: Jul 2007
Posts: 0
Rep Power: 0
retired_musiclova31 is an unknown quantity at this point
Default

when i call the data from the db, not trying to use 14 day clause, but using the rest of the query in my first post, and then in my php document put this:

<pre class="ip-ubbcode-code-pre">&lt;p&gt;Posted by &lt;a href="http://forums.thequadrant.org/memberlist.php?mode=viewprofile&u=&lt;?php echo $row_rs_tq_news['news_author']; ?&gt;"&gt;&lt;?php echo $row_rs_tq_news['news_author_name']; ?&gt;&lt;/a&gt; on &lt;?php echo date('l F dS, Y \a\\t h:ia',$row_rs_tq_news['news_datestamp']); ?&gt;&lt;/p&gt;</pre>

i get:

Posted by Scatter on Thursday June 07th, 2007 at 07:14am
retired_musiclova31 is offline   Reply With Quote
Old 09-22-2007, 04:38 PM   Simple MySQL query Post #18
Registered User
 
Join Date: Jul 2007
Posts: 0
Rep Power: 0
retired_musiclova31 is an unknown quantity at this point
Default

gah. clever
retired_musiclova31 is offline   Reply With Quote
Old 09-22-2007, 05:01 PM   Simple MySQL query Post #19
Registered User
 
Join Date: Jul 2007
Posts: 0
Rep Power: 0
retired_musiclova31 is an unknown quantity at this point
Default

got it working - it was the field type in the db. once i changed it to a timestamp it worked...
retired_musiclova31 is offline   Reply With Quote
Reply

Go Back   Sports Forum > Community > The Pub

Bookmarks

Thread Tools
Display Modes


Similar threads to Simple MySQL query
Thread Thread Starter Forum Replies Last Post
simple question needing a simple answer
simple question needing a simple answer: editors forum
matthew43 Scout Report 1 02-18-2008 11:52 AM
Simple answer to a simple (seemingly) question
Simple answer to a simple (seemingly) question: Where exactly do the graphics (logos, ect) go? ...
SlayerX Skinning Hideout 0 01-22-2008 02:42 AM
Simple Guide To Changing Commentry (More Simple And Specific Than Other Post :)
Simple Guide To Changing Commentry (More Simple And Specific Than Other Post :): Ive know how to find the match events folder but...
Nipersoft Skinning Hideout 0 11-03-2007 06:04 PM
personal development: php and mysql - anyone know much about these?
personal development: php and mysql - anyone know much about these?: I am pretty much useless at the moment, 2nd year...
Samamatara The Pub 3 09-07-2007 12:14 AM
Kit Query
Kit Query: Hey guys, first post on gere in a long time,...
larsson is god Skinning Hideout 1 11-15-2005 08:51 PM

More threads of Scatter
Thread Date Forum Replies Last Post
Teh nu *fishal* Hooooon-day A-League Mark Free point Oh Fred. Sponsored by Bling FC, now with Juninho goodness.
Teh nu *fishal* Hooooon-day A-League Mark Free point Oh Fred. Sponsored by Bling FC, now with Juninho goodness.: when did jardel sign for newcastle? :D ...
08-23-2007 The Pub 40 11-19-2007 09:39 AM
Yet another study suggesting piracy doesn't affect sales, and may actually INCREASE them...
Yet another study suggesting piracy doesn't affect sales, and may actually INCREASE them...: Interesting...
11-14-2007 The Pub 64 11-15-2007 06:13 PM
Mates, need some GPS buying advice
Mates, need some GPS buying advice: Thinking of buying the missus a GPS for...
11-12-2007 The Pub 10 11-13-2007 04:53 PM
Patrice Evra...
Patrice Evra...: ...is God. This has been a community service...
10-14-2007 The Pub 75 10-15-2007 12:27 PM
Simple MySQL query
Simple MySQL query: Trying to only show news items posted in the last...
09-22-2007 The Pub 18 09-22-2007 05:01 PM

Other threads in forum The Pub
Thread Date Thread Starter Replies Last Post
List of manager changes?
List of manager changes?: Hi, I am looking for a list of all manager...
12-01-2007 Chris Bagnall 14 12-02-2007 08:17 PM
Terminator 4
Terminator 4: so they have found an actor to play the future...
11-22-2007 sunkilmoon 12 11-22-2007 04:32 PM
Later I plan to smoke an entire salmon
Later I plan to smoke an entire salmon: And I'm really not sure how to. Any cigarette or...
11-19-2007 ceefax the cat 54 11-20-2007 05:01 PM
Small I-Net problem. Every website works for me except 1. Please help.
Small I-Net problem. Every website works for me except 1. Please help.: Can't seem to get a website working. I know it...
11-14-2007 lovenkrands01 4 11-14-2007 10:44 AM
Charlie Jade
Charlie Jade: Never seen a thread but it gets it's UK Premiere...
10-26-2007 Gary Toner 3 10-26-2007 12:59 AM

» Online Users: 22
0 members and 22 guests
No Members online
Most users ever online was 2,128, 07-21-2008 at 08:27 PM.

All times are GMT +1. The time now is 03:01 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Fitness.com | Weight Loss | Training & Fitness | BodyBuilding | Chinese | Spanish | French | Germany | Italian | Friend Codes |
You are viewing Simple MySQL query - Page 2.