Hi
I have a folder where I keep lots of urls. When I need them the link is redirected via the folder, e.g.
<a href="/request/index.php?id=Accor">
This takes me to a record in the ‘request’ folder where under the code Accor there is a full url
Now I have a table generated by php that lists records taken from a database. The records have a field ‘Chains’ that is queried by the php script and returned in the variable $chain
As in the case in question the code Accor in the folder is identical to the content of $chain
Therefore I thought that it would be a simple question of changing the code for the variable and it doesn’t work…
One of my tries that I adapted from something I saw online is this
<td><a href="/request/index.php?id='."$chain".'"><img src="<?php echo $image; ?>" alt="" /></a></td>
or
<td><a href="/request/index.php?id='.$results['chain'].'"><img src="<?php echo $image; ?>" alt="" /></a></td>
Part of the php mentions $results
if($results)
{
// Throw them all in a while loop
while($prepare->fetch()) {
?>
What do I have to do to make sure that the folder receives ‘Accor’ and nothing different?
I know that the link is reaching the folder, because when it receives an erroneous code it displays a default page. I changed the default page and it confirms that it is getting the request but can’t recognize it.
Eventually, if there isn’t a simple answer I would like to echo to the screen (or whatever) the exact code that is being sent to the folder. How can that be done?