Note that there are some explanatory texts on larger screens.

plurals
  1. POPhp input to check against a file
    text
    copied!<p>I am not herein asking for anyone to do the work for me, i just need a point in the right direction, since i seem to keep backtracking. =) So my problem is this:</p> <p>On the website, i have 4 donation perks "boxes" (a list of perks someone will get as a thank you for donating). Now, i am putting an input form on the top, where a person could type in their name, and if userx has already donated before, but want to check what better perks he could get, he puts in his name, and then it shows only like say boxes 3 and 4. </p> <blockquote> <p>Boxes 1-4 = VIP, SuperVIP, EliteVIP, EliteModerator.</p> </blockquote> <p>The form should check against a single file containing all the names/perks-packages, and its already nicely formatted like this:</p> <pre><code>hvv7: subgroups: [] permissions: [] group: SuperVip TEAR_GAS_TEDDY: subgroups: [] permissions: [] group: EliteVip KMoore11: subgroups: [] permissions: [] group: SuperVip EanEuropean: subgroups: [] permissions: [] group: Moderator powerwind: subgroups: [] permissions: [] group: Vip </code></pre> <p>Again, i really just need a push in the right direction, but any help/answers will be much appreciated. Reason i am here today is because, i know of a few ways to check the word already, but what baffles me is checking the word, and then getting the info 3 lines down, having that return and then changing some div's visibily (to hide the ones userx already has)</p> <p>EDIT: Hmm, still researching, i wonder if it would be easier to just get the name/group into mysql, and then having the script just read that instead lol.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload