- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
php-pdf attachment is in wrong format on webmails |
|
php-pdf attachment is in wrong format on webmails |
|
header("Content-type: application/msexcel"); header("Content-type: text/msexcel"); header("Content-Disposition: attachment; filename=bulkUpdate.xls"); $out = ''; $out .='code'; $out .="\t"; $out .='sold'; echo $out; exit; in above code xls file is generated but getting output from second row .i want it from first row |
|
Hi all, I am creating an cms/admin where I want a drop down consists of list of product and an another drop down consists of list of sub products. On selection a product ,the corresponding lists of sub product will be generated in sub product drop down. using javascript I … |
|
change password.php [CODE] <html> <head> <title>Change Password</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="pwd.css" rel="stylesheet" type="text/css"> <link type="text/css" href="menu.css" rel="stylesheet" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="menu.js"></script> </head> <body> <style type="text/css"> #menu { top:5px; margin:0 auto; width:80%; left: 40px; } #copyright { margin:100px auto; width:80%; font:12px 'Trebuchet MS'; color:#bbb; text-indent:20px; padding:40px … |
|
[CODE]<?php require_once 'library/config.php'; require_once 'library/functions.php'; if(isset($_SESSION['sql_view'])) { $sql_view=$_SESSION['sql_view']; $result = dbQuery($sql_view); extract(dbFetchAssoc($result)); }else { //header('Location: index.php'); } $FileName ="view.doc"; header('Content-Type: application/word; name="word"'); header('Content-Disposition: attachment; filename="' . $FileName . '"'); header('Content-Type: application/word;'); ?> <!--<form id="frmSample" name="frmSample" method="post" action="" enctype="multipart/form-data" onsubmit="return ValidateForm()" >--> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="11%"></td> <td … |
|
How can create xml file using data fetched from database... plz help me.. |
|
xml file [CODE] <?xml version="1.0"?> <tiltviewergallery> <photos> <photo id="10" imageurl="images/logo/cb0dc425946c764543897decab7cca56.jpg" linkurl="gallery.php?id=2&gid=10"><title>ascsaas</title><description>sacsac</description></photo> <photo id="11" imageurl="images/logo/1896949a52b7685ebec8bc01862d6d68.jpg" linkurl="gallery.php?id=5&gid=14"><title>sssa</title><description>sassa</description></photo> </photos> </tiltviewergallery> [/CODE] php code [CODE] $sql = "SELECT `id` FROM `galleryimg` WHERE `id`=$id"; $result = dbQuery($sql); $row = dbFetchAssoc($result); //$linkurl = 'gallery.php?id='.$row['id']; //$imageurl = 'imgs/'.$catImage; global $srvRoot; if (file_exists($srvRoot.'gallery.xml')) { $tiltviewergallery = simplexml_load_file($srvRoot.'gallery.xml'); foreach($tiltviewergallery->photos->photo … |
|
[CODE] <html> <form> <table> <tr> <td width="172" class="label" > </td> <td class="content" colspan="3" > Grwt <input name="grWeight" type="text" class="box" id="grWeight" size="20" maxlength="255" /> ntwt <input name="netWeight" type="text" class="box" id="netWeight" size="20" maxlength="255" /> crwt <input name="crWeight" type="text" class="box" id="crWeight" size="20" maxlength="255" /></td> </tr> </table> </form> </html> [/CODE] In above code i want … |
|
[CODE]<form action="" method="get" name="form"> </form><select name="list1"> <option value="MUM">MUM</option> <option value="DEL">DEL</option> <option value="BAN">KOL</option> <option value="HYD">HYD</option> </select> <select name="list2"> <option value="MUM">MUM</option> <option value="DEL">DEL</option> <option value="BAN">KOL</option> <option value="HYD">HYD</option> </select> <input name="code" type="text" />[/CODE] In above code there two list boxes . I want to show ,if I select MUM from 1st list box … |
|
[CODE] <script language="javascript"> function add() { var divTag = document.createElement("div"); divTag.id = "div"; //alert(divTag.id); //divTag.setAttribute("align","center"); //divTag.style.margin = "0px auto"; var j=1; divTag.className ="dynamicDiv"; var v1 =document.getElementById('ttlBoxes').value; var v2 =document.getElementById('boxno').value; var d1=parseInt(document.getElementById('ttlBoxes').value); var d2=parseInt(document.getElementById('boxno').value); if(v1!=""&& v2!="") { if(d2<d1) { divTag.innerHTML ='<br /><table width="101%" border="0" align="center" cellpadding="5" cellspacing="1" class="entryTable" ><tr ><td width="150" … |
|
<script language="javascript"> function add() { var divTag = document.createElement("div"); divTag.id = "div"; //alert(divTag.id); //divTag.setAttribute("align","center"); //divTag.style.margin = "0px auto"; divTag.className ="dynamicDiv"; var v1 =document.getElementById('ttlBoxes').value; var v2 =document.getElementById('boxno[]').value; var d1=parseInt(document.getElementById('ttlBoxes').value); var d2=parseInt(document.getElementById('boxno[]').value); if(v1!=""&& v2!="") { if(d2<d1) { divTag.innerHTML ='<br /><table width="101%" border="0" align="center" cellpadding="5" cellspacing="1" class="entryTable" ><tr ><td width="150" class="label" ><select id="boxtype[]" … |
|
[CODE] <script language="javascript"> function add() { var divTag = document.createElement("div"); divTag.id = "div"; //alert(divTag.id); //divTag.setAttribute("align","center"); //divTag.style.margin = "0px auto"; divTag.className ="dynamicDiv"; var v1 =document.getElementById('ttlBoxes').value; var v2 =document.getElementById('boxno[]').value; var d1=parseInt(document.getElementById('ttlBoxes').value); var d2=parseInt(document.getElementById('boxno[]').value); if(v1!=""&& v2!="") { if(d2<d1) { divTag.innerHTML ='<br /><table width="101%" border="0" align="center" cellpadding="5" cellspacing="1" class="entryTable" ><tr ><td width="150" class="label" ><select … |
|
[CODE] <script language="javascript"> function add() { var divTag = document.createElement("div"); divTag.id = "div"; //alert(divTag.id); //divTag.setAttribute("align","center"); //divTag.style.margin = "0px auto"; divTag.className ="dynamicDiv"; var v1 =document.getElementById('ttlBoxes').value; var v2 =document.getElementById('boxno[]').value; var d1=parseInt(document.getElementById('ttlBoxes').value); var d2=parseInt(document.getElementById('boxno[]').value); if(v1!=""&& v2!="") { if(d2<d1) { divTag.innerHTML ='<br /><table width="101%" border="0" align="center" cellpadding="5" cellspacing="1" class="entryTable" ><tr ><td width="150" class="label" ><select … |
|
I have problem to insert value of fields as checkbox checked . please help me.[code]<ol > <?php $i = 0; $sql="SELECT * FROM import_master WHERE mawb='".trim($_GET['id'])."' ORDER BY conzName"; $rs=mysql_query($sql); while($row = mysql_fetch_array($rs)) { ?> <li> <div><table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" class="entryTable"> <tr> <td class="label" > <input type="checkbox" id="chb[]" … |
|
[B]Hi... I want to add a text field inside a div(div with id "my_div") tag dynamically(By clicking "Add" button). The code below shown is adding the new textfield after the submit button not inside the "my_div" div . [CODE] <html> <head> <script language="javascript"> function add() { var divTag = document.createElement("div"); … |
|
hi, I have problem while developing web application in php. I have one text box in which enter total nos.and in one div there are other text box and dropdownlist. i want to show div repeatately until match the value of first text box to text box in that div … |