PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$sql = "UPDATE history SET action='{$from}' WHERE action='{$to}' AND author='{$uid}' AND ideaid={$_POST['idea']}";
echo "sql=$sql<br/>";
$result = pg_query($db, $sql);
$sql = "UPDATE history SET action='{$from}' WHERE action='{$to}' AND author='{$uid}' AND ideaid={$_POST['idea']}";
echo "sql=$sql<br/>";
$result = pg_query($db, $sql);