Quote:
Originally Posted by NinjaSteve
AWESOME!
Quick question
Code:
<?php
$today=date('d');
$thumbtocall='http://www.yoursite.com/potd/thumbs/'.$today.'.jpg';
header('Location: '.$thumbtocall);
?>
So now you're calling thumbs.php to display the clickable thumb on your page.
Do you know how to add html? For example I would like to do a thumb + some text that says "Check out so and so in this sexy dress!"
|
That is very simple, Ninja. What you call from, let's say, blog is not the above code, but the script file containing that code (thumbs.php). Like this:
Quote:
|
<img src="http://www.YOURSITE.com/thumbs.php">
|
If you want to add some txt with html simply do something like this:
Quote:
<img src="http://www.YOURSITE.com/thumbs.php">
<br>
ADD YOUR TEXT HERE
|
and you will have the picture of the day with a line of text underneath it.
Hope this is what you were looking for.