csabi_fl Posted October 27, 2006 Share Posted October 27, 2006 I have a table on one of my pages that stores the position number,login ID and score.For example one row looks like this:20(position)|Mary|120(points)I want to output this particular row on another page,so when 'Mary" logs in she will have this row displayed.How do I do that? Link to comment https://forums.phpfreaks.com/topic/25306-output-the-results-on-another-page/ Share on other sites More sharing options...
csabi_fl Posted October 27, 2006 Author Share Posted October 27, 2006 Anybody? Link to comment https://forums.phpfreaks.com/topic/25306-output-the-results-on-another-page/#findComment-115454 Share on other sites More sharing options...
Psycho Posted October 27, 2006 Share Posted October 27, 2006 Are the values stored in a database or only in an HTML page. If it is in a database you just need to pull the records using "WHERE userid = '[i]userid[/i]'"If the records are only stored in the HTML page you could use PHP to read the file and pull out that user's data or put the data into the database (best solution). Link to comment https://forums.phpfreaks.com/topic/25306-output-the-results-on-another-page/#findComment-115457 Share on other sites More sharing options...
csabi_fl Posted October 27, 2006 Author Share Posted October 27, 2006 The records are stored in HTML .What is the code to pull one row out of my table and display it? Link to comment https://forums.phpfreaks.com/topic/25306-output-the-results-on-another-page/#findComment-115478 Share on other sites More sharing options...
Psycho Posted October 27, 2006 Share Posted October 27, 2006 Look at this post where I explained how to do it to someone else: http://www.computing.net/webdevel/wwwboard/forum/2960.htmlYou will need to create the logic to find the data you want within the HTML file. Link to comment https://forums.phpfreaks.com/topic/25306-output-the-results-on-another-page/#findComment-115482 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.