The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (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
#2
Ok - so... it does update the DB - but when you open the page again, it does not show the item which was updated as the selected item, instead it just sows the first item that is populated in the option list...

So at this code:

<label>Linked User Account:</label>
<select name="linkeduserid" class="form-control">
<?php
foreach ($permOps as $permOp){
echo "<option value='$permOp->id'>$permOp->email</option>";
}
?>
</select>

The above populates the available options from a database. What I would like is that we get the current value of the item from the db and have that as the selected item...

Any ideas?
  Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)