You are here: SQL statement - date « PHP « IT news, forums, messages
SQL statement - date

Posted by Jacques on 10/20/16 11:11

How should I formulate my sql statement to create a result set of members
who registered between now and 7 days ago?

I have tried the following and it is obviously incorrect:

$sqlnewmembers = "Select uid, uprofilename from tblusers where udatereg
between (date() and date() - 7)";

Regards

Jacques

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация