Jump to content

Archived

This topic is now archived and is closed to further replies.

csabi_fl

Output the results on another page

Recommended Posts

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?

Share this post


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

Share this post


Link to post
Share on other sites
The records are stored in HTML .What is the code to pull one row out of my table and display it?

Share this post


Link to post
Share on other sites
Look at this post where I explained how to do it to someone else: http://www.computing.net/webdevel/wwwboard/forum/2960.html

You will need to create the logic to find the data you want within the HTML file.

Share this post


Link to post
Share on other sites

×

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.