Jump to content

ajax, javascript and mysql


php_b34st

Recommended Posts

I have a players database with over 1000 entries in it a user has to pick 11 of these players to form their team this script checks the db and gets all the info out for the playercode they enter once i have done all the calculations and approved the team I will add the playercodes into the teams database.

 

No sorry I do not have the hosting yet and am just working from localhost

Link to comment
Share on other sites

How were you planning to approve the team?

 

Would a person be doing it or would it be based off player stats?

 

If it was based off player stats I would do it PHP side and make a code to the effect of

if ( APPROVED ) {
echo '<input type="submit">';
}
else {
echo '<input type="button" onclick="notApproved($reason)">';
}

 

and then have a button on the main form that has the effect of sending all the players to the PHP file for checking and display.

 

If they mess up the first button would still be there so they could try again. And if they didn't they could click on the submit button.

 

If it wasn't approved they would have a button to check why. You could store the non-approval reasons on the JavaScript side or have it retrieve them somehow.

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.