Jump to content

sowna

Members
  • Posts

    31
  • Joined

  • Last visited

  • Days Won

    1

sowna last won the day on December 29 2012

sowna had the most liked content!

Profile Information

  • Gender
    Not Telling

sowna's Achievements

Newbie

Newbie (1/5)

3

Reputation

  1. Based on the dropdown values, you want to redirect users to different page, right? I consider you will button in the form. On clicking the button, call below function... function redirect() { if(document.getElementById('select_17').value == 'Ja' && document.getElementById('select_18').value == 'Ja') { window.location.replace = 'both parents url'; } else if(document.getElementById('select_17').value != 'Ja' && document.getElementById('select_18').value != 'Ja') { window.location.replace = 'both parents not coming url'; } else { window.location.replace = 'one parents coming url'; } }
  2. what error you getting? or how you saying ur function is not working as expected?
  3. Thanks I forget to tell one thing, it not only contain email id also some name and numbers, Example: this is test for checking the tagging for @vinodkumar@yahoo.com and @kumar@gmail.com tested by @Siva kumar roll no @12345678 so the output should be array[0] = vinodkumar@yahoo.com array[1] = kumar@gmail.com array[2] = siva kumar array[3] = 12345678 And i want to split the same using javascript also...
  4. Hi i am want to split the below string String: this is test for checking the tagging for @vinodkumar@yahoo.com and @kumar@gmail.com and the output should be, array[0] = vinodkumar@yahoo.com array[1] = kumar@gmail.com
  5. check whether your query executed without error, replace the below code and check it.... $result = mysql_query($query1) or die(mysql_error());
  6. Just replace combo box with text field...and modify the code as per your requirement...
  7. As per your code, first point will work correctly if you have id and field column exists in the field table. Can you show me the fields in that table... For 2nd point, you can store values using comma separate ids, like, if you select two options whose ids will be 10 and 23 then in the database store 10,23. You can use implode() to convert array into comma separated string...
  8. replace $photos as $photo in the loop, like this foreach ($photos as $photo){ echo $photo->caption; echo $photo->category(); echo "</br></br>"; }
  9. tenantID is empty here... check the tenantID variable...
  10. using session_destroy() will destroy entire session, better use like this if(isset($_SESSION['SESS_STATUS']) && $_SESSION['SESS_STATUS'] != '') { $status = $_SESSION['SESS_STATUS']; echo $status; $_SESSION['SESS_STATUS'] = ''; } Even i too have this issue and solved this issue like above...sometimes unset is not working on session...
  11. seems you missing semicolon in the first two lines, please find below code which i have modified little <?php $sql="select itemno,itemname from item"; $q=mysql_query($sql); echo "<select name=\"test\">"; echo "<option size =30 ></option>"; while($row = mysql_fetch_array($q)) { echo "<option value='".$row['itemno']."'>".$row['itemname']."</option>"; } echo "</select>"; ?>
  12. You can use ajax for this....call ajax when first combo1 is selected and based on this value fill the second combo... Again call ajax for the second combo and fill the value in the textbox based on the name you selected in the combo box... You will get many sample by searching google (populating dropdown using php/mysql) or refer below url http://buffernow.com/demo/cascadedrpdwn/
  13. I think combining * and aggregate function in select query together will not give right answer... You can use like this, to get sum of number5, $sql_select = "SELECT SUM(NUMBER5) from Data where userid='" . $param['userid'] . "' order by timestamp asc"; or if you want to find sum of all users, you can use like this... $sql_select = "SELECT userid, SUM(NUMBER5) from Data group by userid";
  14. simply you can use like this, $result = mysql_query("SELECT meta_value FROM wp_usermeta WHERE user_id=1 and meta_key='rcp_status'"); $meta_value = mysql_result($result,0);
  15. Thanks sen...i will try and see if i can get the report....
×
×
  • 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.