TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 09-25-2009, 11:41 PM   #1 (permalink)
The Wanderer
 
shoaibmunir's Avatar
 
Join Date: Jun 2009
Location: Dubai, UAE
Posts: 23
Thanks: 2
shoaibmunir is on a distinguished road
Unhappy Advance Records Selection

I have a very important assignment its very urgent.

I want that employee who did not got salary. salary will transfer automatically in employees.


my code

Table: Accounts
AccountID = 25
GroupID = 5

Table: Employees

EmployeeID = 1
GroupID = 5

EmployeeID = 2
GroupID = 5

EmployeeID = 3
GroupID = 5

EmployeeID = 4
GroupID = 3

EmployeeID = 5
GroupID = 3

EmployeeID = 6
GroupID = 4



Table: Transferred (Records of that employee who got salary and from witch account salary transferred)

EmployeeID = 1
AccountID = 5


Transfer Salary Script $AccountID = 25 and $GroupID = 5:-


select emp.*, tra.*, emp.EmployeeID as emp_EmployeeID from Employees emp, Transfered tra " & _
'" where emp.EmployeeID<>tra.EmployeeID and tra.AccountID <>$AccountID and emp.GroupID=$GroupID


Please Help!
__________________
==========================================
http://paysha.com/Pakistan/Sialkot/Profiles/100171.html
==========================================
Send a message via MSN to shoaibmunir
shoaibmunir is offline  
Reply With Quote
Old 09-26-2009, 12:37 AM   #2 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

You're going to have to be more descriptive, we see your database but what exactly are you trying to do?
__________________

Village Idiot is offline  
Reply With Quote
Old 09-26-2009, 07:27 AM   #3 (permalink)
The Wanderer
 
shoaibmunir's Avatar
 
Join Date: Jun 2009
Location: Dubai, UAE
Posts: 23
Thanks: 2
shoaibmunir is on a distinguished road
Default

I want transfer salary to all group 5 employees from account#25. maybe employees got multi salary but from one account and just 1 time salary.
__________________
==========================================
http://paysha.com/Pakistan/Sialkot/Profiles/100171.html
==========================================
Send a message via MSN to shoaibmunir
shoaibmunir is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Advance Pagination Class Rendair Advanced PHP Programming 13 02-01-2013 11:08 AM
Display Records From Database shoaibmunir General 6 08-15-2009 06:58 PM
Delete records from multiple tables? (PHP, MySQL) shoaibmunir General 4 07-15-2009 09:30 PM
Regex assistance {Thank you, advance} codefreek Advanced PHP Programming 3 10-21-2008 07:26 PM
Small php error! - Thank you in advance! codefreek Absolute Beginners 1 10-21-2008 07:22 PM


All times are GMT. The time now is 03:00 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design