Redirect if Recordset Empty while passing URL parameter
I'm sure this will be quick for a PHP guy. I want to redirect a page from the update page to the insert page if the results of the query are empty. But, I need to pass the URL parameter along to the redirected page, and can't figure out how to do that.
A typical update page URL would be tbProducts_RelatedUpdate.php?id=PS280
Here's as far as I've gotten:
<?php
if ($row_rsLikeItems < 1)
{ header("Location: tbProducts_RelatedInsert.php?id="); }
?>