| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Senior Member | mysql question yo people im building a web based register and im stuck basically ive got my sql code PHP Code: but i want to keep the same file but to display the entrys from that day (there are 2 entrys per day) so i would add a limit onto the end of the code but instead of a value i would give it a variable then the link would be entrys.php?group=2017&limit=2 now i know all this but when it comes to display all the entrys i dont want to define a limit so basucally my question is how would i get it so that i can define a limit on todays entrys but not on all the entrys? im think abotu an IF statement but im not sure wether it would be logical or not |
| |
| | #2 (permalink) |
| Senior Member | Hmm maybe you could just put it into separate variables? I'm sure there's other ways, but I don't know any of them. ![]() PHP Code: |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |