aub Posted March 28, 2014 Share Posted March 28, 2014 (edited) Hi guys, this is my very first post and thread as you can see. At TAFE, I'm doing Certificate IV and we started learning how to code in php. It's pretty fun, to be honest! I have 3 questions and I just need your help if you don't mind or if you're bored/free. _____________________________________________________________Having the following students table:1. Convert the table into an array (Linear array)2. Convert the array into associative array3. Use list function to print the SID, and NAME, i.e key and value _____________________________________________________________ Your help would be greatly appreciated! Thanks. Edited March 28, 2014 by Ch0cu3r Quote Link to comment https://forums.phpfreaks.com/topic/287365-convert-the-table-into/ Share on other sites More sharing options...
Ch0cu3r Posted March 28, 2014 Share Posted March 28, 2014 1. Convert the table into an array (Linear array) What does it mean by table? Is it a (My)SQL Database table returned by your query? NB: I have corrected your topic title Quote Link to comment https://forums.phpfreaks.com/topic/287365-convert-the-table-into/#findComment-1474301 Share on other sites More sharing options...
aub Posted March 28, 2014 Author Share Posted March 28, 2014 What does it mean by table? Is it a (My)SQL Database table returned by your query? NB: I have corrected your topic title Yes, that's what I mean And thanks for correcting my topic title! Quote Link to comment https://forums.phpfreaks.com/topic/287365-convert-the-table-into/#findComment-1474304 Share on other sites More sharing options...
Ch0cu3r Posted March 28, 2014 Share Posted March 28, 2014 Can you post your current code? And specify exactly what you are stuck on. Quote Link to comment https://forums.phpfreaks.com/topic/287365-convert-the-table-into/#findComment-1474306 Share on other sites More sharing options...
aub Posted March 29, 2014 Author Share Posted March 29, 2014 I dont have a code. I just dont know how :S Quote Link to comment https://forums.phpfreaks.com/topic/287365-convert-the-table-into/#findComment-1474369 Share on other sites More sharing options...
mac_gyver Posted March 29, 2014 Share Posted March 29, 2014 your three questions aren't questions at all, they are a list of the tasks that make up your assignment. your instructor is being paid to teach you. you wouldn't have been assigned these tasks if the information presented up to this point wasn't sufficient to accomplish the task. if you don't know how to even begin working on these tasks, you need to speak with your instructor, because either a) the instructor didn't do their job of presenting the information or answering questions about the information or b) you haven't done your job of learning and/or asking questions when you didn't understand or follow what was being presented. programming help forums can only really help you with specific programming questions and we work best if you make an honest effort to write code and post it along with the question or error you are getting that you need help with. positing your assignment isn't asking a question, it is seen as you just trying to get someone else to do your assignment. if you need to see examples of php coding to see how others may have accomplished these tasks, there are 100's of thousands of php scripts posted on the Internet for you to find and examine. Quote Link to comment https://forums.phpfreaks.com/topic/287365-convert-the-table-into/#findComment-1474371 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.