Question: loop is not working corectly there should be a 1 and a 3 1 code; ; $getRelatedID = 'relatedID _ ' . $rowNum. '
loop is not working corectly there should be a and a
code; ;
$getRelatedID'relatedID$rowNum.;
$RelatedID$POST$getRelatedID;
$databasenew database;
$sql "SELECT FROM javascripttest.liscence where RelatedID:ID; Update this query according to your table name
$databasequery$sql;
$databasebind:ID $id;
$databaseexecute;
$rows$databaseobject;
foreach $rows as $key$val
$EmployeeFName$POSTEmployeeFName;
$EmployeeLName$POSTEmployeeLName;
$Address$POSTAddress;
$Liscence$POSTLiscence;
$LDescription$POSTLDescription;
$Expiration$POSTExpiration;
$Category$POSTCategory;
$sql"UPDATE javascripttest.liscence SET
RelatedID:RelatedID
where id:id;
$databasequery$sql;
$databasebind:id $id;
$databasebind:RelatedID", $RelatedID;
$databasebind:EmployeeFName", $EmployeeFName;
$databasebind:EmployeeLName", $EmployeeLName;
$databasebindAddress $Address;
$databasebindLiscence $Liscence;
$databasebindLDescription$Description;
$databasebindExpiration$Expiration;
$databasebindCategory$Category;
$databaseexecute;
$rowNum;
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
