--
Ask New Question from : https://groups.google.com/forum/?fromgroups#!newtopic/xamppdev
Create filter of mails from this group http://www.wikihow.com/Create-a-Filter-in-Gmail
---
You received this message because you are subscribed to the Google Groups "PHP Developers' Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xamppdev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xamppdev/548cb98d-591b-44e3-8512-a7121e2514dd%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Ashish i think u are not getting my question. Today is value of date radio button.<form name="search" method="post" action="my_profile.php"><label><input type="radio" name="date" value="today">Today</label><label><input type="radio" name="date" value="week">This Week</label><label><input type="radio" name="date" value="month">This Month</label>To <input type="date" name="date1" value="" placeholder="YYYY/MM/DD">From <input type="date" name="date2" value="" placeholder="YYYY/MM/DD"><input type="submit" value="Search"></form>and code is ..$selectQuery="";if ($_POST['date'] == 'today' ){$selectQuery = "SELECT * FROM `sms_in` WHERE `sent_dt`= now() AND `sender_number` =(SELECT `mobile1` FROM `test` WHERE `mobile1` = `sms_in`.`sender_number` AND`id` = '$id')";}else if ($_POST['date'] =='week'){$selectQuery = "SELECT * FROM `sms_in` WHERE `sent_dt` = `sent_dt`>(`sent_dt`-(60*60*24*7)) AND `sender_number` =(SELECT `mobile1` FROM `test` WHERE `mobile1` = `sms_in`.`sender_number` AND`id` = '$id')";}else if ($_POST['date'] =='month'){$selectQuery = "SELECT * FROM `sms_in` WHERE `sent_dt` = `sent_dt`>(`sent_dt`-(60*60*24*30)) AND `sender_number` =(SELECT `mobile1` FROM `test` WHERE `mobile1` = `sms_in`.`sender_number` AND`id` = '$id')";}else if (isset($_POST['date1']) AND isset($_POST['date1'])){$date1 = $_POST['date1'];$date2 = $_POST['date2'];$selectQuery = "SELECT * FROM `sms_in` WHERE `sent_dt` between $date1 AND $date2 AND `sender_number` =(SELECT `mobile1` FROM `test` WHERE `mobile1` = `sms_in`.`sender_number` AND`id` = '$id')";}else{$selectQuery = "SELECT * FROM `sms_in` WHERE `sender_number` =(SELECT `mobile1` FROM `test` WHERE `mobile1` = `sms_in`.`sender_number` AND`id` = '$id')";}echo "$selectQuery";$selectResult = mysql_query($selectQuery)or die(mysql_error());while($ans = mysql_fetch_assoc($selectResult)) {?><tr><td><?=$ans['id']?></td><td><?=$ans['sent_dt']?></td><td><?=$ans['sms_text']?></td></tr>
To view this discussion on the web visit https://groups.google.com/d/msgid/xamppdev/CAFdB3fx7SrXxRokWwfqvTZD1G37zyK9GP_YUi8gxd4X4n2hfoQ%40mail.gmail.com.
regards !
vikas dwivedi
To view this discussion on the web visit https://groups.google.com/d/msgid/xamppdev/CAFoSON_R%2B4y7vDFq7CrmW6LLhchUr9Bkxw4fmDO6e7g00J8nNg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xamppdev/CAGGghXA%2BLU2XiSnZ%3DBAe6RGjaS_aRtHAH0POvKKub%2BJ7smZJUA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xamppdev/CAFdB3fz_9AJHLkBQGYKEB2u9xED%2B70w%3D-Dz%2BoMQ5Y8ACgdm48A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xamppdev/CAFoSON-Be7zJn8Ey6fmMW4dxSHNcKt2zF3sk4-_cHNmY1QSsMg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xamppdev/CAD%3DPRmN3VipwrE1RKAKWWUC7dn9OpfSRsLFMOarD-kgWO4Va3g%40mail.gmail.com.