Jump to content

harikr

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

harikr's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have the data in the same file which i am exporting to excel with that headers. what i want is something like i want the data to be populated in two spreadsheets in excel. i am not sure whether any headers needs to be set to pass the data to two spread sheets. my code looks like this. <?php header("Content-Type: application/vnd.ms-excel"); header("Content-Disposition:attachment; filename=ExcelExport.xls"); echo "<form name = 'details' action = '' method = 'post'> <table border='1' cellspacing='1' cellpadding='0' align='center'> <tr align='left' style='font-family: Arial;'> <th>Comments</th> </tr> </table> </form>"; ?>
  2. Hi everyone, I already have a code which exports the data to single worksheet in excel. But i also need to export the data in multiple worksheets within a single excel.Please anyone help me out. This is how i am exporting to a single spreadsheet in excel. header("Content-Type: application/vnd.ms-excel"); header("Content-Disposition: filename=ExcelExport.xls");
  3. Sorry man my problem is it is not producing results for that string alone eventhough there are results. For other strings it is working fine
  4. hi, I am sending this string "ratings&reviews-projects" and trying the query for this string.I have encoded this string using encodeURIComponent() in javascript and it is sending the string perfectly to my php script. But i dont know why my query is not displaying anything evnthough the query has results. Here is my code, <?php $prod=$_REQUEST['listPrdMenu']; $result=mysql_query("SELECT name from components WHERE product_id=(SELECT id from products WHERE name='$prod')"); ?> <select name="compDetails[]" id="compDetails" size=7 class="style7" multiple > <option value="">- Select -</option> <?php while ($row = mysql_fetch_row($result)) { echo "<option>{$row[0]}</option>\n"; } ?> </select>
  5. Thanks man encodeURIComponent() makes it to work fine
  6. Hi , Please somebody help me out of this. I am sending this variable var comp="QE_QS8_Sprint #2"; to my php code through ajax call by sending like this. var queryString = "?compDetails=" + comp; What happens is when i receive the compDetails through GET i receive only this "QE_QS8_Sprint". Please anyone tell me why is it so and how can i send it so that i receive the full string. I need to send it only through GET and not POST
×
×
  • 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.