I would like to redirect to other pages but the =
sign isn't working, the page name, the title, and the id are coming from database. I tried putting .
before the =
but that doesn't work. I think this should be simple but couldn't figure it out. can someone help me out?
echo "<a href=".$row['page']=.$row['topic']."& id=".$row['id'].">".click here."</a>";
Try like
echo "<a href='".$row['page']."=".$row['topic']."&id=".$row['id']."'>click here</a>";
Like this ?
echo '<a href="' . $row['page'] . '=' . $row['topic'] . '&id=' . $row['id'] . '">click here</a>';
You were just missing a few quotes and dots. This will work.
echo "<a href='".$row['page']."=".$row['topic']."&id=".$row['id']."'>click here</a>";