![]() |
|
| Domain Name Sales | Domain Software | Calculate UK Domain Drop Dates | Domain Registration | NameDrive | Domain Parking | Subscribe to our Domains For Sale newsletter |
| | ||||||
| Home | Register | Rules | Membership Upgrade | Domains For Sale | Domain Name Escrow | Mark Forums Read | Domain Classified | Chat Room |
| Scripts and Coding PHP, MySQL, scripts |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #2 (permalink) |
| Member |
Is the format of the date field in the DB table DATETIME instead of DATE? DATETIME = YYYY-MM-DD HH:MM:SS DATE = YYYY-MM-DD Because CURDATE() returns the date in the format YYYY-MM-DD, which means if the date field was DATETIME then it would not match (the hours, mins, secs throwing it off) . If so, you can use DATE_FORMAT to change the value extracted from the DATETIME field. For example: PHP Code: |
| |
| | #4 (permalink) |
| Member |
In that case could try: HTML Code: SELECT * FROM table WHERE FROM_UNIXTIME( fieldname, '%Y-%m-%d' ) > date_SUB( CURDATE(), INTERVAL 2 DAY ) |
| |
| | #6 (permalink) | |
| Member | Quote:
| |
| |
| | #8 (permalink) |
| Administrator |
Got that sorted after playing about for hours. Now I'm build a PHP to RSS script, how do I add a URL link in the following line: Code: $rssfeed .= '<link>' . $classifiedid . '</link>'; Thanks Admin |
| |
| | #9 (permalink) |
![]() |
admin sorted code anyway. =)
Last edited by seemly; 26-04-2011 at 08:18:25 PM. Reason: Admin sorted code himself |
| |
| | #10 (permalink) |
| Administrator |
Never mind fixed it, needed to use the "htmlentities" tag. Acorn forum auctions now has an RSS feed : http://www.acorndomains.co.uk/auctions-rss.php |
| |
![]() |
| Bookmarks |
| Tags |
| php help please |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Domain Name Community | Replies | Last Post |
| Experienced freelance developer available (PHP, MySQL, Wordpress, feeds, APIs, etc. | MartinWood | Scripts and Coding | 0 | 06-09-2010 11:33:05 AM |
| Which PHP framework | monaghan | Scripts and Coding | 6 | 22-07-2010 08:31:56 PM |
| PHP include in a Smarty Template | admin | Scripts and Coding | 1 | 13-05-2008 06:37:26 AM |