190 Topics

Member Avatar for
Member Avatar for Papa_Don

Hi Group, I'm using the split function for the very first time. I understand what it's doing. However I don't know how to output each individual word into a specific variable. As an example, the string is "Dickerson Tile Company". I have defined 7 variables to accept up to 7 …

Member Avatar for Reverend Jim
1
81
Member Avatar for Papa_Don

Hi Group, I'm using the split function for the very first time. I understand what it's doing. However I don't know how to output each individual word into a specific variable. As an example, the string is "Dickerson Tile Company". I have defined 7 variables to accept up to 7 …

Member Avatar for Reverend Jim
0
84
Member Avatar for milan.sabic

I am getting a screen resolution through XMLHttpRequest. I am opening a show_content.php file with *xmlhttp.open* that contains screen resolution variables which I pull with the GET Method. xmlhttp.open("GET","show_content.php"+queryString,true); This works! and showing this file with the variables in a following div <div id="txtResolution"></div> This part works as well! PROBLEM: …

Member Avatar for AndrisP
0
589
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
588
Member Avatar for Lonestar Jack

session start has been evoked. I need the value of $v. $key = $_SESSION['sys_var_key']; $v = $_SESSION[$key]; echo '<br>key =>'.$key; echo '<br>value =>'.$v;

Member Avatar for Gideon_1
0
171
Member Avatar for AutoPython

!USING PYTHON 3.1! Hello DaniWeb! Today I'm going to teach you a cool variable trick that I learned. So here's an example: [CODE] a, b, c = input('?x?x?: ').split('x') [/CODE] Now let's input something like: [CODE] >>> a, b, c = input('?x?x?: ').split('x') ?x?x?: 1x2x3 [/CODE] Now, variable 'a' is …

Member Avatar for 111100/11000
6
565
Member Avatar for UKnod

In the good old days of VB6 I used to use this technique to communnicate between programmes, without using external files. In fact I could even set off the textbox interupt in the running programme so as it could do something once triggered. This being said, I can't get it …

Member Avatar for UKnod
0
272
Member Avatar for gangsta gama

Hey guys! I have a quick question that I think is a simple mess up. I am trying to make a console word game in c#, and I have different classes, and a main class that calls those classes. I first have the Player class, and the CreateCharacter class. My …

Member Avatar for JamesCherrill
0
250
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 jrotunda85

I'm not sure if this should be in this forum but I figured it was a good starting place. I am creating a database that, among other things, allows users to input a store's location (e.g. name, address, etc). Once a store has been added, there is an ability to …

Member Avatar for Yong woon
0
573
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 jean_5

I have the following javascript code var list = [ { Date : '2014-12-31 12:23:43', DateStart: '1980-12-30 23:43:42', Name: 'Kate', ... ... }, { Date : '1978-05-21 23:43:65', DateStart: '1973-04-06 12:34:09', Name: 'John', ... ... } ]; And the following code to verify for regex pattern: for (var i in …

Member Avatar for Troy III
0
249
Member Avatar for Gribouillis

Sometimes you want the value of a variable to be related to its name in the source code. For example, the variable x should have the value "var x". This is especially useful when you perform symbolic computations with python (with the sympy module for example). In standard python, the …

Member Avatar for Gribouillis
0
440
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 terrymold

Hi everyone I have a script which contains contains mostly JavaScript. After various bits of user input, it ends up with an array which contains 6 times (hh:mm) and these can be access by times[0] thru times[5]. Obviously these variables would be available on a clients PC. Another PHP programmer …

Member Avatar for terrymold
0
331
Member Avatar for valestrom

print ("The scope of this program is to multiply two matrices together\ and print the result") while True: matrix1_rows = input("How many rows does matrix one have? ") matrix1_columns = input("How many columns does matrix one have? ") print ("Matrix one is a", matrix1_rows, "x", matrix1_columns, "matrix") print() matrix2_rows = …

Member Avatar for David W
0
373
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
217
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
352
Member Avatar for james.lu.75491856

import os import web import traceback import datetime from functools import wraps ### Url mappings urls = [ '/', 'index', ] def addfolderhandler(f,root): u = os.path.join(root,f) u=u.strip("/").strip("\\") ident=u.lstrip("C:/Users/James/Desktop/it").replace("/","SLASH").replace("\\","SLASH").replace(".","DOT").strip() #replace invalid python expressions with valid ones globals()[ident] = "<h1>Directory listing for:%s</h1><hr>"%u+''.join(["<a href="+i+">"+i.lstrip(root)+"</a><br/>" for i in os.listdir(u)])+"<i>Python Server</i>" if ident=="": return try: …

Member Avatar for vegaseat
0
252
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 t_thakar

Hi I was taught not to use global variables and one of my friend is using global variable for database handle for his website... could you please explain if there is an issue if he uses global variable for database handle? he is using it to access database from anywhere …

Member Avatar for veedeoo
0
228
Member Avatar for Alessandrorenzi
Member Avatar for Alessandrorenzi
0
176
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 Patrick_3

I would like to have a file in my project which contains variables for use by all classes. I this possible to accomplish efficiently. I have heard that using a module with static varibles could work.

Member Avatar for Reverend Jim
0
228
Member Avatar for ihatehippies

I stumbled on upon this anomaly in one of my programs and can't figure out why this is happening. I made a small test function that exhibits the same behavoir. It's like the local variables of my function are being saved after the function exits. The exclude_ids variable keeps growing. …

Member Avatar for james.lu.75491856
0
675
Member Avatar for SQLpower

Hello, I created an XBAP web application which I already implemented on my website but I am wondering if it would be possible to pass PHP variables like session etc. to the app itself? I know it's possible with ASP.net, but I am not sure for this one. For example, …

Member Avatar for LastMitch
0
229

The End.