Jump to content

Link Reading 3 Different Rows?


justlukeyou

Recommended Posts

Hi,

 

I have been trying to complete a multi-dimensional array. The idea is that someone can click on 1 of 3 skills. I have tried to insert the skills and User ID into its own table. However I still cant create a link which reads all 3 skills.

 

Does anyone have any suggestions as to how I can create a link which reads 3 different rows?

 

 

Skill1: Web Design User ID: 17

Skill2: Graphic Design User ID: 17

Skill3: SEO Marketing User ID: 17

 

 

eventskillsquery.php?skill= Reads skill1 / skill2 or skill3

Link to comment
https://forums.phpfreaks.com/topic/278633-link-reading-3-different-rows/
Share on other sites

Arrays.

http://myDomain.com/links.php?id=17&sk[]=Web+Design&sk[]=Graphic+Design&sk[]=SEO+Marketing
print_r($_GET["sk"]);
Array
(
	[0] => Web Design
	[1] => Graphic Design
	[2] => SEO Marketing
)
Don't forget to validate the array before trying to use it.

How about you add more detail? First you were talking about links that "read" skills, now there's something about displaying a user ID? Surely it's more complicated than just

http://myDomain.com/links.php?id=17&sk[]=Web+Design&sk[]=Graphic+Design&sk[]=SEO+Marketing
echo "User ", $_GET["id"];

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.