355 Topics
|
|
Hi there , How to retain value file upload input in codeigniter? Please give me an idea? i am using below one: but not working.. <input type="file" name="image1" value="<?php echo set_value('image1')?>" class="form-control" style="width:300px;" id="dealImg"> |
|
Can anyone help me out ?....... I have written a code for a form. the first five fileds in the form must be filled automatically by capturing the user id from login page. I have been able to capture the data and print it on the screen But, Iam not … |
|
Hi i need assistance on how i can pass a value from a table to update the other table for example. VehicleDetailsTable with Fields ( Milage, Description, RegNumber etc) VehicleMilageTable with fields ( Regnumber StartingMilage, Endingmilage etc) EndingMilage is used to update Milage in VehiucleDetailsTable. |
|
Hello, I have created a dropdown lists using javascript dynamically. But i am not able to get the selected option values of that dropdown lists. could anyone please help. |
|
Hi Anyone can pls help me with a unique random number generator of length 3, prefixed with values from DDMMYYYY (e.g. for today's date 25062015001)? |
|
Hi, I am trying to create form having field textbox. I typed a variable say $a = 10 in the textbox.What I want is to print the value of the variable. Let me know the steps. Thanks |
|
Greeting to all! Thank in advanced for help I wanted to retrieve a value in text area using javascript and store it into s variable so that i can pass the variable as parameter for AJAX purpose. This might be a stupid question.... and i'm sorry about that~ besides, thank … |
|
Hello, just making an update link using pop up box but dont know how would i be able to get the id though here is my code <?php $get_query = "SELECT * FROM shortenedurls WHERE uid=".$id; $query = mysqli_query($connection, $get_query); while($record = mysqli_fetch_array($query)) { $url = $record['url']; $longurl = $record['longurl']; … |
|
I am trying to pass a value from a hidden input using ajax but console says whatever im doing is not a function `Uncaught TypeError: "#name".val is not a function page.php:35` which is this line : `var name = ("#name").val();` html: <input type='hidden' value='$newname' id='name'> ajax: var name = ("#name").val(); … |
|
Swap 2 number without using third variable code do not use temp variable for swapping if the code was useful please let me know [code]#include <stdio.h> void main() { int a,b; printf("enter number1: ie a"); scanf("%d",a); printf("enter number2:ie b "); scanf("%d",b); printf(value of a and b before swapping is a=%d,b=%d"a,b); … |
|
I have array like this stdClass Object ( [0] => stdClass Object ( [field_id] => 10 [value] => 46426 [value_integer] => 0 ) [1] => stdClass Object ( [field_id] => 9 [value] => 1987 [value_integer] => 0 ) [2] => stdClass Object ( [field_id] => 8 [value] => 558/65 [value_integer] … |
|
I have 1 gridview with big table...colums:k,mi,ib and 3 textbox...texbox1 is first column,textbox2 is second and textbox3 is third! I want when i type some number in textbox1(That number is K),i want to textbox2 and textbox3 give me value of mi and ib in same row as k...but i got … |
|
Dear all, i am trying to design a purchase form in which i wish to use jtable , when i press any character into the cell it should open a jlist with populated values from database and which let me select only one item from there and get the selected … |
|
Hello group, I've decided I want to take some classes in SQL, to better understand how to write queries. In looking online for where to turn to for this kind of training, I also see classes to prep for certification. I'm curious of what the value to my employer would … |
|
Please ,could you explain this sentence The wins should be input in a parameter-less value returning function that returns the wins to the main function returning function just returns value and does not print message , right ? #include<iostream> using namespace std; int wins(int wins) { cout<<"Please input the number … |
|
ok, so this is a bit complex, I'm writing a bit-field function using a template, which can consist of: field( Template, Value ) field( [1,7,15] ,255 ) #int representation... field( ['1','3','4'] ,255 ) #bit representation... #>>> [1,7,15] field( [1,7,15] ,[1,7,15] ) field( ['1','3','4'] ,[1,7,15] ) #>>> 255 so what I'm … |
|
Hi, I have a string that can look a little different from time to time. String Example 1: ((823584X80X998.NAOK == "1")) String Example 2: ((823584X80X1001.NAOK == "1" or 823584X80X1001.NAOK == "2" or 823584X80X1001.NAOK == "3")) And I have this array with matching key (i've shortened the array for readability) ( … |
|
Hi, For a dropdown , I display from one table, While Editing How to show the selected value in that dropdown. <select name="dropdown"> <option value="">--Select--</option> <?php $a=mysql_query("Select * from student whre status='0'")or die(mysql_error()); $b=mysql_num_rows($a); if($b >0) { while($row=mysql_fetch_array($a)) { ?> <option value="<?php echo $row['st_id']?>"><?php echo $row['name'] ?></option> <?php } } … |
|
foreach (DataRow udr in udt.Rows) { defaultval = udr["result"].ToString(); cmb.SelectedText = defaultval; cmb.Select(); cmb.DataSource = ddtable; cmb.DisplayMember = "ListVal"; cmb.ValueMember = "DetailID"; } here problem is that i want to put defaultval at selectedindex 0,here default value is taken from anothe table. i mean i have send a combo selected … |
|
This is not my code/script all hardwork came from Codelair Full script located [here](http://doheth.co.uk/codelair/php-mysql/scoreboard) I really hope i posted this in the correct section because im unsure which code will work best for this. As the name for the script gives this away it is a scoreboard. allows admin to … |
|
I am trying to update Varbinary(Max) column data with Null value. But unable to do so. Error "**Implicit conversion from data type varchar to varbinary(max) is not allowed. Use the CONVERT function to run this query.**" my code Private Sub ButRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButRemove.Click … |
|
Hi everyone, I seem to be having a bit of a weird problem with sockaddr / sockaddr_in structs... I want to manually assign the value of an IP address to the sockaddr_in struct, and I've been using memcpy memcpy (&(mIp4sa->sin_addr.s_addr), "127.0.0.1", INET_ADDRSTRLEN); But when I go to print out the … |
|
Hello, I created a query insert query everything is in right order but dont know whyy its not working function submit_report() { global $connection; if(isset($_POST["submit"])) { $id = 215; $name = "myname"; $uname = "myusername"; $date = $_POST['date']; $campaign = $_POST['campaign']; $t_leads = $_POST['t_leads']; $c_leads = $_POST['c_leads']; $open_acc = $_POST['open_acc']; … |
|
I have three text boxes. (1) Start time | (2) End Time | (3) Shift - Read Only I want to automatically set the value of txtShift to DAY or NIGHT only depending on txtStart and txtEnd. Am not requesting of a specific/perfect code for this problem, just want you … |
|
Hello, I am developing a system where in I want to use 2 USB Barcode Readers attached to a single PC. I want to capture input from both of the readers. When barcode is showed against a barcode reader, I want to store that value in a variable and then … |
|
Hi everyone, my code is here [Click Here](http://codepen.io/anon/pen/XbdBLm) How i can get value of php variable in javascript, i have an div id=windowhead where i want to show username which i clicked <a class='users' href='#' >test</span></a> <a class='users' href='#' >test2</span></a> <a class='users' href='#' >Max</span></a> <a class='users' href='#' >John</span></a> <div id="warp"> … |
|
This is a program that will calculate stockin expenses and other but the problem is whatever value i entered in the cement, bricks and etc(line 120-line155) part it keeps on showing zero import Tkinter Total_StockIn = 0 Total_Expenses = 0 def win1(): global root global s # this is the … |
|
In parent page i have table with dynamic adding row and each row have text box and button to open pop up window. After pop up window open there are some checkboxes and when user select of them the value will be send to text box in parent page. this … |
|
I am trying to solve a simple problem. But I am stuck by a simple problem I am confused by "context" in c#. So for this simple problem I am solving Euler problem 1. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; using System.Timers; namespace Euler … |
|
hi, I have dgv1 that contains amount column, and dgv2 that also have amount aolumn. I have following code to sum total vlaues of dgv1. but i want display both column vlaues from both dgv in to single textbox. how can i do this? Dim total As Integer For Each … |
The End.