cpage Posted June 23, 2009 Share Posted June 23, 2009 Wanted to know if someone could help me solve this issue in PHP... C# (or another language used in web applications such as PHP) Using C# (or another language) and this provided Employee class: /// <summary> /// The object responsible for containing all information about an Employee /// </summary> public class Employee { private string name; private string emailAddress; private DateTime birthdate; private DateTime startdate; private DateTime enddate; private int positionid; private int departmentid; /// <summary> /// Instantiating an Employee object when we know all relevant information /// </summary> /// <param name="name">Name of the employee</param> /// <param name="emailAddress">Employee's e-mail address</param> /// <param name="birthDate">Date of birth</param> /// <param name="startDate">The day the employee started with the company</param> /// <param name="endDate">null if they are still with the company</param> public Employee(string name, string emailAddress, DateTime birthDate, DateTime startDate, DateTime endDate) { this.name = name; this.birthdate = birthDate; this.startdate = startDate; this.enddate = endDate; this.emailAddress = emailAddress; } } Write a static function which returns a list of Employee objects. Populate this list from an Employee table which exists on a database and server of your choosing. Assume an arbitrary connection string and the following schema: Employee Name varchar(50) EmailAddress varchar(250) Birthdate datetime Startdate datetime Enddate datetime Link to comment https://forums.phpfreaks.com/topic/163363-php-help/ Share on other sites More sharing options...
will35010 Posted June 23, 2009 Share Posted June 23, 2009 Sounds like homework ??? Link to comment https://forums.phpfreaks.com/topic/163363-php-help/#findComment-861948 Share on other sites More sharing options...
947740 Posted June 23, 2009 Share Posted June 23, 2009 Sounds like homework ??? Concur...and it seems like you have C# down, so just use that. Unless, of course, you did not do any of that. Link to comment https://forums.phpfreaks.com/topic/163363-php-help/#findComment-861960 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.