Jump to content

wildteen88

Staff Alumni
  • Posts

    10,480
  • Joined

  • Last visited

    Never

About wildteen88

  • Birthday 02/21/1988

Profile Information

  • Gender
    Male
  • Location
    UK, Bournemouth

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

wildteen88's Achievements

Regular Member

Regular Member (3/5)

3

Reputation

  1. Then you probably need to use the resize function like so <div class="thumb"> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"> <?php $settings = array("w"=>100,"h"=>100,"crop"=>true); $values = get_post_custom_values("thumbs"); ?> <img src="<?php echo resize($values[0], $settings); ?>" alt="<?php the_title(); ?>" /> </a> </div>
  2. You maybe able to override the php.ini setting using the ini_set function within your php scripts. Or using a .htaccess file using the php_flag directive Example htaccess file php_flag upload_tmp_dir /path/to/tmp/dir/ php_flag upload_max_filesize 50M
  3. What does the function get_post_custom_values() return? What is the source code for that function? You first need to understand what that function does and what type of data it is returning before trying to merge the two functions together.
  4. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=340317.0
  5. Then change echo "<tr style=\"background-color: $bgcolor\">"; // apply the color to the row to echo "<tr class=\"$bgcolor\">"; // apply the class to the row Now set the variables $color1 and $color2 to your two classes. Just place the text after your variables.
  6. This is how you alternate colors $i = 0; // initiate counter variable // set the colors $color1 = '#e1e1e1'; // first color $color2 = '#cccccc'; // secound color while($row = mysql_fetch_array($result)) { // alternate row colors $bgcolor = ($i % 2 == 0) ? $color1 : $color2; echo "<tr style=\"background-color: $bgcolor\">"; // apply the color to the row echo "<td>" . $row['firstname'] . "</td>"; echo "<td>" . $row['lastname'] . "</td>"; echo "</tr>"; $i++; // increment counter }
  7. What error? It would be helpful if you tell us the exact error and on what line(s) it is occurring?
  8. The following line passes the variable you pass to it by reference. function CalculateRatios(&$ValueArray){ passing by reference is explained in the manual here http://php.net/manual/en/language.references.pass.php What is it you are trying to do?
  9. What are you doing when your pattern matches the '$xxx[yyy]' string?
  10. You have left off the curly braces if($state == 'FL') { $price = $prices_array[$size]; // Set Price $tax = number_format($price * .07,2); // Set tax $amount = number_format($price + $tax,2); // Set total amount } else { $price = $prices_array[$size]; // Set Price $tax = number_format($price * .0,2); // Set tax $amount = number_format($price + $tax,2); // Set total amount }
  11. Sort your code out so there is no output before the use of header(). Or use output buffering for a lazy fix. Another option would be to set a html meta redirect or use JavaScript.
  12. You don't use PHP to apply color to text within HTML tags. This is handled by client side language such as CSS. This is not possible with PHP at all. I have answered your earlier question which I moved to CSS Help, as it is the appropriate forum for your question. This thread will be locked/removed soon so post all your replies here http://www.phpfreaks.com/forums/index.php?topic=340099.0
  13. You can't colour individual words within <option></option> tags,
  14. Probably because you have some form of output before the use of that function. You cannot echo/print anything to the screen before the use of header().
  15. This topic has been moved to CSS Help. http://www.phpfreaks.com/forums/index.php?topic=340099.0
×
×
  • 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.