64,152 Solved Topics
Remove Filter ![]() | |
Hi php developers, I m new to php and would like to ask anything wrong with below script? [CODE] $year = (date('Y', time()) - date('Y', $model->DOB)); [/CODE] I m getting error as title shown.any one know the problem? | |
I'm working on a mass text replacer program because I'm sick of all the 10-day trial ones out there that aren't very good. The entire program is basically finished (All easy stuff), but now I need to code the actual replace/delete stuff, which I'm stuck on because apparently the way … | |
[B]hi , i got an error.pls help me to correct. my code is[/B] [CODE] <form action="return.php" method="post"> <table width="200" border="0"> <tr> <td><h3 align="center">RETURN</h3></td> </tr> </table> <p align="center"> </p> <table width="41%" height="254" border="0"> <tbody> <tr> <td width="34%">Author:</td> <td width="66%"><p> <input type="text" name="author1" /> </p></td> </tr> <tr> <td>Title:</td> <td><p> <input type="text" name="title1" /> … | |
Hello Members of DaniWeb, I have run into an issue and need help solving it. I know how to go about adding items to My.Settings and I have already created the Specialized String Collection to My.Settings called List but I am having some trouble getting the items and the subitems … | |
Hi All, I was having trouble with getting my program to display all the necessary conversions. Here is a snippet of the code to help explain what I want to do: [CODE] private class CalcListener implements ActionListener{ public void actionPerformed(ActionEvent e){ String centInput, inchInput, meterInput, yardInput; double cent, inch, meter, … | |
[CODE] Public Structure TMProduct <VBFixedString(25)> Public productline As String <VBFixedString(25)> Public hinban As String <VBFixedString(25)> Public shortcode As String <VBFixedString(25)> Public fusible As String Public nutcount As Integer <VBFixedArray(11)> Public nuts() As Integer <VBFixedString(512), VBFixedArray(11)> Public tips() As String End Structure [/CODE] in VB6 the length of this structure is … | |
Ok how would I make a program take one file (thats not a text file) and save with a different name like there is a file with asdf.7z and I want the program to save a copy of it as qwer.7z how? And is there any way to do something … | |
[CODE] struct S{ int i; double d; S(const S & incoming_S):i(S.i),d(S.d){} }; void test(){ S myS=S( /*temporary variable*/ S(23,3.14) ); } [/CODE] Questions: 1) During initialisation, is the temporary variable S(23,3.14) actually created or can it (and is it actually for typical compilers such as VS2008) optimised away? 2) Same … | |
hi everyone, i never worked with php or any script language before i am more of a java, c++, C programmer, but for a school project i need to program a character converter in php, i have some problem recieving response from my php file. can someone help me this … | |
hello friends i just start learning Python and i am going through book "how to think like a computer scientist", in forth chapter it start using "GASP" which needs to be installed and book totally ignored the need of a newbies regarding installation. so after some mucking around i did … | |
I'm a Jr. in college and I'm in some clubs. This year the school has decided to make every club use a web site to track community service, attendance, etc.. The issue with this is the web site sucks. The way we were suppose to go about doing this was … | |
Hey guys, I have this code wherein I have 4 buttons to determine what set of values to display on my jtable. I've successfully displayed my data. After running the program, clicking a button, data is displayed in the jtable. Problem is, when I minimize/maximize the window, the data disappears. … | |
I am sorry but I am just starting and I suck. I've been spending the last hour on the site trying to use others' threads and the FAQ to fix this but I simply have not been able to do so. This is real simple. All my code is.. [CODE] … | |
I have a function C++ file, created in VS 2005. But I am not sure how to register that function in mysql, so that it get stored somewhere in mysql database and when the query runs, it should retrieve the func definition from the database itself.. Please guide me with … | |
I am having a problem with my C# datagridview. When I add data into it, it doesnt auto update. And nothing I found online works to update the view for the user during runtime. I've used refresh(), update(), invalidate(). Nothing seems to work. Can anyone help me out with this … | |
im working on a program written on vb 6. i actually want to implement a gif to work on my program. by implementing, i mean how to make a gif file work on vb 6. thanks!:) | |
Hello, I hope someone can give me some help. I have a datagridview (Unbound), wich calculate several numbers, and I use this following code to save 5 of the columns to a XML file. My problem is that I would like to load this file back to my datagridview, and … | |
[CODE]I am planning to make an application that can graph all functions.(polynomials, rational, trigonometric,etc) but I can't make a decision on which programming language I am going to use. I am choosing between Java and VB.net. what are the ups and downs of these languages? Which one would be better … | |
Hi, Can you tell me what is the regular expression for a comma-separated list (in this case - IPs) ? My list looks like this: [CODE] 192.168.0.1, 10.%.23.100, %.46.%.1 [/CODE] So far I managed to create this: [CODE] ^[0-9%]{1,3}.[0-9%]{1,3}.[0-9%]{1,3}.[0-9%]{1,3}$ [/CODE] But I don't know how to specify a comma-separated list … | |
I have the following code which works fine until I try and display graphics. Please tell me how I could/should display the odometer in graphics format rather than text. I have all the necessary images as .png(0 through 9) in the same folder as the following code. It is just … | |
i am trying to do this consider a=[[(34,5),(34,6)],[(35,5),(35,6)]] b=[(36,5),(36,6)] i want to put elements of b in a so i do a.append(b) now if i do b.pop() why does it effect a? a ends up being `a=[[(34,5),(34,6)],[(35,5),(35,6)],[(36,5)]]` WHY?? is there a way around it?? i don't think i had this … ![]() | |
I am trying to make a simple calculator for my code and I wanted to know, how can I have the user input a number like c++ cin >> number; and then just have my math functions do the rest. I have this so far... [CODE] public static void Main() … | |
Hi, below is my code, but when i send the message thru client socket i receive [COLOR="Red"]Specified argument was out of the range of valid values. Parameter name: size[/COLOR] Can anyone help me ! [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim serverStream As … | |
Why does this return None? [CODE]list1 = ['Herring','used','to','be','abundant','in','the','AtlAntic','Ocean','then','herring','got','overfished'] print list1.sort(key=lambda s : s.count('a'))[/CODE] | |
Hello everybody, Let me explain my problem. I have one datatable with all my data and the above function to calculate the eclidian distance. My function returns a DataColumn so I can add this column later to another datatable. The problem is that I´m not being able to populate the … | |
So I was looking at this problem , and in monodevelop (and Visual Studio). But for somereason I keep getting unreachable code or error in Visual Studio, I retyped and relooked over my code but I cant seem to find what the mistake is that I can run my code. … | |
I am trying to use the fileinput.input() module to read in the lines from a bunch of files in a directory and occasionally receive an IOerror exception. What is the best way to handle this exception so that if 1 of the items in the list i'm feeding fileinput,input() generates … | |
Hello there, Is there anyway i can open a ppt in web browser or may i can do things like slideshare does to view documents like ( ppt, doc ...etc ) any logic will help ! | |
Hello. I am trying to validate a customer number using isdigit. If the user accidently enters a character other than an integer, I want it to allow the user to try again. The problem is it only will check the first number and if that is a digit it it … | |
hello there, i'm having a bit of trouble about this. im making a regiter page for our project and im using PHP, and im having a little problem, it says that: Could not execute the insert query.. but i got all my fields right?.. [ICODE]<?php include("config.php"); if(isset($_POST['submit'])) { $fname = … ![]() | |
Hi all, I've been working on a piece of software for a few weeks now and I've got to the point where I'm publishing it and testing it on other computers, namely my colleague's. We're both working on the same network and have similar permissions for our accounts, but for … | |
I am starting a new project and the certain requirements will be: JSF, JPA, JMS, WebServices Rest and EJB3.1. There will be at least 4 servers. Probably this will be the division: first server for backing beans and JSF. Other two servers for EJB cluster and the last server for … | |
Hi, I am using eclipse: 3.4.1 and tomcat 5.5.25. I run the application on tomcat server created inside eclipse. Until 3 days back I could sunccessfully use tomcat server inside eclipse but now I get following message 'Starting Tomcat v5.5 server at localhost' has encountered a problem Server Tomcat v5.5 … | |
Downloaded autocomplete plugin. its not bring out results am using an access db. When I type in text it does the search but with no proposed results display in the drop down. Is there something missing? [CODE] <cfsetting enablecfoutputonly="true"> <cfparam name="q" default="" /> <cfquery name="qryGetCountry" datasource="dbtest"> SELECT DISTINCT Cities.RegionCity FROM … | |
Greetings, I'm a python newbie struggling with the obvious. I have a txt file with fixed width whitespace between the elements. Excel can't import directly because the size of the whitespace varies between columns. I have stripped the header out leaving only data. This is the code I've tried to … | |
Hi there, I'm making a simple C++ calculator. I want it to work something like this sample run: Begin Calculations 10 S // Set Accumulator to 10 = 10.000000 // Contents of Accumulator 2 / // Divide by 2 = 5.000000 // Contents of Accumulator 55 - // Subtract 55 … | |
So i'm creating a form, on the form is a panel (panel1) which holds all data, pictures etc... This is then to be made into a bmp for professional printing (ie 300dpi). A4 @ 300dpi = 2480 x 3508; i am able to create the image at the panel's height … | |
Hi, I have a table QuestionAsked which contains a column DateofAsking. Now what i need is to extract each date value and check whether the difference between that day and the current day is 14 or not. If yes than i have to update a particular column in that table.I … | |
Hello, I am trying to redirect “http” to “https”. I successfully followed the steps to create SSL Certificate as per this website: [url]http://robsnotebook.com/xampp-ssl-encrypt-passwords[/url] However, it seems that it didn’t work. I am still getting the following error messages: For IE browser: There is a problem with this website's security certificate. … | |
I'm having some trouble with this section of code: [CODE] for(int i = 0; i < MAX_NUM ;i++) { subList[i].readIn(); System.out.println("\nDo you want to enter another subscriber? " + "(Y/N): "); anyMoreSub = keyboard.nextLine().toUpperCase(); if (anyMoreSub.equals("N")) { break; } } while(!isDone) { menuChoice = JOptionPane.showInputDialog("Please enter the letter for " … | |
[code] <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#btnclick").click(function(){ $("#para").hide("slow"); $("#btnclick").click(function(){ $("#para").show("slow"); }); }); }); </script> <body> <form id="form1" runat="server"> <div id="para"> <p>The form contains a button to place the final order. In this example, pressing the button returns a simple JavaScript alert(), depending on the contents of the order. In … | |
I've made a simple function that takes a vector as an argument. If the vector is empty, it throws a domain_error (I've included stdexcept). I'm feeding it an empty vector from the main loop just to learn try...catch statements and when it catches the error, it's supposed to print something … | |
I can not for the life of me get an ajax example/tutorial to work. I have tried dozens including prototype library and JQuery. Here is my latest attempt: [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Easy</title> <script type="text/javascript"> function getXMLHTTP() { … | |
Now this question is being written in Scala, but Scala is Java compatible. I will translate the java code into Scala. // Write a recursive function "upto" // that takes two Int parameters "start" and "end" and produces a "List[Int]" // that counts DOWN from "start" to "end" (inclusive at … | |
I have a string that has a ton of random characters (pulled from a webpage). I want to pull all of the numbers, commas, hyphens, periods, and percentages from the page and put them into a text file. I'm new to C++ so I'm not sure how I'd go about … | |
Hi! I've been reading this for hours and I can't find the error. Obviously I'm brand new at reading codes so can anyone help me? I think the error is in the following line (under logo config). Thank you so much! // logo config ----------------------------------------------------// [CODE]function simple_logo(){ $src = (get_option('Simple') … | |
I have an assignment to make a program for Time Entry. I am trying to get it where the Get payment button is disabled when the program first executes and then enables once I have submitted hours for five days. Below is the code I have so far and any … | |
How do I do 2D opengl? I need to be able to put stuff up on the screen so that it is not rendered in three dimensions, and I need the 3d stuff to still be 3d behind it. | |
Hello, Despite much searching, I've hit a wall with trying to get a varying number of records inserted into a database. Here's what I'm trying to do..... I'm building an online sign on site for races at a sailing club. For the sign on page, I want to make it … | |
How do I check whether the data members of two objects belonging to the same class are equal? Will the following code do or is it done in some other manner?? [CODE=C++] class Sample { int a; public: S(int x) { a = x; } int getA() { return a; … |
The End.