Jump to content

harristweed

Members
  • Posts

    346
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by harristweed

  1. <?php
    $color = array(red,green,blue);
    $i=0;
    while ($row = mysql_fetch_assoc($exec))
    {
    echo "<tr bgcolor=\"".$color[$i]."\">";
    echo '<td>'.$row['brand_name'].'</td>';
    echo '<td>'.$row['contact_name'].'</td>';
    echo '<td>'.$row['contact_info'].'</td>';
    echo '<td>'.$row['email'].'</td>';
    echo '<td>'.$row['description'].'</td>';
    echo '</tr>';
    $i++;
    if($i==count($color))$i=0;
    }
    ?>

  2. try this:

    <?php
      $sql = "INSERT INTO rorligt ( arende, rumsnr, besk, adress, ejfakt, avslutad, best, rikt, listid) VALUES ( '{$arende[$x]}',
    '{$rumsnr[$x]}', '{$beskrivning[$x]}', '{$adress[$x]}', '{$ejfakturerat[$x]}', '{$avslutad[$x]}', 'best', '{$rikt}', '{$listid}')";
    ?>

     

  3. note you have a tag mismatch "<name>CLueless</user>"

    <?php
      $xml_feed="<outer>
      <xml>
        <viewer>
          <user>
            <id>1245789</id>
            <name>CLueless</name>
            <business>none</business>
          </user>
        </viewer>
      </xml>
    </outer>
    ";
    
    if(!$xml = simplexml_load_string("$xml_feed")){
        echo "Can't connect to feed $xml_feed";
    }else{
    foreach ($xml->xml->viewer->user as $value){ 
    $id=$value->id;
    $name=$value->name;
    $biz=$value->business;
    echo"id=$id<br />\n";
    echo"name=$name<br />\n";
    echo"biz=$biz<br />\n";
    
    }  
        
    }
    ?>
    

     

  4. Leave page after doing whatever it is you do using something like:

    if(operation completed){
        header("Location: send_me_back.php"); /* Redirect browser */
        exit;
    }

     

    And have @send_me_back.php use same method to return to original page but without the $_GET

  5. I’m sorry I was not able to resolve the problem for you. I am 64 years old and self taught. I do my best to help everybody, some times I give very poor advice but it is given with the best intentions. I am glad you were able to get assistance with your problem. Possibly it would help others if you posted the solution rather that poring scorn on those that are trying to help.

  6. works for me!

    <?php
    if($xml = simplexml_load_file("http://mob-dynamic-lb4.mobsters09.com/mob/get_city_list?user_id=530830355&auth_key=d7240dc8bf350a48feb61eb04694bd67d5bc0cb1")){
        echo"XML File Connected<br />\n";
         ob_flush(); flush();   
    }else{
        echo"Can't connect to feed";  
    exit;
    }
    
    foreach ($xml->xml->undeveloped_lands->land as $value){
        $id=$value->id; 
       echo"id=$id<br />\n"; 
       
    }
    ?>

  7. looking at the page source you have...

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml"> 
    
    <head> 

    at the top and on line 206

    <head> 

     

    line 430

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 

     

    at the bottom of the page

     
    </body> 
    </html> 
    </div> 
    
    <div id="FILTER_Compare_Bar_Bottom"></div> 
    </div> 
    <div id="content_bottom_bevel_light"></div> 
    </div> 
    <link href="stylesheet.css" rel="stylesheet" type="text/css"> 
    
    <div id="footer"> 
      <div align="center">© 2010 London Filter Company</div> 
    </div> 
    
    
    </body> 
    
    </html> 

     

    Just shows how good the Mozilla browsers are to display anything .....

     

    Are you really using MSWord to create the page?

×
×
  • 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.