Recent Posts

Caution: Greetings to all visitors. The site is working in short. Links Please skip the link to view any topic and thank you for visiting
header ads

Whats wrong with my code?

Hi guys

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:
Whats wrong with my code?

from Programming https://ift.tt/2wP2NUG
via IFTTT

Post a Comment

0 Comments