/ Published in: PHP
This example will return values -15 through 15 to be presented to the user in a select list for an integer CCK field.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
for ($i = -15; $i <= 15; $i++) { $rows[$i] = $i; } return $rows;