Question
How to re-direct to another location and pass a variable
I have made a simple search for my site, but depending on the
article_id returned depends on where the link to the article will
point.
I have used an if else statement to do this, but I need the link to pass one of the search variables.
If idcat_art does equal 1 then how do I make it put in this code:
<p><a href="recruitarticles_read.php?id_art=<?php echo $row_rs_search_results['id_art']; ?>" class="green">...read more </a></p>
instead of the 'echo "It's in Search and Selection";' it currently does
Thanks for any help,
Full code below:
I have used an if else statement to do this, but I need the link to pass one of the search variables.
If idcat_art does equal 1 then how do I make it put in this code:
<p><a href="recruitarticles_read.php?id_art=<?php echo $row_rs_search_results['id_art']; ?>" class="green">...read more </a></p>
instead of the 'echo "It's in Search and Selection";' it currently does
Thanks for any help,
Full code below:
