nurulfarhanahmm Posted November 5, 2015 Share Posted November 5, 2015 (edited) I have developed a html template using table, something like below. I'm having problem to insert the data from mysql to be inserted in specific column in the html table. Could anybody help me.. _________________________________________________________________________ |Name: | |Student ID:| | |Address: | | | |Postcode:| | Edited November 5, 2015 by nurulfarhanahmm Link to comment Share on other sites More sharing options...
Ingolme Posted November 5, 2015 Share Posted November 5, 2015 What does the code that prints the table look like? Link to comment Share on other sites More sharing options...
nurulfarhanahmm Posted November 5, 2015 Author Share Posted November 5, 2015 <body><table width="442" border="1"> <tbody> <tr> <td width="81">Name:</td> <td width="111"> </td> <td width="92">Student ID:</td> <td width="130"> </td> </tr> <tr> <td>Address:</td> <td colspan =3> </td> </tr> <tr> <td colspan=2> </td> <td>Postcode:</td> <td> </td> </tr> </tbody></table></body> Link to comment Share on other sites More sharing options...
dauruk0512 Posted November 5, 2015 Share Posted November 5, 2015 did you mean like this http://codepen.io/sidaurukfreddy/pen/PPdOKYlet me guess ? did you understand about php even just show data in html using php ?if you already familiar you will easy to put any values in html, Thanks Link to comment Share on other sites More sharing options...
COBOLdinosaur Posted November 5, 2015 Share Posted November 5, 2015 All you are showing us is the markup. What does the php script you want to populate it with look like? Link to comment Share on other sites More sharing options...
nurulfarhanahmm Posted November 6, 2015 Author Share Posted November 6, 2015 dauruk0512: exactly like your link.....Just, the data like name,student id, address and postcode already in the mysql database. I just don't know how to select the data and make then show up in the correct column in the table. COBOLdinosaur: I also don't know how to write the code. That's why i need your help. i know how to populate mqsl data from database to be output as a table. But in this case, the html table have been developed, i just need to output the data from database to the correct column in the table. Link to comment Share on other sites More sharing options...
COBOLdinosaur Posted November 7, 2015 Share Posted November 7, 2015 This site has "schools" in its name for a reason. It is a place to learn. If we just write the code for you; you learn nothing and we and the site fail to meet the objectives of the site. There are mysql and php tutorials and references right here on the site that should help you at least make an attempt at starting the code, then we can help you with specific questions as you run into problems. That way you will learn not just how to solve your immediate problem, but you will acquire some new skills that will help you with future problems. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now