B
B
BATYA2016-06-25 23:40:48
PHP
BATYA, 2016-06-25 23:40:48

Why is Refresh happening?

I make a conclusion of all groups from the database, when you click on the name of the group, it goes to the group, and then Refresh happens, to the main one.

$q = mysql_query("SELECT `id`,`groups_name` FROM `groups`");
while($r = mysql_fetch_array($q)){
$id_q = <<<TXT
$r[id]
TXT;
$name = <<<TXT
$r[groups_name]
TXT;
echo<<<TXT
    <table border=1>
        <tr><td><a href="index?p=$id_q">$name </a> <br> <img width="120" src="$small_ava"><br></td></tr>
        </table>		
TXT;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2016-06-25
@AngenOfBATYA

Replace
with
"?p=$id_q"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question