Jump to content

PHP Help - Incrementing value on page and recording results


hostingandposting

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.