Jump to content

akreation

Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

akreation's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks SA, thats what i need, just haing a little trouble with my code. I tried the ones below with no luck. [code] <?php $path = "/SaMPLe/Regional/<?php echo $row_rs_flavor_details['regional']; ?>/<?php echo $row_rs_flavor_details['country']; ?>/<?php echo $row_rs_flavor_details['state_province']; ?>/<?php echo $row_rs_flavor_details['flavor_id']; ?>1.jpg"; $path = (file_exists($path)) ? $path : "/images/whowont_logo.jpg"; echo "<img src='$path' alt='My Image' />"; ?> [/code] [code] <a href="/SaMPLe/Regional/<?php echo $row_rs_flavor_details['regional']; ?>/<?php echo $row_rs_flavor_details['country']; ?>/<?php echo $row_rs_flavor_details['state_province']; ?>/<?php echo $row_rs_flavor_details['flavor_id']; ?>1.jpg"> <img src="<?php $path = "/scripts/phpThumb/phpThumb.php?src=/SaMPLe/Regional/<?php echo $row_rs_flavor_details['regional']; ?>/<?php echo $row_rs_flavor_details['country']; ?>/<?php echo $row_rs_flavor_details['state_province']; ?>/<?php echo $row_rs_flavor_details['flavor_id']; ?>1.jpg&w=150&h=150"; $path = (file_exists($path)) ? $path : "/images/whowont_logo.jpg"; echo "<img src='$path' alt='Legendary Place Image One' />"; ?></a> [/code]
  2. How do I replace, or use a different "image unavailable" file when the image is unavailable? Example:: If image1.jpg is unavailable the use image2.jpg The code below is the image that is unavailable sometimes, because all records do not have images. [code] <img src="/scripts/phpThumb/phpThumb.php?src=/SaMPLe/Regional/<?php echo $row_rs_flavor_details['regional']; ?>/<?php echo $row_rs_flavor_details['country']; ?>/<?php echo $row_rs_flavor_details['state_province']; ?>/<?php echo $row_rs_flavor_details['flavor_id']; ?>2.jpg&w=150&h=150" border="0"> [/code] Hope this is clear enough, thanks in advance, and forgive the newbe.
  3. I am trying to display the total hits on my web site. i have a column called hits in the table called mos_content. I want to total number from the hits column. this code is not working for me any suggestions?.... [code] <? mysql_select_db($database_sample, $sample); $query_rs_hits_total = "SELECT SUM(hits) FROM mos_content "; $result = mysql_query($query_rs_hits_total) or die(mysql_error()); $sum_hits = mysql_fetch_array($result); ?> <?php echo $sum_hits; ?> [/code]
×
×
  • 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.