64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for MaddTechwf

I've written a sql select statement that return data just fine. I've got to format the data for my JS array though. The party I'm having issues with is place the , in the correct spot. I need to place it between the } and the next { . Current …

Member Avatar for MaddTechwf
0
215
Member Avatar for MaddTechwf

I'm working with a database that was setup before me. The column name is year. When I'm writing my SELECT string, I try referencing the year column and get NULL repsonses. How can code this correctly to reference the year column?

Member Avatar for MaddTechwf
0
127
Member Avatar for MaddTechwf

I've written my SQL lookup and tested it and it works great. I'm having issues checking and displaying text that might be null. Can anyone help me with this? This is what I've written and does not work at all <% While (Not rsUP.EOF) %> <h3 class="name"> <% If Not …

Member Avatar for MaddTechwf
0
169
Member Avatar for glao

If I want to multiple 2d arrays as 1d how should I do it? I mean ,I have a 2d array and I map it as 1d: for(int i=0;i<rows*cols;i++) A[i]=... I know how to multiply 2 arrays as 2d ,but representing them as 1d?

Member Avatar for glao
0
2K
Member Avatar for tomas.fillipus

How can i code a program in visual basic.net that when a control for color or font is clicked the appearance of the text in the text boxes is altered according to the following rules 1. If the check box text box 1 is checked the appearance of the text …

0
79
Member Avatar for mpc123

I have this to make a file ... but the file created is only ever .php, it is like it is not echoing the field name. $newfile ="" . str_replace(' ','-',trim($file['title'])) . ".php"; and the next one i tried to echo out in the page came out blank too? <?php …

Member Avatar for mpc123
0
191
Member Avatar for hvebsr

I want to put the path and name of a spreadsheet, the page and number of pages and the date and time into the footer(s) and display it in Times New Roman 6 pts. I made the following macro: Range("A1").Select ActiveWindow.View = xlPageLayoutView` Application.PrintCommunication = False With ActiveSheet.PageSetup .LeftFooter = …

Member Avatar for hvebsr
0
296
Member Avatar for humorousone

In the application i'm working on, information will be saved to a database file which is located in the same directory as the executable application. In order for this file to be accessable for the executable while in a visual studio project, i would usually place it in the debug …

Member Avatar for humorousone
0
233
Member Avatar for adetolaraphael

Havning issues with file upload in php, below is the code <html> <head> <title>margeducation</title> </head> <body> <p> Niggas Please upload your files in pdf or jpg format, size less than 500kbytes, capishe</p> <form enctype="multipart/form-data" action="processfile.php" method="post" > <p>REQUIRED DOCUMENTS:(Please Select all documents that were recieved for this student's application):<br/></p> <input …

Member Avatar for adetolaraphael
0
263
Member Avatar for Grazel

"DELETE FROM tbl_status where id "= & selecteditem Hi .. i have a problem here.. the query i have for delete button is wrong.. i raelly don't know what is wrong with this code.. someone help please.. this what i've gone so far..

Member Avatar for Reverend Jim
0
113
Member Avatar for aabbccbryanmark_1

Public Function analyzeTotalFilesSize(Path) As Integer Dim lookInDirectory As New DirectoryInfo(Path) For Each Directory As DirectoryInfo In lookInDirectory.GetDirectories analyzeTotalFilesSize(Directory.FullName) Next For Each File As FileInfo In lookInDirectory.GetFiles If _ListOfFiles.Exists(Function(x) x.ToString = File.Extension.ToLower) Then _SizeOfFilesToCopy += File.Length / 1024 End If Next If _SizeOfFilesToCopy < 1024 Then errorhere -------->> Return _SizeOfFilesToCopy.ToString("#,##0.00") & …

Member Avatar for GeekByChoiCe
0
183
Member Avatar for blazemadej

My program is almost done, but when i try to convert a number into cents, it does not calculate the cents properly. So if i enter 325, it says i have 3 dollars and 325 cents and my running total is not working. Each time NormalizeMoney is called it should …

Member Avatar for David W
0
4K
Member Avatar for zobadof

Hi, So recently I downloaded a template off the internet for the site, and it has a contact form in it but no way to set it up. After contacing the developer he linked me to a site, however, its not been all that useful as I still cannot get …

Member Avatar for zobadof
0
500
Member Avatar for Gen_2

i can't find the error converting data type varchar to numeric pls help.. i already wasted a lot of hours to identify this error. conn = New SqlConnection("Server=GEN-PC;Data Source=GEN-PC\SQLEXPRESS;Initial Catalog=Brgy;Integrated Security=True;") If ResidentialComboBox.Text = "" Or LNameTextBox.Text = "" Or FNameTextBox.Text = "" Or MNameTextBox.Text = "" Or GenderComboBox.Text = …

Member Avatar for Gen_2
0
437
Member Avatar for Wilfred_2

A blue passenger train moves southwards at a speed of 120km/hr. Unfortunately as it enters a junction it collides with a brown goods train moving northwards. The collision happened 50 minutes after the goods train takes off. Using a Java program illustrate the answer.

Member Avatar for JamesCherrill
0
124
Member Avatar for mattyd

I am working with a form validation script; I am testing it first and all seems to work fine except for the email validation. This is a snippet of the script dealing with the email validation: else if(! eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email )) { $_SESSION['reg']['email']="Please enter valid email address."; For example, if …

Member Avatar for cereal
0
236
Member Avatar for balamurugan.rajendran.14

Hi, Could someone please help me to optimize the attached code file. as i'm new to c# world. Thanks in advance cheers

Member Avatar for JorgeM
0
227
Member Avatar for hvebsr

When I format the date so that a field gets the value as year-month-day-hour-minute-second, I omly see the date-portion, the rest is filled with zeros. I use: strDT = Format(Date, "yyyymmddhhmmss") I get '20140226000000' What goes wrong, or how can I get the desired result?

Member Avatar for hvebsr
0
97
Member Avatar for Siphokazi_F

# Hi, # I just joined this forum. I am a second year student doing Information Technology(Software Development stream) at the Durban University of Technology. I have just started doing source code for ASP.NET c# and I would love to know how the MultiView and GroupView components work and what …

0
80
Member Avatar for KushMishra

Hi All, I have got one scenario here in which I need to bind a DataGrid to a collection (array, ObservableCollection etc.). My Collection name is "WarningList" and the code is as follows :- **ViewModel :-** WarningList = {({result.WarningMsgCode, result.WarningColor})} **xaml :-** <data:DataGrid x:Name="gridSystemWarnings" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" Grid.RowSpan="2" DataContext="{Binding}" IsReadOnly="True" …

Member Avatar for KushMishra
0
272
Member Avatar for riayas

I have 2 forms , form one has a datagrid with 10 columns form 2 has a listview box with 4 columns i want to populate the listview columns with 4 of the values from a row in the datagrid when the row is selected and the 'add ' button …

Member Avatar for riayas
0
714
Member Avatar for isslam.akkilah.5

am trying to read file in java but i have an issue bufferReader are stating from number 2 `public static String lineLengths() { try { String file = "C:\\\\Users\\\\isslam\\\\Documents\\\\NetBeansProjects\\\\AnimeAid\\\\tra.srt"; BufferedReader br = null; try { br = new BufferedReader(new FileReader(file)); } catch (FileNotFoundException e) { System.out.println(e); } String line; while((line …

Member Avatar for isslam.akkilah.5
0
146
Member Avatar for brett.warren.1612

I getting an error when I try to run this function here: def get_char_out(prompt=None): while True: try: return str(raw_input(prompt + ' ')) break except ValueError: print '\nInvaild input' print get_char_out('String, please') I keep getting this error here: String, please Traceback (most recent call last): File "main.py", line 11, in get_char_out('String, …

Member Avatar for brett.warren.1612
0
214
Member Avatar for Begginnerdev

Hello everyone! I am posting this code for anyone who may be having issues with connecting to a database. Feel free to use this code as you wish. This will be using the OLEDB library. [CODE] 'Imports Imports System.Data.OleDb Public Class Form1 'Declarations Dim con As OleDbConnection Dim cmd As …

Member Avatar for Reverend Jim
2
899
Member Avatar for Doogledude123

So I have a button which adds a "Miner" then removes the cost of the Miner. The problem is that it is taking away too much, double the cost, and also will not buy if the current gold is equal to the cost. I have no idea why it is …

Member Avatar for sepp2k
0
305
Member Avatar for Wael1988

hello i have an error while am trying to retrieve data from a tb in data base using Stored Procedure any help please? this is my web.config <?xml version="1.0"?> <!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433 --> <configuration> <connectionStrings> <clear/> <add name="myConnectionString" connectionString=" …

0
139
Member Avatar for Dang_1

I have some errors LNK2019 with my homework, but I can't solve it. My error Error 7 error LNK2019: unresolved external symbol "void __cdecl input(int * &,int &,class std::basic_ifstream<char,struct std::char_traits<char> > &)" (?input@@YAXAAPAHAAHAAV?$basic_ifstream@DU?$char_traits@D@std@@@std@@@Z) referenced in function _main E:\Ex\Bai_1_No_File\main.obj Bai_1_No_File This is my code. main.cpp #include "function.h" #include <conio.h> #include <fstream> …

Member Avatar for Dang_1
0
158
Member Avatar for patk570

I am not sure why this is not working, Its setting the flags perfectly but will not update events... if(isset($_REQUEST['del'])){ if($_REQUEST['del'] == 1){ $asset_id = $_REQUEST['assetID']; $sql = "UPDATE assets, events SET assets.del_flag=1 , events.del_flag=1 WHERE assets.id='$asset_id' AND events.asset_id='$asset_id'" or die(mysqli_error($mysqli)); if ( $mysqli->query($sql) ) { $addevent1 = "INSERT INTO …

Member Avatar for patk570
0
142
Member Avatar for blazemadej

Hi all, need some suggestions. This code looks like a jumbled mess to me. I am missing something and am not sure what. -Main should determain the letter grade of an average based on a 10-point scale and print out this grade. 90–100 A 80–89 B 70–79 C 60–69 D …

Member Avatar for blazemadej
0
14K
Member Avatar for mxwarning

Hi, I am very new to programming and I am unsure of how to start coding in c++. I need to create a currency conversion program. I need the code. I do have VS but have no idea of how to start the process of the coding.

Member Avatar for mxwarning
0
322
Member Avatar for Ezekiel_1

//I am writing a program that converts from one unit like mm to another e.g cm. The program should prompt invalid unit when something other than mm, cm, m or km is entered as the unit to be converted from or unit to be converted to. The problem is how …

Member Avatar for Ezekiel_1
0
9K
Member Avatar for stan yost
Member Avatar for Alyssa_1
0
3K
Member Avatar for jpunkins

Hello! I have a silly blog that uses images emailed to me which I'm not frequently updating because the manual method is cumbersome. I'd like to create a program or script or something that will allow me to search my inbox for messages from a particular account or with a …

0
128
Member Avatar for mavtcr

I am studying vb.net through the help received through this forum. While I was making a small programme Out of curiosity/error I created a module.later I thought it is not necesssary.So I wanted to remove it.I searched in the project Tab But I could not see the Delete command.So I …

Member Avatar for mavtcr
0
290
Member Avatar for christopherbe11

I have this code:: name_list=[] name1=print(input("what is your name: ")) name_list.append(name1) print(name_list) it returns Jon [NONE] If i input a name jon. Why does it not append to list please?

Member Avatar for christopherbe11
0
159
Member Avatar for RikTelner

Using `localhost/#sum` and `<section id="sum">Dum Dum DAM</section>`. I can skip to specific useful places on website. But it does skip it in once. Is there way to make it glide?

Member Avatar for RikTelner
0
115
Member Avatar for Wael1988

hello i have a table "employers" Employerid int InsuranceNumber varchar(10) Ministry nvarchar(100) Adress nvarchar(250) PostalCode varchar(50) Phone varchar(14) Mobile varchar(14) Email nvarchar(60) UserName nvarchar(50) Password nvarchar(50) ContactPerson nvarchar(250) EntryDate datetime LastUpdateDate datetime IsDeleted bit Active bit and i have created how to insert data using insert stored proc Create procedure …

0
101
Member Avatar for Tu Dinh

Hi every body, I tried to search for my own problem, I would think this must be popular issue but unfortunately I found no solution in Google. I tried to use `(boolean) session.getAttribute("IsValidUser")` to get the attribute of Session, but that caused error: org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for …

Member Avatar for Tu Dinh
0
478
Member Avatar for Doogledude123

Could someone give me a few reasons why an Application isn't terminating on close? `*THIS IS FOR A JavaFX APPLICATION*`

Member Avatar for JamesCherrill
0
1K
Member Avatar for jj.dcruz

Hi there I'm having a problem uploading my file with a progressbar. the problems are 1. i cannot upload any photos at all 2. i cannot find/promt errors **here is my full codes:** this is for php <?php if(!empty($_FILES['file'])){ foreach ($_FILES['file']['name'] as $key => $value) { $file = $_FILES['file']['name']; $allowed …

0
103
Member Avatar for Emma_3

I need to find a digit at a specific postion in a number. Example number 652796, user inputs a 4, "2" is displayed. I have the basis for it, but most of the time, the output is incorrect. Not sure what's wrong. #include <iostream> #include <cmath> using std::cout; using std::cin; …

Member Avatar for vmanes
0
1K
Member Avatar for Doogledude123

This is PART of my GoldMiner class where the problem is occuring. I am getting a null pointer. I assume it is because of the way I declared my sceneController class. private static Game game; private static sceneController controller; public static void main(String[] args) { Application.launch(GoldMiner.class, (java.lang.String[])null); game = new …

Member Avatar for Doogledude123
0
7K
Member Avatar for anisha.silva

Hi, i am new to groovy language. I was wondering if there will be anyone who will be able to help me understand the below code. static analyzeAPI(pkgname) { def refs = Yaml.load(new File(output_base + "/${pkgname}_PackageRefs.yml").text) refs.Classes.each { analyzeClassRef(pkgname, it.name) } } static analyzeClassRef(pkgname, name) { println "=== Analyze class …

Member Avatar for anisha.silva
0
223
Member Avatar for sundeep.gurroby

Hello, I have successfully created a login page(username+password) that links to an account page. But i would like to insert a middle page (post login) where the user need to type 2 or 3 random characters of a memorable name to finally log into his account. Any idea how to …

Member Avatar for sundeep.gurroby
0
164
Member Avatar for Webbsta

Hello, I am new to C++ and have been writing a server program to help me learn. I am currently stuck on how to get a couple of classes passed by reference. I have been searching on forums for hours now and I just can't figure this out. I would …

Member Avatar for Webbsta
0
235
Member Avatar for mixelplik

I'm parsing a date into three ints, then manipulating them. I then want to convert them back into strings so I can concactenate them with the slashes so I can search an array of dates saved in string format. I looked around and this code seems like it should work, …

Member Avatar for mixelplik
0
320
Member Avatar for blazemadej

I need to read these numbers from a file: 2 10.5 5 20 10 30.2 It is not working. It skips over numbers. The first row (2,5,10) is supposed to be Hours and the second row (10.5, 20, 30.2) is supposed to be Pay.Any help is appreciated.Thank you. Note: This …

Member Avatar for blazemadej
0
178
Member Avatar for Siberian

Hi, why is my #div not [hiding](http://jsfiddle.net/WildWind/Lcx78/) when it's clicked, maybe placing it within a document.ready function wasn't needed ?

Member Avatar for Siberian
0
218
Member Avatar for abu taher

for save I write this........ With rs .Open "Select * from Dad", con, adOpenDynamic, adLockOptimistic .AddNew !SrNo = cmbbillno '!SrNo = GetNewNo("Dad") !DadItems = cmbIName !DadSize = cmbISize !Dad = txtDadIQty !Dadby = cmbOrTkBy.Text !DadDate = DadDate !deliverydate = deldate !partyname = cmbPartyName !amount = txtamount.Text !due = txtdue.Text !Receive …

Member Avatar for abu taher
0
217
Member Avatar for mell.mattingly

I am having a little trouble with my class Person program. It runs and builds without error...Yay....except I am getting 0 output. Anyone have any advice? #include <iostream> #include <string> #include <vector> #include <stdlib.h> using namespace std; class Person{ private: string name; int age; public: Person (string n, int a); …

Member Avatar for rubberman
0
183

The End.