![]() |
Display certain records only - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Display certain records only (/showthread.php?tid=43820) |
Display certain records only - El Forum - 07-24-2011 [eluser]shailendra[/eluser] I have a projects and bid table. A user bids for a project which are open and haven't expired. A project expires if current date exceeds no. of days the project is to be displayed from the day the project is posted. For example if a project is posted on 1st July and no. of days to display the project is 5 days then on 6 July the project expires and is not displayed to users for bidding. I have a controller project.php Code: function days_left_for_expiry($proj_posted_date,$job_display_days) So in $data['projects'] I don't want to store projects which have expired. How do I do this??? Display certain records only - El Forum - 07-25-2011 [eluser]shailendra[/eluser] Please help on this. Display certain records only - El Forum - 07-26-2011 [eluser]Wondering Coder[/eluser] you can just do this in a query. Read about scripting. Display certain records only - El Forum - 07-26-2011 [eluser]shailendra[/eluser] Expiry date is not a field in projects table. Please help me to do in CI code? Display certain records only - El Forum - 07-26-2011 [eluser]shailendra[/eluser] Isn't there any way to do this in CI php code? |