Jump to content

[PHP]Function as argument


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
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
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
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.