- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
18 Posted Topics
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 | |
Re: for two dropdownlist u have to use ajax on the onchange event of first dropdownlist. | |
Re: <form id="changepwd_frm" action="con_change_pwd.php" method="post"> <input type="hidden" name="id" value="<?php echo $_GET['id'];?>"> <?php $con= mysql_connect("localhost","betaonly_ow","mql4xC1a8FNp"); if(!$con) { die('could not connect: ' . mysql_error()); } mysql_select_db("betaonly_ow", $con); $id=$_GET["id"]; //echo $id; $query="select * from ccs_user_registration"; $result=mysql_query($query) or die ("error in query"); $row=mysql_fetch_array($result); $id=$row['id']; ?> <table width="485" height="233" align="center" > <tr> <th width="500" colspan="2"><font color="#FF2424" … | |
[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[]" … | |
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 … |
The End.