190 Topics
| |
Hi everyone and thanks for reading! I use JavaScript to create sets of text boxes on the fly. I also have a hidden counter in a text box on the form which I also post to my PHP script. This hidden counter is how I tell PHP how many text … | |
The following code gave error on gcc compiler int main() { extern int a; printf("%d",a); return 0; } static int a=5; But when static is removed from int a then it runs with no errors..Can someone please clear the doubt?? | |
Hey guys, below is my code, I am working on trying to PASS Variables to a popup window. I have it to where it show the embed window(which is blank) link, the title(which is blank) and instuctions(which is blank), but I cannot get it to pass the variables of what … | |
So I am working on a program and it has two seperate classes.. One of them contain the forum layout and the other contain some calculations and totals.. The problem is that the class with the calculations contain a constructor and other functions that I need to pass from this … | |
I'm using Wordpress and a plugin called Testimonials Widget which creates a post type of its own for rotating testimonials with testimonialswdiget_widget() or a list with testimonialswidget_list(). I don't have all my code yet because I can't even get this part to work yet -- <?php if ($all_the_tags); $all_the_tags = … | |
1) On the page_load event, Bind the dropdownlist to a database using SqlConnection conn = new SqlConnection("blablabla"); SqlDataAdapter ddAdapter = new SqlDataAdapter("SELECT * FROM products", conn); DataSet ds = new DataSet(); ddAdapter.Fill(ds); 2) On the DropDownList1_selectedIndexChanged, - When user select a value (the productName) from the dropdownlist - All the … | |
I also have a string stored in a session variable but can't figure out how to get it back out again... THIS CODE IS PAGE 1. <form action="page1.php" method="post" id="register-form" novalidate="novalidate"> <b>Postcode:</b> <input type="text" name="search" /> (required)<br /> <?php @session_start(); if (empty($_POST['search']) && isset($_POST['submit'])){ echo'Please enter postcode i.e. ZZZZ'; } … | |
new to I.T. need help about the problem analysis ,algorithm design, formatting the output package gasolinestation; import javax.swing.JOptionPane; public class GasolineStation { public static void main(String[] args) { float total, money; String yesno; JOptionPane.showMessageDialog(null, "Welcome to Gasoline Station!"); do { String select = JOptionPane.showInputDialog(null, "1 = Diesel .................... $ 39.00\n" … | |
I am using jquery.filedrop.js to create a HTML5 drop box for users. Currently I have it working about 2/3s the way I want it to. The company does yearly conferences, and I have a file path 'file/path/to/conferencefiles' where I save media (docs, images, vids, etc) based on the YEAR of … | |
Hi Folks, I'm brand spankin' new to developing but was assigned a web app to develop in ASP.NET 4 with C#. I am using JavaScript for validation. The problem I'm having is that the date validation alert box that pops up displays a lot of unneccesary time and timezone information, … | |
Hi all, Im trying to add sizes to the cart. However, i cant pass size over. please help. $result = $db->query($sql); $output[] = '<ul>'; while ($row = $result->fetch()) { $output[] = '<br><font color="837F77"size="6">'.$row['name'].' </font><br></br> S$'.$row['price'].'<br></br>'; $output[] = '<select name="size"> <option disabled="disabled" selected value="NA" >Size</option>'; if ($row[small_qty]== 0){ $output[] = ' … | |
I have a flat file (template) where I want to replace variables based upon value in another file (csv). Variables in them template are named %VAR_Xz% The values are in the csv file and X is field 0 of each line and y field 1 and up. Example: Badidas, 13.00, … | |
Hi everyone, I was writing a program to show visually some vectors I was implementing with Java but I ran into an issue. My program has 3 classes, a driver, a Vector class and a VectorDisplay. The driver and vector class are self explanatory, but here is the code. Driver: … | |
I've been trying to write a class called Point, with a file Point.cpp including a header file Point.h . I tried to set a global variable of type Point called ORIGIN, however I get an error message saying "error: ‘ORIGIN’ does not name a type" Point.h is as follows: [ICODE] … | |
Hi there, how can I split a string into variables?? better: string s = "one,two,three,four"; // Split string on character comma. string[] words = s.Split(','); foreach (string word in words) { Console.WriteLine(word); } how can I put an incrasing variable (for n splitted words) instead of 'Console.WriteLine(word)' thanks | |
I have two forms that share data between eachother. 1. In Designer view of Form2 I establish a public variable. public bool isMyFormValid 2. When I attempt to access the variable in Form1 like this... if (Form2.isMyFormValid = true) { //do this} C Sharp no likey... I get this message: … | |
Thanks for the support! I have been working on a program with 7 classes, one the main and one starts the program, and I have been troubleshooting for a few hours trying to see why for one of the output constructors I'm not getting the classes to update the output. … | |
I want to know how I can access the data stored in these variables...but I have no idea what N0$ for example stands for and how to extract the data from there into a register, for example. N0$: .byte DASH,DASH,DASH,DASH,DASH,END ; 0 N1$: .byte DOT,DASH,DASH,DASH,DASH,END ; 1 N2$: .byte DOT,DOT,DASH,DASH,DASH,END … | |
I'm creating a python rest api wrapper to a website, i created a file called api.py, then used called the api using [requests](http://docs.python-requests.org/en/latest/), like so: `requests.get('http://example.com/api', auth=('username','apikey'))` How to create a class nammed Class1, then put the url in it using [urlparse](http://docs.python.org/library/urlparse.html), then create another file called example.py, call the … | |
I'm new to MSSQL though I have some grounding in MySQL. At the moment, I'm trying to use a variable. Reduced to simpler form, my query to search people with 'and' in their name is: DECLARE @MyVar nchar; SET @MyVar = '%and%'; SELECT name,email FROM db.dbo.users WHERE name LIKE @MyVar; … | |
consider public class awah{ private int x=0; private int y; private int w; public awah(int width){ w=width; } public void sety(){ y=(Int)(Math.random()*4);}//meth1 public int gety(){ return y; } public void setx (){ x+=this.gety(); } public int getx(){ return x; } public void showUpdate(){ System.out.println(x); } }//end of awah public static … | |
is there a way that I can do this? I want to, call a java function from an HTML page and set a varaible, (function 1) then switch to a new web page and read the same varaible that was set, (function 2) I would like to do this in … | |
Ok So I have two classes that share the same instance variables, the variables have been declared in 'Dog', however I cannot seem to get the instances to work within my other class 'DogChorus'. Therefore what must I do to get the instances to work within 'DogChorus' constructors? The variables … | |
'm trying to pass a String from one class to another class but the result I'm getting is 'null'. I want to pass the String username from LoginFrame to HomeworkFrame; HomeworkFrame: public void loadSubjects (){ String item; try{ System.out.println(username); Scanner f = new Scanner (new FileReader (username + " " … | |
hi; i am facing this trouble in paginatoin " Notice: Undefined index: start in F:\wamp\www\Cybertraders\demo_paging1.php on line 16 " $page_name="demo_paging1.php"; $start=$_GET['start']; > the upper line is line 16 if(strlen($start) > 0 and !is_numeric($start)){ echo "Data Error"; exit; } | |
I have a variable variable defined, suppose: $array[1] = Hello World; $i = 1; ${"name" . $i} = $array[1]; I then have the following: $val1 = "Hello World"; However when I try to compare $name1 to $val1, they are never equal. I've tried all of the following: if ($name1 == … | |
How do i add variables from $var1=urlencode(''.$var1.''); on page one.php and use the values from the above variables on page two.php $var1 = $criteria['".$var1."']; if($var1=='') $var1 = ''; Page two is included in page one and I am trying to use the same variable value. | |
What I want to do is use my variable in creating a lists name. I'm not sure if that's possible, but if it is my goal is to have it look something like this: i = 3 asdf = ['00','34','43','61','35','64','25'] asdf + i = [] # So in this case … | |
I am in beginning Java and using Dr. Java to write my programs. I am trying to write an array that user input sets up the length of the array(#of students) that character grades are stored in. It is suppose to ask if you want a full print out, to … | |
I wanted to write a simple program that uses classes but I've been running into errors. Anyone have a clue as to what is wrong with my code because I can't seem to figure it out. #include <iostream> #include <iomanip> #include <cmath> using namespace std; class cone{ private: double radius; … |
The End.