Jump to content

leap500

Members
  • Posts

    17
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Male
  • Location
    London

leap500's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. If you still need this: <html> <head> <style type="text/css"> #holder{ width:98%; min-width:800px; border-left:1px solid #000000; border-right:1px solid #000000; } #header, #footer{ height:25px; width:100%; border:1px solid #000000; border-left:none; border-right:none; } #menu{ width:150px; float:left; } #body{ width:800px; } #content{ float:left; border-left:1px solid #000000; } #footer{ clear:left; } </style> </head> <body> <div id="holder"> <div id="header">header</div> <div id="body"> <div id="menu"> Menu<br /> Menu<br /> Menu<br /> Menu<br /> Menu<br /> Menu<br /> </div> <div id="content"><img src="" width="640" height="480" /></div> </div> <div id="footer">footer</div> </div> </body> </html>
  2. Hi I think your problem is due to the use of an absolutely positioned element, which will not affect the size of other divs on your page. Can you post the page code so that I can see how you are laying out the divs?
  3. Hi I would guess that they are using an server side include file in php. This allows them to load the same header and footer code for each page.
  4. Hi Try this: <div style="width:100%; height:99%; position:absolute; left:0px; top:0px; text-align:center;" id="loadingdiv"></div>
  5. Hi Have you tried using 'inline' style: http://www.webdesignfromscratch.com/css-block-and-inline.cfm
  6. Hi You would need use CSS and absolutely positioned <div> tags. Have a look at http://www.w3schools.com/css/css_positioning.asp
  7. Hi You may want to give this a go: if (!preg_match("/^[0-9a-zA-Z0-9À-ÖØ-öø-ÿ \'.-]*$/", $trimmed))
  8. Hi I think that this may work for you: if($m%5 != 0){ //code }
  9. you could also use: <?php $timestamp = mktime(date('H'), date('m'), date('s'), date('m'), date('d'), date('Y')); $date = date('Y-m-d H:m', $timestamp); echo $timestamp . '<br />'; echo $date; ?>
  10. Hi Tom Try this: <?php $day = 6; $month = 6; $year = 2007; $hour = 22; $minute = 12; $second = 15; $timestamp = mktime($hour, $minute, $second, $month, $day, $year); $date = date('Y-m-d H:m', $timestamp); echo $timestamp . '<br />'; echo $date; ?> If you need microseconds, have a look at http://www.php.net/manual/en/function.microtime.php
  11. Hi Nick Replace this: foreach($row3 as $key=>$value){ if($value != $searchpid){ echo '<br><a href="fr.php?PID=' . $searchpid . '">Add to friends</a>'; break; } } with this: $link = true; foreach($row3 as $key=>$value){ if($value == $searchpid){ $link = false; } } if($link){ echo '<br><a href="fr.php?PID=' . $searchpid . '">Add to friends</a>'; }
  12. Hi This page may answer your question: http://www.quirksmode.org/js/iframe.html
  13. Hi This should do it: <?php $source_file = "test_image.jpg"; $im = ImageCreateFromJpeg($source_file); $imgw = imagesx($im); $imgh = imagesy($im); // n = total number or pixels $n = $imgw*$imgh; for ($i=0; $i<$imgw; $i++) { for ($j=0; $j<$imgh; $j++) { // get the rgb value for current pixel $rgb = ImageColorAt($im, $i, $j); // extract each value for r, g, b $r = ($rgb >> 16) & 0xFF; $g = ($rgb >> & 0xFF; $b = $rgb & 0xFF; echo $i . "x" . $j . " " . $r . " " . $g . " " . $b . "<br />"; } } ?>
  14. Hi I think you may have missed an = sign after 'value', you also may want to use selected="selected" try: <option selected="selected" value="<?php echo $field?>"><?php echo $field?></option>
  15. Hi This worked for me using PHP5: <?php $file = "<PropertyURL>http://developer.newcondosonline.com/direct1.php?property=1568&amp;pname=The Potrero&amp;compid=626</PropertyURL>"; $xml = simplexml_load_string($file); print_r($xml); ?> The output is: SimpleXMLElement Object ( [0] => http://developer.newcondosonline.com/direct1.php?property=1568&pname=The Potrero&compid=626 ) You would need to use simplexml_load_file as it is an external file. See http://www.php.net/manual/en/ref.simplexml.php for more info.
×
×
  • 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.