Jump to content

Rizigs

New Members
  • Posts

    4
  • Joined

  • Last visited

Rizigs's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Wow thank you very much! I believe that the best way to go is a DB as well (and yes the values are permanently same value). However i need to be easily adding values to the database, and i was thinking the best way is to make a textfield and explode all values. I can do a marco on the list so that it is in the order. What do you think?
  2. Thanks for the edit, would you recommend to store in db or use an array as listed?
  3. So each line would be a db entrance? then i would make a command that will look for $value then str_replace with the new value?
  4. Hi there everyone, i am new to PHP and trying my best to learn and hopefully be as good as you! I am looking for the following: There is a user form posts the value to code.php In code.php the value is retrieved and ran across a list If value is: abc then $value == 1a23; def then $value == 4b56; ghi then $value == 7c89; jkl then $value == 1d01; mno then $value == 1e23; pqr then $value == 1f45; so on... The only problem is the list is 12 thousand lines long, how can i do this in 1 if statement rather than 12 thousand if statements? Thank you so much for your time!
×
×
  • 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.