Jump to content

drums

Members
  • Posts

    32
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

drums's Achievements

Member

Member (2/5)

0

Reputation

  1. Thanks dude! I just posted on your blog, happy to be the first!
  2. Eek, :'( that got my head spinning. It's late (I'm old, ok ) so I have to maybe try tomorrow and see if I can wrap my head around it :'(
  3. I got so excited I forgot to ask about a couple things... How do a limit the number of images (I have 30 images that will be rotating through 5 spots on one side of the page and 5 on the other)? And where is or how do you get the basename? the title="'.basename($image).'" thing? Thanks very much!
  4. Wow, very cool, works like a charm! And hey, don't underestimate yourself
  5. jcbones, thanks, ECHO was what I was missing! MadLittleMods, I tried that but it didn't work.
  6. I asked a question in another thread about making this script work in multiple instances but now I can't even get it to work! <?php $cpics = array ( "images/sidebar/party1.jpg", "images/sidebar/party2.jpg", "images/sidebar/party3.jpg" ); $index = rand(0, 2); $cbanner = $cpics[$index]; ?> And in the http://do-rightweb.com/1-test.php test page <img src="$cbanner"> Thanks very much for your help.
  7. I have an old script that I do not recall where I got it but would like to enhance it. I thought of creating multiple ones and just give them different names but that seems redundant and certainly less elegant than doing it in one script. I have 5 images running down each side of a wordpress site (left & right sidebar) though the platform is not relevant in this application, I don't think... I want to be able to randomize each of those 10 images on each page so that each time a user visits the page or refreshes all the images change. Is there a way to randomize all those images without special casing each one like the code I have and my lack of PHP knowledge would dictate? $cpics = array ( "images/pic1.jpg", "images/pic2.jpg", "images/pic3.jpg" ); $index = rand(0, 2); $cbanner = $cpics[$index]; And then on the page I put <img src="$cbanner"> So with my lack of PHP programming skills I would create an array for each location giving each array a different name so that my sidebar code would look like this: <li><img src="$1banner"></li> <img src="$2banner"> <img src="$3banner"> <img src="$4banner"> <img src="$5banner"> Thanks very much for your help.
  8. Thanks Jon, I will go through that link. Appreciate it!
  9. Sorry for my lack of the vernacular but this is exactly what I need. However, I put it in and it still doesn't show the date http://waduidefense.com/links.html Thanks, -jt.
  10. That's the html tag <?php echo date(Y); ?> that I used so not sure what you mean. Shouldn't there be something to tell it to pars php? Examples of sites on same server (the 2nd link copyright is next to Veitch Law and not the SEO one and all the other pages on that site are hard coded) http://do-rightweb.com http://waduidefense.com/links.html
  11. What would the code be to display server side code like the date and time to display in html pages? I have the date code for copyrights that I want to display <?php echo date(Y); ?> and I think I need to create an .htaccess file to put it in but not sure what to put. Thanks,
  12. The date doesn't show. http://do-rightweb.com shows it but http://waduidefense.com/links.html doesn't (I have it manually added temporarily on all the other pages)
  13. I use this on my sites and it works fine on one and not the others and I can't figure out why. The sites are all hosted at the some place and even share an IP but for some reason only one of them is working. Here's the stamp: Copyright © <?php echo date(Y); ?> . So can someone tell me what the problem is? Thanks
  14. Thanks, I know, it seems like it is pathing but even with the firebug it just shows the PHP Echo and not the path or anything.
×
×
  • Create New...

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.