justlukeyou Posted May 31, 2013 Share Posted May 31, 2013 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 Quote Link to comment Share on other sites More sharing options...
justlukeyou Posted May 31, 2013 Author Share Posted May 31, 2013 Could I do something like this... http://myDomain.com/links.php?id=17&sk1=Web+Design&sk2=Graphic+Design&sk3=SEO+Marketing >Web Design</a> http://myDomain.com/links.php?id=17&sk1=Web+Design&sk2=Graphic+Design&sk3=SEO+Marketing >Graphic Design</a> Quote Link to comment Share on other sites More sharing options...
requinix Posted May 31, 2013 Share Posted May 31, 2013 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. Quote Link to comment Share on other sites More sharing options...
justlukeyou Posted June 3, 2013 Author Share Posted June 3, 2013 Thanks but I dont understand it. Could add anymore detail please? I want someone to click on Web Design and siplay User 17. Quote Link to comment Share on other sites More sharing options...
requinix Posted June 3, 2013 Share Posted June 3, 2013 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"]; Quote Link to comment Share on other sites More sharing options...
Jessica Posted June 3, 2013 Share Posted June 3, 2013 Why would you have three links labelled differently with the same URL? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.