Trying to get this to work. What I want it to do is take the number value from 'Number Received' and add the record that many times:
// Before record added
function BeforeAdd(&$values, &$message, $inline)
{
$count = $values["Number Received"];
for($i = 1; $i < $count; $i++)
{
$query = "INSERT INTO Stock
(`Hospital`,`Manufacturer`,`Department`,`Item Type`,`Batch/Lot Number`,`Expiry Date`,`Number Received`,`Received...
PHP:
from Programming https://ift.tt/2wP2NUG
via IFTTT

0 Comments