Jump to content

PravinS

Members
  • Posts

    459
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by PravinS

  1. According to XML you will get values like this

    $data = "http://www.mesquiteweather.net/xml/mesquite.xml";
    $xml = simplexml_load_file($data);
    $fname = $xml->fname;
    $lname = $xml->lname;
    $location = $xml->location;
    $report = $xml->report;
    $description = $xml->description;
    
  2. $queryreport = mysql_query("SELECT post_time_dif FROM response WHERE profile_id = '$id'");
    $post_time_dif_tot = 0;
         while($row = mysql_fetch_array($queryreport)){
              $post_time_dif = $row['post_time_dif'];
              $post_time_dif_tot += $post_time_dif;
         }
    

    set zero value to $post_time_dif_tot variable above while loop or try above code or else you can disable notice errors from php.ini file

  3. If you want to post any data from "index.php" to "print.html.php", then you need to submit your index page to print page, for that you can dynamically change form action to print page using javascript and submit that form.

     

    may this will help you

  4. First change type of print button from submit to button(i.e. type="button"). And add javascript onclick event on that button i.e.

    <input type="submit" value="Print" name="print" onclick="javascript: window.location='print.html.php';">
  5. Using query string, you need to use key=value way of passing values like 

    <td width="33%" align="left"> <?php if ($result==1) header("Location: import1.php?imagename=$imagename");  ?></td>
    

    and in import1.php page you need to get the value using GET method like this

    $imagename = $_GET['imagename'];
    echo "the filename is " . $imagename;
    
    

    may this will help you

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