Jump to content

drums

Members
  • Posts

    32
  • Joined

  • Last visited

    Never

Everything posted by drums

  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.
  15. Still getting the broken image thingy
  16. Sorry, but I do not know what else to say . I provided the code and the images are not displaying. I still have not published the site but looking at the code is moot since it's PHP but if you want to see it go here http://do-rightweb.com/fertility/ And on line 39 you will see the code: <div id="top-main"> <img src='<?php echo $hbanner; ?>' width='723' height='306' alt='Center 4 IVF' border='0'> <p class="top-main">:: (201) 666-4200 ::</p> I get the alt tag and a broken image marker when I use <img src='<?php echo $hbanner; ?>' width='723' height='306' alt='Center 4 IVF' border='0'> Thanks very much for your help/response.
  17. Thnks but it is not pathing. I do have the images in an images folder and I account for it in the initial JS. Thanks,
  18. I have a script I haven't used in a couple years that I want to use on a new site but can't seem to get it working. I have the code below before the </head> tag: <? $hpics = array ( "images/top-main.gif", "images/top-main2.gif", "images/top-main3.gif", "images/top-main4.gif", "images/top-main5.gif", ); $index = rand(0, 4); $hbanner = $hpics[$index]; ?> And then in the body I put: <img src='$hbanner' width='723' height='306' alt='Center 4 IVF' border='0'> to try to get it to work but no show. So I thought maybe I need to make sure the server is parsing PHP therough html with .hataccess but still, no show. Ultimately I want it to go in as a background image and think this should work but would appreciate anyone pointing out any possible issues: <div id="top-main" style="background:url($hbanner) no-repeat"> So hopefully someone can sniff this out and tell me what I'm forgetting/doing wrong. Thanks very much for your help!
  19. It worked perfectly. Thanks for the hand holding!
  20. Cool, I hadn't noticed that before. Thanks for your help!!!
  21. Ok, Thanks for responding! So I went into Export and basically kept the defaults and clicked GO. And that opens a page of text that looks like what I need. Now do I copy this and then go to the new server and import? Does it save it as a file or do I need to paste this in somehow? I'm unsure how the next steps should go. Thanks again!
  22. I have basic level expertise in database creation and querying, basically a noob. I have a number of sites I will be moving in a week. I have some really simple databases and then some Wordpress ones which I'm not too worried about because I think WP has a plug in or steps. With my simple ones, I really want to avoid having to recreate them. I can see an export feature in phpMyAdmin 2.6.3-pl1 but not sure what to do with it. I can export to a csv but how do I import it and also create the tables/database in the new location? Or do I have to recreate these tables/dB's? Thanks very much for your time!
  23. SaaWEEEEET!!!! I came back to say I fixed it and saw what you had. Very nice, thanks so much.
×
×
  • 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.