UpdateGoTo not picking up ID from a recordset - only affecting one form?
I'm trying to redirect to a page on my site after an UPDATE, carrying over an ID so that I can dynamically show data once the MySQLi UPDATE form has been submitted:
$UpdateGoTo = "patient-view.php?pID=".$rsPATIENT->getColumnVal("PFpatientID")."";
When I get to the patient-view.php page, the URL is simply:
So, it's not picking up the ID for some reason.
On my UPDATE page I am using that ID to filter a table from my database in a recordset called rsPATIENT, and I can display data from that table on the UPDATE page so the PFpatientID is absolutely available. So why isn't it carrying over once the UPDATE form has been submitted?
Worse still, I have another edit form on this site, using the same tables and recordsets, and it carries over just perfect, it's UpdateGoTo reference being exactly the same as this one. Aarrrggh.
I think this is a case of me going insane again but I attach the page in the hope that someone can spot the typo that I've spent 48 hours screaming at without seeing so far. I just can't see it. :(