64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jpknoob

Evening, I am trying to grab information from a PHP script using JQuery when the user enters a value into a text input field. The text input box has an auto suggest function so that when the user begins tying they can see what matches from the database. If the …

Member Avatar for ko ko
0
270
Member Avatar for marijana

please, does anybody know is there a .NET control in which an excel document can be displayed on a windows form ?? Or is there any other way to display it on a form?? tnx :)

Member Avatar for jtodd
1
3K
Member Avatar for Sundown G

Hi people I'm programming in C like a month. I just made this code yesterday, but I want the same result with a better code without using recursion for optimization, i think mine is sloppy. Also im using linux distribution... Any ideas to change this code in 1 or 2 …

Member Avatar for Sundown G
0
138
Member Avatar for showman13

Good Morning. Could someone tell me how you would go about doing a query to just get records that have an email account with(hotmail.com or msn.com or live.com) I'm sure I could do it by selecting the entire DB and sorting them in PHP based on exploding the email field, …

Member Avatar for showman13
0
126
Member Avatar for issaru07

i am trying to do credit card validation. the card details are entered n creditcard.php and process in creditcard-process.php and this is the error for creditcard-process.php.. can i check whats wrong with creditcard-process.php ? Notice: Use of undefined constant ccnum - assumed 'ccnum' in D:\xampp\htdocs\book\creditcard-process.php on line 109 Notice: Undefined …

Member Avatar for issaru07
0
381
Member Avatar for The_Purple_Mask

I've tried for some time to make the following code run properly. The problem is in the comparison function of sort(comp). It compares 2 doubles but in some cases it causes the program to crash with the message "Debug Assertion failed! Program: retrace.exe File:c:program files (x86)\microsoft visual studio 10.0\vc\include\algorithm Expression:Invalid …

Member Avatar for Fortran IV
0
207
Member Avatar for razree

Hi all I have two parts of code; one is searching (InStr) if log file contains certain string and the other one find the last modified log in one folder. Now I would like to merge these two together and modify so the [U]script finds the last modified log file …

Member Avatar for Reverend Jim
0
238
Member Avatar for shaynadz

Hi! I'm new here! I have a quick question about an error I found in my script. I'll jump straight into the code and then make my question: [CODE]$description = $_POST['desc'];[/CODE] this is a text description for example "Monthly Tuition". [CODE]$amount = $_POST['amount'];[/CODE] price of tuition [CODE]$dlnumber = $_POST['cedula'];[/CODE] drivers …

Member Avatar for diafol
0
184
Member Avatar for adil_bashir

Ihave written the below pieces of code, but i am not able to solve the compilation error here as it shows the error as ArrayOutOfBoundsException error. so please tell me hw to remove the error and please bring the necessary changes. [CODE] import java.util.*; public class Cipher { private int …

Member Avatar for adil_bashir
0
176
Member Avatar for adil_bashir

i am doing the coding of my minor project and for that i need to convert an input text(String) to an int type as i am inputting the data through swing component, panel as text(string). But internally i need to process that as int. so please tell me how can …

Member Avatar for adil_bashir
0
184
Member Avatar for PF2G

Hi, I'm trying to do a school schedule with a Table Panel Layout, and i'm having some difficults. This is the code i have so far: [CODE]TableLayoutPanel1.ColumnCount = 7 TableLayoutPanel1.RowCount = 2 TableLayoutPanel1.CellBorderStyle = TableLayoutPanelCellBorderStyle.Single Dim label_seg As New Label() label_seg.Location = New Point(10, 10) label_seg.Text = "Monday" label_seg.Size = …

Member Avatar for codeorder
0
105
Member Avatar for NickPatton

I'm working on an assignment where I have to write my own raisePower function to take a base and a power and compute the product. The assignment states that the function needs to return a long but all input/output values should be ints. The code compiles and runs but does …

Member Avatar for Caligulaminus
0
213
Member Avatar for nidheeshkumar.r

hey, i cant set the size of a frame to a particular dimension.My code is :- [CODE]public class ImageShow extends JFrame{ ResultSet r; Image img; public ImageShow() throws SQLException { setTitle("Image retrieved"); JPanel panel = new JPanel(); //setSize(500, 500); setDefaultCloseOperation(HIDE_ON_CLOSE); Container pane = getContentPane(); panel.setLayout(new GridLayout(3,3)); r=ImageRetrieve.rs; while (r.next()) { …

0
82
Member Avatar for adil_bashir

[CODE] public static void main(String[] ar) { ..... int N = Integer.parseInt(args[0]); ..... } [/CODE] Error is : Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0

Member Avatar for adil_bashir
0
94
Member Avatar for MrHardRock

Hey everyone, I recently had the assignment to write a recursive program to calculate greatest common denominator. I barely understood recursion when our instructor explained it to us. I understood how it works and calling on itself I am just bad at implementing it. I think I almost got my …

Member Avatar for MrHardRock
0
304
Member Avatar for amm038

hi there am bulding a system that have two types of users admin and users in the login page i want when the users enter there username if the username is in the admin table redirect to admin page and if the username is in tha applicant table redirect to …

Member Avatar for amm038
0
95
Member Avatar for alastair1008

I'm just starting out in C++ and want to use TextOut to print a character that is generated at runtime based on keyboard input but am having trouble converting TCHAR to LPCWSTR so that it can be used in the TextOut method. my code is [CODE] LRESULT CALLBACK WndProc(HWND hWnd, …

Member Avatar for Ancient Dragon
0
272
Member Avatar for accra

I have time [CODE]timestamp[/CODE] in my db,when i insert/update records it do not change. for Attributes i have [CODE]ON UPDATE CURRENT_TIMESTAMP[/CODE] and for Default its [CODE]CURRENT_TIMESTAMP[/CODE]. any help pls.

Member Avatar for accra
0
137
Member Avatar for accra

[ICODE] Why would an update script do an insert, and not update?[/ICODE] [CODE] $navtype = $_GET['nav']; if($navtype == "zjxpmovdtzjd") { $mileage_out = $_POST['mileage_out']; $mileage_in = $_POST['mileage_in']; $famount = $_POST['famount']; $vreg = $_POST['vreg']; $driver = $_POST['driver']; $vtype = $_POST['vtype']; $desti = $_POST['desti']; $date_out = $_POST['dy']."-".$_POST['dm']."-".$_POST['dd']; $date_in = $_POST['ay']."-".$_POST['am']."-".$_POST['ad']; $cur_date = date("d-m-y …

Member Avatar for accra
0
146
Member Avatar for yanwick

I have this file x.php but it doesnt work. Php only works if it is in a pure php file (with no html code).Im using xampp 1.7.7. Any ideas what might be the problem ? [CODE]<html> <body> <?php echo ("HELLO"); ?> </body> </html>[/CODE]

Member Avatar for yanwick
0
234
Member Avatar for skannigan

As Part of an assignment one of the requirments is to convert a date into month format. that is the user must enter start month and year of employment and end month and year of employment for example 4 1980 till 7 2009 (mmyyy) these two dates must be coverted …

Member Avatar for skannigan
0
164
Member Avatar for slasherpunk

Even after setting all the paths correctly, I get an error saying the "setclasspath.sh" cannot be found. I checked the directory and it was there. I then changed the permissions using chmod +x setclasspath.sh but to no avail. I've changed the permissions of all the files inside the "bin" directory …

Member Avatar for slasherpunk
0
197
Member Avatar for collin_ola

Hi, I have a textbox called [CODE]txtCustomerRecord.text[/CODE]. It is a multiline textbox, and I want to be able to enter different pieces of information (info1, info2, info3) into each line. I would really appreciate it if somebody could show me how to do this. Collin

Member Avatar for collin_ola
0
2K
Member Avatar for mehnihma

can someone help me how how can catch CTRL C and print it out then stop the program? Thanks [CODE]/** * 218-102 Lab 7 * TestCircle.java * * @author JKang & JLeone * */ import java.util.*; import java.awt.event.*; import javax.swing.*; import java.awt.*; public class TestCircleB { public static void main(String …

Member Avatar for mehnihma
0
9K
Member Avatar for arathy nair

Hi All, I have PDFs that are to be watermarked. I need to know whether there exists the below options 1 Option is : Whether we can rewrite the same file with the logo instead of taking the existing pdf and writing this pdf into watermarked file option2 : Whether …

Member Avatar for peter_budo
0
400
Member Avatar for zachattack05

If I have a DataRow list and use a foreach statement to create a string containing information in a list format and I want the last item in the list to be preceded by the string " and " how could I accomplish this within the foreach statement or is …

Member Avatar for zachattack05
0
119
Member Avatar for Shreya J

Hello All , I am working in a project in which I have been asked to use Telerik Gridview control. I was curious to know that why should we use Telerik Controls when we can do the same thing using ASP controls. Like in gridview the collapse and expand feature …

Member Avatar for Shreya J
0
113
Member Avatar for vlady

Hello! Here is the code, pls have a look fist: [CODE]class Cstudent(): def __init__(self, name): self.name = name self.subjets = [] self.mark = [] def add_subject(self, subject): self.subjets.append(subject) def add_mark_student(self, subject, mark): subject.add_mark(mark) def __str__(self): return 'I am object of student: %s'% \ (self.name) def print_list_of_subjects(self): lst = [] for …

Member Avatar for vlady
0
120
Member Avatar for Jackwong0099

How do I fix this: Me.dgvData.DataSource = dt, there are three date of birth dropdown list [CODE] Private Sub RefreshData() If Not cnn.State = ConnectionState.Open Then 'open connection cnn.Open() End If Dim da As New OleDb.OleDbDataAdapter("SELECT txtstdid as [ID], " & _ "txtstdname as [Name], cbosex as [Gender], chodob1 as …

Member Avatar for Pgmer
0
186
Member Avatar for bhallarahul
Member Avatar for bhallarahul
0
105
Member Avatar for daydie

Hey guys, is have a bot at the moment which basicly uses the browser to get around things and its really slow as the process which i need doing is repetitive. i need a really quick method. Can any1 post a sample script where it Downloads HTTP source to text …

Member Avatar for daydie
0
7K
Member Avatar for DJSAN10

I want to create a regular expression that matches with the string "B. Hello" or "C. Hello" and so on.. I tried number of things and finally came up with this [CODE]String REGEX = "[A-Za-z]"+Pattern.quote(".")+" Hello";[/CODE] but still no luck.. I tries using '\s' for space but still not working. …

Member Avatar for DJSAN10
0
179
Member Avatar for rhone0809

i have a problem with sorting this thing... i want to sort a column without changing the data in the other column. i have an attached document. a picture of my query and database.. tnx :)

Member Avatar for rhone0809
0
130
Member Avatar for rushikesh jadha

i have created program below ,but it does not run successfully why [CODE]import java.sql.*; public class Bank { public static void main(String[] args) throws Exception { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); // TODO code application logic here try{ Connection cn=DriverManager.getConnection("jdbc:odbc:rushiDSN"); System.out.println("Connected Successfully"); Statement stmt=cn.createStatement(); stmt.executeUpdate("CREATE TABLE Author(AuID Number(3), AuName Char(15), AuAddr Char(30))"); System.out.println("Table created …

Member Avatar for rushikesh jadha
0
260
Member Avatar for Whoaa512

search and didnt find anything that was close to this. so my assignment is to simulate a simple authentication, where the user enters their original pin or password(numbers only). it must use arrays to assign the password a pseudo-random assignment of 1-3 for digits 0-9. after that the program clears …

Member Avatar for Whoaa512
0
346
Member Avatar for apals

MY problem is related to entry of research data. The researchformula is entered into a textbox alongwith other usual form entries like title,subject,startdate etc. The formula consists of alzebra, trignometric, otherfunctions etc. Example [CODE] [B]x = 12; y = 24 + tit[x] + mixer[x]; z = x + sin(x) + …

Member Avatar for apals
0
243
Member Avatar for Valiantangel

hi Got 2 questions. 1.How can i simplify 4 variables all with same condition? if a,b,c,d <1 System.out.println("Invalid input");? How to put this in a simple code?I know it can be done individually. 2.if the above condition is false i dont want my code to go further and calculate the …

Member Avatar for DJSAN10
0
90
Member Avatar for inspire_all

i am a bit confused.i am feeling that one should be expert at data structures rather than language.i am learning c++ this semester,learning oop and data structures.[COLOR="Red"]is data structures more important than language?[/COLOR]what can get u into a good company?

Member Avatar for WaltP
0
128
Member Avatar for |-|x

Is it possible t set a control's property in the markup using server tags? Specifically in this case I need to set it from a Session value, ideally something like this: [CODE] <asp:Label ID="Label1" runat="server" Text='<%= Session["value"] %>' /> [/CODE] Of course the above simply prints as literal text, rather …

Member Avatar for kvprajapati
1
936
Member Avatar for MikeFL

I'm still kinda new to php and have been getting this error: PHP Parse error: syntax error, unexpected T_STRING in /var/www/index.php on line 33 It's all running on a LAMP server in a local VM. Been looking at it for the last 2 days and can't find what is wrong, …

Member Avatar for MikeFL
0
3K
Member Avatar for clc_services

Hi, I'm creating a web page which links to a mysql database. I have managed to get all of the data to appear in a table and i have also been able to get the combobox to be populated based on a table in the database. The part which I …

Member Avatar for clc_services
0
2K
Member Avatar for neartoyou

Forgive me if this thread was repost. :( I am a novice in database system for game development. Can Mr./Mrs. (Master) in here give me an example of a saving system for game? or it just use a database?(Like SQL?):idea: Like a feature for "Save the Games" and sometimes the …

Member Avatar for neartoyou
0
257
Member Avatar for Diamond3x

What is "std" and "::" .Like for example, std::cout. Now i know what is cout for but what is std and what are these "::" for?

Member Avatar for neartoyou
0
255
Member Avatar for kass2112

Hello, The form i am doing takes from the user the item price, then it will calcuate the subtotal, tax, shipping, and total when the button is clicked. How can i update it so if the user adds another item it will update the subtotal, tax, and total when the …

Member Avatar for kass2112
0
154
Member Avatar for mjacqu4

Hey, I'm a bit rusty at c++ and I'm sure that I'm just missing something stupid, but I have a class that takes in an ifstream object in its constructor. In my main function I create an ifstream, open a file, then pass the ifstream object by reference into the …

Member Avatar for mjacqu4
0
845
Member Avatar for basamdamdu

Hi all, I am a newbie when it comes to js/jquery. I am trying to have the content of a div (let's call it "quote") added to the body of a mailto. the content of the div "quote" is randomly generated (stored in .js file) by pressing a "next" button. …

Member Avatar for basamdamdu
0
4K
Member Avatar for jkembo

I would like to move the mouse cursor from one position to another within a Jtextfield after a condition is satisfied. I do not know what to use. Thank you

Member Avatar for jkembo
0
644
Member Avatar for dark_sider_1

Hi there, I'm not sure if this is impossible to achieve or not, but I have a C program that I created that is compiled with an a.out executable. Is there a way that I could have it start/run automatically after I log in? I have a Mac running on …

Member Avatar for dark_sider_1
0
217
Member Avatar for MicroD

Hello guys. I'm wondering is it possible to stream mp3 songs from some site with java? I tried to find something but allways everything what i found was only for reading mp3 songs from local disk. If you know feel free to answer me. - Regards, David.

Member Avatar for RicardoE
0
1K
Member Avatar for adil_bashir

please check the following piece of code and give the correct code as my program is showing some error. here is the code. public class passingArray { public int getCipherText(int[] c, int len) { int cipher = 0; int e = 7; int n = 130; cipher = (int)((Math.pow(c[len],e)) % …

Member Avatar for DavidKroukamp
0
238

The End.