Ask about general coding issues or problems here.
Moderators: macek, egami, gesf
- New php-forum User
- Posts: 10
- Joined: Mon Apr 07, 2014 2:26 am
try this it works .
include your 'div' before including php script
Code: Select all
if (200 <2000)
- php-forum Fan User
- Posts: 973
- Joined: Mon Oct 01, 2012 12:32 pm
The better solution would be to add 'AND Emp_ID>=2000' to your query. That way you don't waste resources collecting and presenting unwanted records to then hide them. If you don't want to go that route, let me know and I'll show you another example that doesn't involve code duplication like the one already presented.
A good rule of thumb to avoid messy code is that if you're writing the same thing twice, you're writing it too many times.
Who is online
Users browsing this forum: No registered users and 6 guests