81 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Mr.M

Hi Dw. I'm trying to read a text file. This text file has a multiply lines and what I want is that I want to separate each line or should I say I want to split each line (chop it) so that I will be able to assign these fields …

Member Avatar for Mr.M
0
591
Member Avatar for Papa_Don

Group, I'm using TOAD to query the Oracle database. My better expertise is in VB.net. I have very little SQL experience. My question: Can I create a variable in TOAD/SQL to prompt for a date(s)? Here is what I want to do: Question 1: Enter Beginning Date (user to enter …

Member Avatar for Papa_Don
0
3K
Member Avatar for Tycellent

Hey everyone, Got 2 questions here that i'm hoping will be answered. Say i have 2 variables int iValue; int iValueArray[300]; and later on init. them in the constructor Banana::Banana(): ival(0), ivalArray() {} 1. What would the ivalArray() indicate? Would it be the same as initializing every element to null/empty? …

Member Avatar for Tycellent
0
323
Member Avatar for baloch123

Hi Hope,everyone is doing good out there. I need some help regarding which strategy to use for one of my projects. Here are the project details I want to generate PDF forms, by gathering data from user.There are different questions to ask and based on each answer,we will ask next …

Member Avatar for baloch123
0
733
Member Avatar for imti321

i am missing something <?php $target = "images/dars/"; $target = $target . basename( $_FILES['uploaded']['name']) ; $ok=1; if (file_exists($_FILES['uploaded']['tmp_name'])) { echo "Sorry, file already exists."; $Ok = 0;} //This is our limit file type condition if ($target!=="image/jpg") { echo "You may only upload jpg files.<br>"; $ok=0; } //Here we check that …

Member Avatar for imti321
0
201
Member Avatar for terence193

I am trying to make a function that rounds number.. I declared the function above the main and voided it Then I recalled the function in the program and listed the variables needed in brackets and then I wrote the function I can't work out what is wrong. [ICODE]#include<stdio.h> #include<math.h> …

Member Avatar for panpwintphyu.loo
0
237
Member Avatar for BogdanCov

Hello, guys, I encountered a big problem. There is a genereted matrix of buttons: private void Single_Load(object sender, EventArgs e) { //code here for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { //a lot of working code here b[i, …

Member Avatar for BogdanCov
1
218
Member Avatar for mavtcr

Friends I have a problem in totalling the variable .When I use my code I am not getting the answer as I expected. My code is as below Jsharbal = Format$(TRS("Sharbal"), "#,##0.00") Jworkbal = Format$(TRS("workbal"), "#,##0.00") Jsalabal = Format$(TRS("Salabal"), "#,##0.00") Jprofit = Format$(TRS("Prflbal"), "#,##0.00") CRTOTAL = (Val(Jsharbal.Caption) + Val(Jworkbal.Caption) + …

Member Avatar for mavtcr
0
246
Member Avatar for davidjennings

Hi all, I am working on the following code and I am having a problem with defined variables. On the output on the Submitted and Username Inputs as being undefined. I have added $username = (isset($_POST['Username'])) ? $_POST['Username'] : ""; at the start of the function but not suppressed. Thanks …

Member Avatar for davidjennings
0
349
Member Avatar for CodingCabbage

I'm starting my Computing project and am using Python linked via sqlite3 to a database. As part of my project I shall be searching for maths books in the database via name or module etc. I wish to display the results on a GUI in python so need to set …

Member Avatar for Gribouillis
0
353
Member Avatar for mmcdonald

I'm having difficulty opening message content for each unique message because I'm struggling to get the PHP variable `$message['id']` to a url defined in a javascript file. My foreach loop that echos out all of the messages for the user: foreach($mess_data as $message){ echo' <tr '.(($message["read"] == '0') ? 'class="unread"' …

Member Avatar for htmlearner
0
2K
Member Avatar for ss125

Please can anyone explain clearly.... what is the difference between session and httpcontext.current.session and application variables? Thankyou in advance...

Member Avatar for ss125
0
221
Member Avatar for patk570

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 …

Member Avatar for LastMitch
0
3K
Member Avatar for xHellghostx

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 …

Member Avatar for tinstaafl
0
305
Member Avatar for mayobrains

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 = …

Member Avatar for mayobrains
0
207
Member Avatar for qwertpink

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[] = ' …

Member Avatar for qwertpink
0
371
Member Avatar for Benderx

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: …

Member Avatar for JamesCherrill
0
353
Member Avatar for naui95

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

Member Avatar for JOSheaIV
0
264
Member Avatar for tet3828

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: …

Member Avatar for tet3828
0
183
Member Avatar for websols180

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; }

Member Avatar for websols180
0
298
Member Avatar for persianprez

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 == …

Member Avatar for persianprez
0
158
Member Avatar for lesliebielski

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 …

Member Avatar for lesliebielski
0
194
Member Avatar for Pyler

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; …

Member Avatar for Rashakil Fol
0
248
Member Avatar for drumichael87

I am developing in WordPress plugins and I would like to know.if someone could guide Me with this issue. I would like to know what's the easier method.of declaring a global variable that I can use. As of now I am not using classes, mostly because i'm not sure how …

Member Avatar for drumichael87
0
177
Member Avatar for stephen_UK

Ideally I would like to take a value entered from an Option List and use it in a linked program before the form is submitted, The value would be used in a select search so that the operator then knows what to format of data to enter in the next …

Member Avatar for stephen_UK
0
194
Member Avatar for Parloverde

So I'm currently making program for my year 12 IPT assignment. It's a maths game for Year 4's and 5's. I need to carry a variable throughout the entire project (across forms) so I can easily specify what level the user is playing and how many questions they want to …

Member Avatar for Parloverde
0
2K
Member Avatar for boiishuvo

That is a little homework for myself. I was trying to make a simple program that you entry your name (acts as a password) and if it's on the list then you may access, otherwise (aka else) you're not allowed to access. The problem is I can't put more than …

Member Avatar for zeroliken
0
184
Member Avatar for nexocentric

I'm having a small problem with a variable in one of my PHP scripts. The variable is `$isSubMenu`. It gets set using a function that runs recursively called createNavigationMenu. However, even though I have set it, the interpreter keeps telling me that the variable is undefined. I really don't know …

Member Avatar for nexocentric
0
560
Member Avatar for yanwick

Hi, Im using session variables and when passing from one page to another with a target="_top" the session variables are erased. Is there anyway i can go around this problem ? Any idea will be greatly appreciated. Thank you

Member Avatar for yanwick
0
204
Member Avatar for dendenny01

How can I transfer the values inserted in <input type="text" name="num1"> to radio button <input type="radio" name="rep_num1" value="">On submit of form. Actuall when user insert the value or text in the textbox the value of the text box should replace or transfer to the value in radio button when user …

Member Avatar for Topi Ojala
0
272

The End.