Ok, I'm sooo close (this is my third thread started in realtion to my site, so many problems, I just hope that these threads will be usefull to others in the future, I've tried to keep one problem/solution per thread)
ok, what I would like to do is take a variable containing text and use it to make alt text for an image.
the way my site works, I have a database with different comics, and when you load the page, it will load the appropriate comic (if its your first time it loads the latest and if you're browsing it will load the appropriate issue) and it will also load a blog.
basically I call the record for the appropriate issue number form a table that contains: issue number, the name of the image file, the title of the comic, the date.
I then take these array values and use them to create the appropriate page for the appropriate comic, aka, the name of the image file is used to call the appropriate image (as well as teh appropriate blog posting .txt file since it shares teh same name), it loads the title of the comic into the head of the page and it loads the date of the posting just above the blog.
you can see an example of this working here: http://andrew.ulmb.com/index.php
now...I want to put alt text onto the image. the alt text is contained in a file called $issue[1]alt.txt where $issue[1] would be a 5 digit issue number, in this case 00001 since I have one comic. this file is in the same folder as the blog, the blog is named $issue[1].txt.
I load the alt text and the blog in the same fasion, by opening the txt file and reading the entire file into a single variable. this leaves me with two variables containing all the text I want displayed.
displaying the blog was easy, just a single print function wher ei want the text to appear, BUT the alt text is giving me a hard time, I can't get it to display. here is the html code surrounding the image
<div style="position:absolute;top:32px;left:224px;width:580px;height:1475px;">
<?PHP print "<img src = COMICS/$issue[1].jpg>" ?> </div>
This properly displays the image (fo rthe moment but I'll get to that later or in a different thread since it's a seperate problem)
how would I add the variable $alt into these lines of code so that the value of $alt is displayed as the alt text?
I've tried to be as specific as possible but if you need clarification on anythign please reply.
thanks.
andrew