199,113 Archived Topics
Remove Filter ![]() | |
I've looked and looked for some good material on this exception, but I can't find anything helpful. I just don't understand it. It's suppose to be caught or thrown whenever a method is called when not suppose to be...But won't other exceptions be caught or thrown in it's place? If … | |
I couldn't decide where would be the right place to post this, so I decided to try php since Wordpress is at least built in php. I need to find a way to duplicate my Wordpress installation on a subdomain. I want to create a mobile version of my site … | |
This script will display a previous next script that will look like this: << prev 1 2 [b]3[/b] 4 5 next >> It is clean, and avoids large numbers of pages in the prev/next links [code=php] $server = "localhost"; $user = "username"; $pass = "password"; $databasename = "yourDBname"; $db = … | |
I am trying to count the number of hits a value in one file(column) falls between an interval from another file (two columns). I am completely stuck on how to map it. I tried something like this: for line in file1: if line[0]=line2[0] and line2[1]<line[1]<line2[2]: print line I'm not sure … | |
[CODE]OleDbCommand com = new OleDbCommand("update cus SET cus_name = ('" + textBox4.Text + "'),order=('"+textBox6.Text+"') WHERE no = ("+textBox5.Text+")", con);[/CODE] its giving a syntax error | |
I have created form where the values are taken from the form. I still get and an error when I put my form value in the statement. But when I run the statement separately it works but now when I combine it doesn't. [CODE] <cfif not isdefined("Form.frmpricerange")> <cfset Form.frmpricerange = … | |
I want to calculate the age of a person, when he/she inputted his/her brthdy on the form, it will shows his/her bday in year/month/day format Example, the user chooses February 11 1994 on the drop down list. when he/she click submit, it will display his/her age Output must be like … ![]() | |
Hi, My application is in VS2008 coded in Vb.net. I have a datagridView which is getting populated from the Database.I has RegNo,RollNo,Name etc fields.The data in the Name column of database is coming from 3 columns of a certain table from database. This is how im concatinating it and displaying … | |
I am trying to work on some code for updating google docs using the python gdata api's. The code works perfectly fine when i try to run the code in a cafe internet or home network without my proxy. When i have to deploy the code in my workplace - … | |
Alright , so I spent _forever_ trying to figure this out. So, if any newbies here need to know how to write and read ANY object (with the exclusion of pointers, but I'll get to that), this is something that can help. First and foremost, you have to take endianness … | |
Here I am searching a string in text file and replacing it with new string. In this code it finds but the new word wrights at the end of the text file and not replacing. Plz. can anybody help me..... [CODE]#include<stdio.h> #include<conio.h> #include<string.h> void main() { FILE *fp; int f=0,l,n=0; … | |
I want to add rss to my site that checks information about the url the user has posted then returns the image from the site, and brief describtion of what the site does.....just like the way facebook does it when user posts a url. Any ideas how it's done or … | |
[CODE]<html> <head> <title>Web Development</title> </head> <body> <h2 style="text-align: center">Personal Information</h2> <?php // FOR PERSONAL INFORMATION PHP //text area First name if(empty($_POST['name'])) { echo "<p>You didn't enter your name.</p>\n"; } else { echo "Your Name: <b>" . $_POST['name'] . "</b><br />\n"; } // function get_Age_difference($start_date,$end_date){ list($start_year,$start_month,$start_date) = explode(‘-’, $start_date); list($current_year,$current_month,$current_date) = … | |
I'm Having a problem in it, don't what what it is : m having a syntax error [ICODE]OleDbCommand com = new OleDbCommand("update cus SET cus_name = ('" + textBox4.Text + "'),order=('"+textBox6.Text+"') WHERE no = ("+textBox5.Text+")", con);[/ICODE] | |
Hi Guys, Can't seem to get my head around this one. I need to send a bunch of variables to php so that i can store the values in a database, but i just can't figure out a way to do that. Pls help. here's a little code [code] $( … | |
Hello Highlly Tinker Guys, I want XPath of Each Node in XMlFile in Vb.net Below Is my Code on button click event [CODE] Dim szXMLDoc As XmlDocument=New XmlDocument() szXMLDoc.Load(Server.MapPath("ChurchFolders.xml")) '------Code to find xpath for each node----------- [/CODE] The ChurchFolers.xml file is As below [code=xml] <xml version="1.0"> <folder id="parent" path="~/MyChurch"> <folder … | |
Is it better to use structs over classes for serializing class settings? Class settings can have initial default values. [code] [Serializable] public class LevelSettings { // Default level values public int Depth = 3; public int Height = 3; public TileSettings[] TileSettings = new TileSettings[27]; public int[] TriangleIndices = new … | |
Hi, I am trying to write a program having file handling. In it, I write an object in a .dat file. Is there any mechanism to read a specific object from a file? Is there any method like 'fseek()' as provided in C? | |
Greetings, i'm currently developing a web browser for my school project (i'm kinda new to advance visual basic)... it's 75% complete and the only problem i encountered is that when i enter items for the combo box it accepts duplicate .. for example i entered [url]www.daniweb.com[/url] and re-entered it again, … | |
Can anyone help me with this? or alter the code of mine when it comes to the user Input here's the block of code of mine [CODE]public int Remove(int i, Briefcase c[], String[] m) { int nChoice = 0; System.out.print("\tPlease remove " + i + " cases: "); nChoice = … | |
I want to browse & upload file to a folder.How can i do that in java.I can browse for a file.This is the code that i used.... [CODE] JFileChooser chooser = new JFileChooser(); chooser.showOpenDialog(null); File file = chooser.getSelectedFile(); String filename = file.getName();[/CODE] Plz tell me how to upload a file … | |
[url]http://ouraubie.com[/url] please check out my site. the link is located at the first line of my post. that's my error. and then the line 44 contains: [CODE]include ("/view/login.php");[/CODE] it worked here using xampp but after uploading it, that warnings comes out. i figured out some RULES that a "session_start();" must … | |
Hi, I am just starting to code in C. While using the [code=c]#define sec 3600[/code] the compiler returned an error - expected identifier or ‘(’ before numeric constant. [code=c]#define sec 3600 #include<stdio.h> #include <stdlib.h> int main(){ /*Rest of the code*/[/code] If I change sec to seconds, the compiler does not … | |
Hello guys, I am very new to Java. I've been trying to select two different tables but fails. The error is "Invalid operation at current cursor position.". Here is my code. [code] private void display() throws SQLException{ TableModel model = schedTable.getModel(); PreparedStatement stmt = con.prepareStatement("select * from APP.SCHEDULE"); ResultSet sched … | |
I am trying to write an application that will detect all the USB devices connected to my computer. For this I have declared GUID and called the following functions to get the information about devices connected. LPGUID guid; HidD_GetHidGuid(guid); HDEVINFO hDevInfo; hDevInfo = SetupDiGetClassDevs(guid,NULL,NULL,DIGCF_PRESENT | DIGCF_INTERFACEDEVICE); But it give the … | |
There was question about encryption in Delphi/Pascal forum and a guy was suggested reversing the bits as additional step (I do not know if he in reality meant XOR 255, that is making 0's 1's and vice versa). As it keeps still same distribution of letters I suggested as better … | |
I am using a image slider in my page. but sliders moves to fast. I want it's will be move slowly. so help me. | |
Hi guys Is there a way, where i can get two values from a option tag. I have form that needs to have values for it to display e.g My form looks like the following. [CODE] <form method="post" name="frmone" action="Result.cfm" enctype="multipart/form-data"> <select name="selvalues" id="selvalues" class="input_style-1" id="selvalues" style="height:19px"> <option value="1">Select Result</option> … | |
Hello, Last year my team wrote a VB .Net project that used the webbrowser control to automatically fill out user forms, click images, action buttons etc. for a web application used in our company. This year, the web application was upgraded to version 3.0. We got the application in our … | |
Hi to everyone I’m wondering how to make some simple checkbox for multiple data delete from mysql I found some tutorial on net but don’t work. I tested it without changing anything and doesn’t work. I’m wondering did programmer test it before he posted that tutorial ? Here is a … | |
Labels, Textboxes and Buttons You will construct a form-based program to play the ancient game of Nim. In the game of Nim, 2 players would remove objects from a pile in alternating moves. The player could remove 1, 2, or 3 objects at a time. The player who is forced … ![]() | |
Hi, I am working on a small application that uses a WebClient to download an XML file via an API call. Just downloading the file is fine, that all works but I really wanted some way to show the download progress to the end user. Searching on the net I … | |
I am using java to create a program that gives the user the option to either add two numbers multiply two numbers or see if the 2 numbers are equal this is what i have so far. I know hot to the menu option so that is ommitted. how can … | |
Hi all, I want to create an application to send an sms message to multiple clients. can somebody help how to go about it or send a php code that can do so. | |
Can someone please help with some coding. I'm not terribly familiar with PHP but I can't figure out why it won't take. I'm making a contact form and this is what I get when I press the submit button. Parse error: syntax error, unexpected $end in D:\Hosting\8304515\html\contact\contactformprocess.php on line 52\ … | |
Hi, *I need to randomize a multidimensional array so that the order of questions in a questionnaire is different for each participant. I have limited php skills, and am modifying an old script someone else wrote. Currently, questions are presented in the same order that they are listed in the … | |
hello i am a beginner python developer and i am search about python projects for beginners for i learn and know how can i make program in python and thanks | |
Example 1 The button is a blob of colour (.jpg) with text over the top. I want two things to happen: first, when the cursor is rolled over the .jpg and then the text, I want the text to change colour. This works ok. Second, I want to link to … | |
Guys any idea how to implement the said code... Implement the IMultiSet interface below into MultiSet class [code] public class IMultiSet{ // add x to this multiset (x must be 0-9) void add(int x); // remove x from this multiset if there are occurrences of element x (x must be … | |
how can i search a database lets say the police database for felons that they have online is there a way to manipulate the code to do that | |
how to change the value of a button? for example "Add" then change to "Edit"? tnx. | |
Good day, I am getting an error on a log-in script: mysql_query(): 4 is not a valid MySQL-Link resource I've done some research on this and followed such advice as: [LIST] [*]ensuring the mysql connection is closed after the results have been returned [*]testing any sql strings I define in … | |
I'm trying to using Try, Except to check an input() to make sure it's not blank. I'm using it at a different part of my program to check a float(input()) and it catches it if someone leaves it blank or enters a string, but I assume that's because it's checking … | |
Hi I have used the following code to populate a DataGrid based on the contents of a textbox. the users searches for a name which is populated into a combobox based on the name in the combobox several textboxes are populated with data based on the data in one of … | |
I need to run several commands more than 400 times for a mass number of files. Therefore, I'm trying to incorporate the commands in to a python script to automate the processes. Even though the commands run successfully in the the windows command prompt (I have manually tested the commands), … | |
I have a webpage that builds an html table if there is any data in a mySQL table. That works fine, the html table is populated with data from the mySQL table. My problem is when there is data it populates the html table but lists the first mySQL table … | |
Hi, I'm writing a program that checks parens/brackets/braces if they are paired. Tha catch is I have to write my own stack functions, this is my code so far, it used to work when I was working with just the parentheses, now that I added more options it's not working … | |
Hi how would I go about creating a payment schedule based on a date and a number of months 3 or 6 or 12 to then populate the database with reoccurring dates so lets say new user added on 31/10/2011 for 6 months I need the database to add all … | |
I receive this error in a c++ program after moving the program from Mac OS X to windows...I was using XCode, I am now using Visual C++...I looked up the error codfe but don't understand how to apply the solution. Here is the solution as stated by microsoft: A type … | |
Hi there, I am a newbie to MSSQL. I apologise first as I know that my question might have been asked by others elsewhere but unfortunately I couldn't find it. I will really appreciate if someone can shed some light into my question. I have two tables with the following … |
The End.