The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help - Cant figure out why update not working when using dropdown box
#4
I manage to get the result changing the code to:

<select name="linkeduserid" class="form-control">
<?php
foreach ($permOps as $permOp){
if ($permOp->id == $companydetails->linkeduserid){
echo "<option value='$permOp->id' selected>$permOp->email</option>";;
}
else{
echo "<option value='$permOp->id'>$permOp->email</option>";
}
}
?>
</select>

  Reply


Messages In This Thread
Help - Cant figure out why update not working when using dropdown box - by muhammedc - 04-23-2017, 01:56 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)