64,152 Solved Topics
Remove Filter ![]() | |
Hi all, was wondering if I could get some help with my code. I want to be able to insert a person and details into a database, however i keep getting a syntax error, and not very experienced so was hoping some one here could help. thanks dbConfig.php [code=php]<?php // … | |
![]() | Hi there, I'm trying to do a Username validation with JQuery but I'm not sure how to get a "TRUE" from the first section of code before going to the next section which is an ajax call to the backend. Below is my code. [CODE] $(document).ready(function() { $("#username").change(function() { var … ![]() |
hi there im new to php and im currently building my website .,it's more like an online store and i would like my products to be listed in a gridview., i have a database and my only problem is how to display the images .., i've already displayed some info … | |
[CODE]<a href="javascript:document.apply.submit()" >Submit</a>[/CODE] I use this all over my website. It works great every where but on one page. The error is document.apply.submit is not a function. I would include the code but the page really long. Anyone have any ideas what would cause this error? | |
I've been working on this for quite a while. Everything works except for writing and reading my Vector<Question> questionList to and from my binary file. The file is created as it should be and the rest of the program works ok, but I'm not sure what I'm doing wrong with … | |
I'm trying to get sounds to play from python. I've tried Winsound, snack, and now Pygame. Winsound only seemed to play windows preset sounds (which aren't so useful), snack did nothing, and Pygame is raising a memory error on a 2 second mp3. Is there something obvious I missed in … | |
I just would like to know how to do this? Just like facebook! Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam fermentum posuere arcu lobortis mattis. In eu nisl turpis. Praesent mi dui, dignissim et rhoncus nec, sodales vel sapien. In hac habitasse platea dictumst. Etiam quis felis vitae … | |
hai friends, Am developing java project with client server interaction, am getting the Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: Java heap space Exception, i doknow how to solve this ,please help me in this. | |
Can you check this site? (can you check can you listen to music? [my browser is firefox, and can you check it with other browsers?]) Thanks! ([URL="http://latinus.herobo.com"]click[/URL]) (PS. Glasnoća means volume) | |
[ICODE] Private Sub cmdAddCart_Click() Module1.toConnectProc Set globRSRecordset2 = New ADODB.Recordset globRSRecordset2.Open "SELECT * FROM tblBooks, tblTemporary WHERE tblBooks.Title = '" & Trim(Me.txtTitle) & "'", strVar, adOpenKeyset, adLockOptimistic With globRSRecordset2 .AddNew tblBooks.ISBN = tblTemporary.ISBN tblTemporary.UserID = ID !DateReserve = Date !Notes = "Fair" MsgBox "Added to Cart", vbInformation, "Add to Cart" … | |
Hi... I have a fixed size array in my program..... but in order to make the program memory efficient.... i want to make it an ArrayList... can someone please explain how to do this..... i have posted my code below... [CODE] class StaticColumn { public TextBox[] textBoxes = new TextBox[1000]; … | |
![]() | I am converting seconds to minutes, hours, days. For some reason I have an issue with the days not calculating when running the program. The 'if' statement seems completely ignored by the program. I think this may be caused by the warning I get. Any help would be greatly appreciated … ![]() |
I have this error --------------------Configuration: <Default>-------------------- Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at java.awt.Container.addImpl(Container.java:1041) at java.awt.Container.add(Container.java:959) at javax.swing.JFrame.addImpl(JFrame.java:540) at java.awt.Container.add(Container.java:365) at ticketReservation.<init>(ticketReservation.java:114) at bookAngels.actionPerformed(bookAngels.java:163) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6267) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6032) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577) at … | |
Hi All, I try to make count down timer but. This following is my code but it just decrease one time and stop. [CODE]Dim TCount As Integer Private Sub Form_Load() TCount = 30 Label1.Caption = "30" End Sub Private Sub Timer1_Timer() Label1.Caption = TCount - 1 If TCount = 0 … | |
Hi everybody! i am using joomla 1.5.23 with the templete jvwintro when i try to add a menu then a message just like "Invalid Token" is shown the same problem is shown in the JA-Methys-Joomlart-Template what the problem is? and what is the remady? please reeply me soon. | |
Well, i really don't know, maybe the title would be in appropriate. Here's my problem: Textbox1.text = [CODE]abcd sadsadasdas dsad as das d 1234[/CODE] After parsing between [TEX]abc[/TEX] and [TEX]1234[/TEX] It shows [TEX]sadsadasdasdsadasdasd[/TEX] However it should also contain spaces. Here's my piece of code: [CODE] Dim daniweb As String = … | |
Right now dates might look something like this 04/18/11 or this 04/08/11. Well, what needs to be changed and where to not display preceeding 0's in single digit months / days so 04/18/11 becomes 4/18/11 and 04/08/11 would become 4/8/11.. Ty for your time and help. [code]<?php $ndnews = file_get_contents('http://www.naughtydog.com/index.php/site/tickerData'); … | |
I am writing a program that accepts an input file of 10 items each having revenue across 4 quarters. In this particular function I have to determine if the items profit has steadily increased, decreased or went up and down across the 4 columns, or quarters(qu) as they are referenced … | |
I'm working on a map editor and the tiles show up i a file as [CODE]1, 0, 0, 1, 1, 0, 1, 1[/CODE] so here's a 4x2 map. I'm wondering how can I parse out the integers from the commas and assign them to a multidimensional array so that \i … | |
First, yes this is a school project. That said, I have a seed, now I need to create a function that will create a byte array of random bits. The input for the function should be the number of requested random bits. Here's an example: [CODE]unsigned char* getRandomBits (int number);[/CODE] … | |
Is there a way to gather network/internet traffic statistics? The end result is that I need to create a random number generator using some network stats as a random seed, so I need to pull information that is highly variable. Could be packet data (maybe sequence numbers), or traffic data … | |
I am looking for the correct way to initialize an array data member and why the following code produces the listed error. Thanks... [code] typedef struct tagsX { tagsX(int u, int v): a(u), b(v) {} int a ; int b ; } sX ; typedef struct tagsY { tagsY(sX *p, … | |
Everyone, Can someone see why this select box doesnt display the numbers, but only the default text? [CODE] <?php include_once "connect_to_mysql.php"; //Placing the page under the relevant subject, using a dropdown list $sqlCommand = "SELECT subjectid FROM pages ORDER BY subjectid ASC"; $query = mysqli_query($myConnection, $sqlCommand) or die (mysql_error()); while … | |
hey there, I downloaded the jxbrowser package that comes in the following folder jxbrowser-2.8-cross-desktop-win_mac_linux . I put it on a directory JavaBrowser on my desktop. I tried writing a java class that makes use of the package but my compiler complains for absence of the package. anyways, after reading the … | |
Hye guys...im trying to create ScrollBar Horizontal on whole frame, i keep trying and do some research but still fail...Please help me...What should i add. This is the code. [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class listOfMovies extends JFrame implements ActionListener { private JButton jbtBatman, jbtAngels, jbtFaster, jbtDueDate, jbtHuman, … | |
Im having some problems with using the vector pushback method through a structure. The push back method works in one part of the code and not the other. Ive been staring at it for hours and testing different things and i cannot get it to pushback in the section of … | |
Hello Everybody, I am on a Ubuntu system and I just came across /dev/random I tried searching for examples of how to use this utility (or file/ or command) to generate a random number but I cannot find anything. Quick note I am trying to generate a random number on … | |
I originally posted back in Feb. 2011 about needing to transform one xml file with another xml file.. thinking it would be a straight one for one transformation... but of course, it can't remain that easy! I now have to take multiple line items from the input file based on … | |
Hello, I'm working on a hardware project based on the RabbitSys chips, which are ideal for web based hardware development. My task now is to divide a table up in pages and i'm able to set a variable from a webpage like "CurrentPage=1" and calculate my way around. the ZHTML … | |
HI, i have the following code and i am getting the error [CODE]private Reservation getReservationDetails() { Customer c = GetCustomerDetails(); ManagerCustomers mgrCustomer = new ManagerCustomers(); int customerID = mgrCustomer.SearchCustomerByIDCardNumber(c.IDCardNumber); DateTime reservationAdded = DateTime.Now; int numberOfPeople = Convert.ToInt32(nudNumberOfPeople.Value.ToString()); string dateOfEvent = dtpReservationDate.Value.ToLongDateString(); string timeOfEvent = dtpEventTime.Value.ToLongTimeString(); DateTime dateTimeOfEvent = Convert.ToDateTime(dateOfEvent + … | |
I am trying to update a JProgressBar in a for loop , The maximum size , I have set is equal to the size of the array which is computed upon and I am incrementing the value of the progress bar in the for loop.Here 's the code [CODE] private … | |
Hello everybody, I have a task to let an engine run. Now I want it to program that it runs once for 60 seconds and then stops. How can I do this? Timer is not an option because it don't need to repeat. Thanks in advance for your answers :) … | |
What is the best edition to learn java in basic.... Eg.. JavaSE JavaEE JavaME or if something else..... Is JavaEE [B]good [/B]for begin or [B]not [/B]? Why? What are the main differences between those editions..... | |
Hello, I posted here as although it's in regards to mysql the thing i want to ask is in regards to php itself. I have two tables below as follows: [CODE]CREATE TABLE `users` ( `uid` int(11) NOT NULL AUTO_INCREMENT, `status` char(10) NOT NULL, `username` varchar(15) NOT NULL, `email` varchar(50) NOT … | |
[code=c] . . string line; vector<string>DataStore; ifstream file; file.open(fileName.c_str()); if (!file.is_open()){ cout<<"Error retrieving file " <<fileName<<endl; } while(getline(file,line)) { getline(file,line); stringstream lineStream(line); string bit; getline(lineStream, bit, ','); getline(lineStream, bit, '\n'); DataStore.push_back(bit); . . [/code] This piece of code takes a CSV and stores its data in a vector. The first … | |
Hey all Can any one tell me what is the basic difference between events and delegates :) Thanks | |
Hi, I am in need of a python ocr script that can convert images into text and for the script to work on BOTH windows and centos. All the scripts I have found seem to not be compatible with linux/centos or require an api to another server and I do … | |
I have an external dll that provides the time and date a photo has been taken I am getting an argumentexception for a certain image. I believe it is because it is a jpeg from a scan, so it doesn't have a datetime. My problem is that even with the … | |
Hello i am trying to solve the second part of this question i am getting these errors Error 2 Only assignment, call, increment, decrement, and new object expressions can be used as a statement Error 1 Use of unassigned local variable 'i' [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; … | |
I am making a mysql fulltext search. my database table article1 has ~18000 articles, article2 has ~7000 articles, article3 has ~13000 articles. FIELD cat is a INDEX field Now I want to make a union search. there are 5 groups words put into 3 table, match out the results. But … | |
Hello :) Im still learning C# , im developing and application as my project .... i came across a issue and thought the experts might help me out :) what i want to do is to read a text file like this : [CODE] 91.210.46.1:8080 124.193.109.13:80 124.193.109.7:80 [/CODE] and i … | |
Hey, Im trying to figure out how to read a starting and ending point in a string. What Im trying to have accomplished is something like this (This code doesn't work) [CODE] string str = ""; //str = readfrom(textBox1.Text, "start Character", "End Character"); str = readfrom(textBox1.Text, "[", "]"); textbox2.text = … | |
In Java and c# you can get the total lenght of an array with array.length or simular. Not only the length of the filled elements, I want the length of the total array. Lets say the array is introduced as this. [CODE]string array[100];[/CODE] Maybe its half filled or not it … | |
Hi guys - I need your advice) In which cases It'll be correct to use <T> after class name when I want to have generic type fileds in this class? big thanks in advance) | |
![]() | i was just hoping to get help on an assignment i've been racking my brain over for the last couple of hours. i'm asked to program a database of houses using object oriented programming. i'm suppose to do this by writing a house class, an address class, and a third … ![]() |
I try to get this to work... [CODE] for(int i = 0; i < size; i++){ if(nameList[i] != NULL){ //save name } else cout << "Namelist is full" << endl; } [/CODE] but NULL is not exepted in a situation like this...or...? I want to put in the name in … | |
Hi guys! i wonder how can i save image path in a string to MySQL, i mean...what instruction i have to use...i want to save it to MySQL and then show it into a picture box. Thank you very much for your help. | |
Hey here's my code for functioning like MS Paint. But JLabels are just not visible. Please Help. [CODE] import java.awt.event.*; import javax.swing.*; import java.awt.*; import java.awt.image.*; public class MSPaint { JFrame frame; JPanel panel; Painting paint = new Painting(); public MSPaint() { frame = new JFrame("MS Paint"); frame.setSize(1024,768); panel = … | |
Hi i'm creating a GUI and i have a couple menu items set up with options within those menus. What I'm looking to do is use those items inside the menus to open up more menus kinda like when you go down to all programs in your start menu and … | |
hello I wrote this code using classes and it keeps giving me the error message : a nullreference exception was unhandeled/Object reference not set to an instance of an object. I am trying to add stock code and stock shares to the list of transactions using a currClient As Client … |
The End.