Thank you for responding, but that is not quite it...
This that I am working on is for someone else, and he doesn't know any html and get's a bit excited when he sees a bunch of stuff he doesn't know what it is.
So, I am putting all of his content into a "config" file so he can change and edit the things on his page without having to search through a bunch of HTML code.
So, to get into more detail on what I am trying to do...
let's say on his page he is going to show a list of books in which he would suggest to his visitors to read. He puts his list of books, authors, short description of the book in the "config" file and how many total books he will be displaying.
for example:
(book number one, so the first to be displayed, all the varibles the title, the description, the author, etc. would be in the config file like this...)
$tot_books=10
$title1="Star Wars";
$author1="George Lucas";
$desc1="A long time ago in a galaxy far far away...";
$title2="the Empire Strikes Back"
$author2="George Lucas";
$desc2="A long time ago in a galaxy far far away...";
and so on...
I don't want to get into using MySQL and set up the tables and create an admin panel, I am trying to keep it a bit more simple for me, and for him...
So, on the page the code should be something like this...
include ("config.php");
$myi=1
while ($myi<=$tot_books){
$this_title="$title".$myi;
$this_author="$author".$myi;
$this_desc="$desc".$myi;
echo '<table><tr><td>';
echo $this_title;
echo '</td><td>';
echo $this_author;
echo '</td><td>';
echo $this_desc;
echo '</td></tr></table>';
$myi=$myi+1
}
but of course when I do it like this all that is returned is the value of "$myi"...
Not what I am looking for...
I need a way to put "$myi" on the end of "$title", "$author", "$desc"...so that when it goes through the loop it shows the actual content of those variables in the config file based on a prefix and then the value of $myi as the suffix...
So, my desired result is ...
Star Wars___________George Lucas__A long time ago in a galaxy far far away...
the Empire Strikes BackGeorge Lucas________A long time ago in a galaxy far far away...
and so on (of course not including the lines)...
I hope this is a little more clear on what I am trying to accomplish...
Thanks again,
Ryan