Jump to content

Row


Rugbyfreak

Recommended Posts

i first put on the page wich friends someone haves. and next to it a link to send him a message

so the output is:

yannick

geoffrey

etc...

 

and i would like to say that whatever on wich link we click: $name=yannick or geoffrey, etc...

 

$result = mysql_query("SELECT * FROM $user ");

 

while ($row = mysql_fetch_array($result))

  {

  echo $row["friends"]."<a href=\"sendmessage.php\"> send message</a>";

  echo "<br/>";

  }

echo "<br /><hr/>";

 

Link to comment
https://forums.phpfreaks.com/topic/160406-row/
Share on other sites

let's pretend that the output of the "echo $row"= list of names and next to it a link will be:

name1 link

name2 link

name3 link

name4 link

...

when we click on a link the name next to it should be desplayed in an other page that looks like:

 

echo "you clicked on $name"

 

i hope you understand now

thank you for the reply

Link to comment
https://forums.phpfreaks.com/topic/160406-row/#findComment-846740
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.