mysql - How to Get data that been clicked into next page in php?

Solution:
As display in first script, you are not getting any result of index: id, and you have passed parameter in URL. Now in second script you are using id as get parameter. But as you know you don't have any index named id, you can't get id from URL, and when you are trying to run the query there's a query error and it returns non-object.
replace following line:
<a href='answ.php?id = " . $row['id'] . "'><?php echo $row["question"]; ?> </a>
with:
<a href='answ.php?id=<?php echo $row['id']; ?>'><?php echo $row["question"]; ?> </a>
Answer
Solution:
all thing you need to do is clear space : replace:
<a href='answ.php?id = " . $row['id'] . "'><?php echo $row["question"]; ?> </a>
with:
<a href='answ.php?id=" . $row['id'] . "'><?php echo $row["question"]; ?> </a>
that's all
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: call to a member function getclientoriginalname() on null
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.