Jump to content

Recommended Posts

  • Premium

Hello !

How to call correctly that function ? 

Thank you !

<select class="search_field" name="socket0">
          <?php
                  echo'<option value=strtotime("+1 days")> ---- 1 Zi</option>';

                 echo'<option value=strtotime("+3 days")> ---- 3  Zile</option>';

                 echo'<option value=strtotime("+7 days")> ---- 7  Zile</option>';

                 echo'<option value=strtotime("+10 days")> ---- 30 Zile</option>';

            foreach($itemSteine AS $aKey => $aValue) {

              echo'<option value="'.$aKey.'">'.$aValue.'</option>';
            }
          ?>
        </select>

Link to comment
https://metin2.dev/topic/14060-phpfunction-as-argument/
Share on other sites

<select class="search_field" name="socket0">
          <?php
                  echo '<option value='.strtotime("+1 days").'> ---- 1 Zi</option>';

                 echo '<option value='.strtotime("+3 days").'> ---- 3  Zile</option>';

                 echo '<option value='.strtotime("+7 days").'> ---- 7  Zile</option>';

                 echo '<option value='.strtotime("+10 days").'> ---- 30 Zile</option>';

            foreach($itemSteine AS $aKey => $aValue) {

              echo'<option value="'.$aKey.'">'.$aValue.'</option>';
            }
          ?>
        </select>

  • Love 1
Link to comment
https://metin2.dev/topic/14060-phpfunction-as-argument/#findComment-79820
Share on other sites

  • Premium
3 minutes ago, iltizio said:

<select class="search_field" name="socket0">
          <?php
                  echo '<option value='.strtotime("+1 days").'> ---- 1 Zi</option>';

                 echo '<option value='.strtotime("+3 days").'> ---- 3  Zile</option>';

                 echo '<option value='.strtotime("+7 days").'> ---- 7  Zile</option>';

                 echo '<option value='.strtotime("+10 days").'> ---- 30 Zile</option>';

            foreach($itemSteine AS $aKey => $aValue) {

              echo'<option value="'.$aKey.'">'.$aValue.'</option>';
            }
          ?>
        </select>

It works, now I have another problem.

Items get time from time adding in itemshop, any idea how to create a cronjob to update socket0 daily for specific items with new value for 30 days ?

 

Link to comment
https://metin2.dev/topic/14060-phpfunction-as-argument/#findComment-79821
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.