Jump to content


Photo

Output the results on another page


  • Please log in to reply
4 replies to this topic

#1 csabi_fl

csabi_fl
  • Members
  • PipPip
  • Member
  • 22 posts

Posted 27 October 2006 - 02:20 PM

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?

#2 csabi_fl

csabi_fl
  • Members
  • PipPip
  • Member
  • 22 posts

Posted 27 October 2006 - 04:37 PM

Anybody?

#3 Psycho

Psycho
  • Moderators
  • Move along, nothing to see here
  • 11,891 posts
  • LocationCanada

Posted 27 October 2006 - 04:41 PM

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 = 'userid'"

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).
The quality of the responses received is directly proportional to the quality of the question asked.

I do not always test the code I provide, so there may be some syntax errors. In 99% of all cases I found the solution to your problem here: http://www.php.net

#4 csabi_fl

csabi_fl
  • Members
  • PipPip
  • Member
  • 22 posts

Posted 27 October 2006 - 06:06 PM

The records are stored in HTML .What is the code to pull one row out of my table and display it?

#5 Psycho

Psycho
  • Moderators
  • Move along, nothing to see here
  • 11,891 posts
  • LocationCanada

Posted 27 October 2006 - 06:17 PM

Look at this post where I explained how to do it to someone else: http://www.computing...forum/2960.html

You will need to create the logic to find the data you want within the HTML file.
The quality of the responses received is directly proportional to the quality of the question asked.

I do not always test the code I provide, so there may be some syntax errors. In 99% of all cases I found the solution to your problem here: http://www.php.net




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users