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
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.
Link to comment
Share on other sites

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"];
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.