hostingandposting Posted February 14, 2013 Share Posted February 14, 2013 Hello everyone, I am totally new to PHP and have been assigned with a project. Doing this manually will take me a lifetime so I'm hoping one of you coding gurus can help me out here. We have a webpage, it has only one field. In that field, if you put in a number, it returns an employee name (based on their employee number). I want to see if we can write a script to increment from employee number 1 to 100000 and with each increment, it would record (somewhere), the employee number used and the output shown. I'm not even sure if PHP is the right tool for this - any help here will be greatly appreciated. Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 14, 2013 Share Posted February 14, 2013 That doesn't make any sense. If you already have an interface to get you the employee's name from their number, you should just query the source of the data (which SHOULD be a database) and get the list you need. Quote Link to comment Share on other sites More sharing options...
hostingandposting Posted February 14, 2013 Author Share Posted February 14, 2013 Hi Jessica, I don't have access to the database directly - just the front end web application. Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 14, 2013 Share Posted February 14, 2013 Do you have access to the CODE for the application? Is this really your company? Asking you to do work and not giving you the resources to do your job is a big red flag. Also asking you to do work that isn't within your skillset. Quote Link to comment Share on other sites More sharing options...
KevinM1 Posted February 14, 2013 Share Posted February 14, 2013 Like Jessica said, this: I want to see if we can write a script to increment from employee number 1 to 100000 and with each increment, it would record (somewhere), the employee number used and the output shown. Doesn't make any sense because the employees already exist in the database, and the results that pop up on the screen when someone enters a particular number is the output shown. Are you just trying to log what employees are being looked at with the most frequency? Are you simply trying to list all employees in a table? And if the website is displaying employee info, then you do have database access. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.