199,114 Archived Topics
Remove Filter ![]() | |
hi !! i want to ask f how to add two values in php ? can u give me a sample code ? tnx and Godbless | |
I am supposed to make a charstack program that has to run an error. This is the Question: [COLOR="Red"]Add explicit error reporting for stack underflow via a checked exception (i.e., one that must be declared and caught). Provide a main program that tests this new capability.[/COLOR] I don't what the … | |
hi guys i've got a simple problem with fibonacci sequence.. I use tasm and my processor is amd and this, so far, is my code: [CODE].model small .stack .code org 100h start: mov ah, 02h mov cx, 07h mov bl, 31h mov dl, 30h A: add bl, dl int 21h … | |
i need help with preg_match i have [CODE] if (!preg_match('/^[a-zA-Z0-9-_]/', $filename) ) { print $error=... }else{ upload... [/CODE] How to improve the preg_match so i can use only a-zA-Z0-9 and this special characters "-_" nothing more. because as i did it when i have file with name abc def.pdf for … | |
hi, i need to build a slider. which is not there in the page when it loads. then after few seconds it appears and slides from the right hand side of the window and stops at some position on the screen. then after few seconds it changes its image into … | |
is it possible to import say 10 excel files into DB at once? like in PhpMyAdmin, I go and import each file one by one and they are added as new tables. is there some kind of php code I can write to take all files in X folder and … | |
i have been looking everywhere for an answer to this and i still havent found one that works what i want to be able to do is display the details of the user that is logged in but instead it shows the whole database here is my code: [CODE=php]<?php require('authenticate.php'); … | |
![]() | Hi guys, I seem to have come across a weird issue in internet explorer. I've been working on doing regular expressions for a register form, and I've checked it in Firefox, and Chrome and it seems to work for both of them but yet it doesn't work for Internext Explorer … |
I added an editor from this site [url]http://dhtmlx.com/docs/products/dhtmlxEditor/index.shtml[/url] it works when I add words but when I click submit the text doesn't go through the POST how do I do this? I added a textarea like in one of the examples on that site, and another button that when clicked … | |
I'm receiving an 'undefined index' error when calling a new window and I can't quite figure out why. Seems to me like the variable is not being passed, or holds no value, and again I can't figure out why. I use an identical code for 'state' with no issues. Here … | |
[code]website_name_txt.DataBindings.Add("Text", ds, "vinu_personal.WebsiteName"); website_address_txt.DataBindings.Add("Text", ds, "vinu_personal.WebsiteAddress"); username_txt.DataBindings.Add("Text", ds, "vinu_personal.MyUsername"); password_txt.DataBindings.Add("Text", ds, "vinu_personal.MyPassword"); others_txt.DataBindings.Add("Text", ds, "vinu_personal.Others"); con.Close(); this.Refresh();[/code] can u plss mention the solution. | |
Hi friends,I got a problem down here.. Ok here's part of my First GUI code. all I want to do is locate the[ICODE]labelImage[/ICODE] on the bottom half of the [ICODE]panel[/ICODE].. any idea..? I tried the following steps.but it didn't help Set the container's layout manager to null by calling setLayout(null). … | |
Am new to socket programming.Can you please help me with this issue I need to connect two computers which is already under some network using C#. After it gets connected I need to know the details of the "Task Manager" of the connected computer - (If any pogram/file is running … | |
I have around 20 tables in my database. I want to count every row of every table using COUNT and get a total. I have tried doing a separate select statement for each table then using UNION but I cannot find a way to join the results to get just … | |
Is there a way to hide or at least automatically minimize the "shell-like" tkinter window, while running it? | |
in a my page i have create che code for a modal dialog box in jquery: [CODE] <script type="text/javascript"> $(document).ready(function() { $('#dialog').dialog({ autoOpen: false, height: 280, modal: true, resizable: false, buttons: { OK: function() { $(this).dialog('close'); } } }); }); </script> [/CODE] i should want the window appears if a … | |
I'm new here, but it looks like an awesome place to get some help. My assignment is to write a recursive function that determines the value of a unit of Pascal's triangle given the row and column, then use that to display the triangle with n number of rows. It's … | |
I would like to create a textbox (search engine) that can search for items in a database that contains text as that keyed in the textbox. I am already aware of this code: bindingsource.filter = "table Like '" & textbox & "%'" EX: what I want is that when I … | |
sir i have one json i want deserlize this json how will i do iam try out but "Type 'System.String' is not supported for deserialization of an array." error coming here is my code : in cs file [code] using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using … | |
Hey everyone, I'm checking some bessel functions in python using mathematica, and I can't find anything online about how to import values into python with exponentials. I know how to values with exponents. For example: [CODE]x=2032.43 * 10 **23[/CODE] However, when I read in a data file, say with one … | |
Im new in C++. Please help me for using C++ from basic. What should i do ? | |
I describe my problem with following simple example. here when i click the test button it will create a new test button inside div tag. But after that if i clicked new generated test button document.getElementById("test" ).onclick = function() is not working. how can i add functions to new dynamically … | |
segmentation fault...:( some one help me pls.. [CODE]#include<stdio.h> #include<stdlib.h> #include<string.h> int main() { char a[50]; char *x[10]; int i,j,n; char *temp; printf("enter the no of strings:"); scanf("%d",&n); for(i=0;i<n;i++) { printf("enter the string:"); scanf("%s",a); x[i]=(char *)malloc((strlen(a)+1)*sizeof(char)); if(x[i]==NULL){ printf("malloc not done"); exit(1);} strcpy(x[i],a); } for(i=0;i<n-1;i++) { for(j=0;j<n-i;j++) { if(strcmp(x[j],x[j+1])>0) { strcpy(temp,x[j]); strcpy(x[j],x[j+1]); … | |
I've seen a lot of posts over time relating to importing and exporting CSV. Most of the answers involve using TextReader.readline and String.split, [B]which will not work[/B] with any but the simplest data. When you are writing for users who have the expectation that your application will work with anything … | |
Hi. I'm trying to write a simple scheduling script, but have run into a problem. I'm fairly new to PHP, and so have no idea how to update multiple rows in a mysql database. Currently, my code connects to the database and reads each row. If "class" is empty, it … | |
So I am creating an application that allows users to send basic keystrokes to end certain processes. But I am running into some issues. I know the code I have will work the problem is I do not know where to put the following code to execute the commands: [code] … | |
Alright back with the same but different example problem but this time I think it requires some "formating" and knowledge of "escape characters". As a novice programmer this is the caliber of trouble I am going through lol. Does this need knowledge of escape characters as well ? ("\t") would … | |
Hi. I’m creating a system for my client where he goes to a page where he types in a letter. The text is saved as a file (preferably PDF) and then sent as an email to a printing service. I’d prefer not to save multiple PDFs on my server, so … | |
I'm having a terrible time with regular expressions, possibly because I'm using a python2 reference, but maybe not. For example how would I find \s\w within a string and then change that character? | |
![]() | Hi, I am new to PHP and need help with my code to create files and folders based on variable values. Here's the setup: 1. I have approximately 100 categories. I've assigned a variable to each category. E.g. [LIST] [*]Variable 1 (as in $c1) contains category one's name. [*]Variable 2 … ![]() |
havn't programmed in c++ in well over a year and taking a new class at a different college. So I completly forgot how to work with linked lists. we are doing review so notes in book/slides don't include too munch information and is all in pseudo code. at the moment … | |
Forgive me if this is in the wrong spot. If it is, please move it to the correct location. Hello all, I am at square one of a very large project. I understand it will be a great undertaking and I'm not expecting miracles. In fact, I'm not expecting code … | |
I have 3 forms: Form1, Form2 and Form99. Form1 and Form2 both call Form99. What statement(s) does Form99 use to determine which form called it (Form1 or Form2). Form1 Form99.Show Form2 Form99.Show Form99 Which form called me? Thank You. | |
how we create a function/method in vb.net?? if i want to make a method of auto_generate_id, then how will i start? i have written this code please help me..... [CODE] void auto_generate_id() Dim j As Integer = 0 Dim cmd As New SqlCommand("select staffid from staff order by staffid", c.con) … ![]() | |
![]() | I would like my JSpinner to show up as having a Layout of GridLayout (3, 1), with; Panel.add (JTextField); Panel.add (Up_JButton); Panel.add (Down_JButton); and all 3 (contained) GUI components to be the same size. Is this possible? if (so) How? (My work around is to build it myself, which I'm … |
Ok this question is more like 'what is the term used for such as event?'. What I am trying to do with open a application config form in login window which is activated by combonation of keys pressed. for example alt+c or ctrl+alt+x. I tried using every term i can … | |
Hello everyone, I'm not a very advanced programmer and here is my problem: I'm trying to write a hangman game and I want to use online dictionaries as database. I created a windows form application to do that. Is there a better option to achieve my aim? I could find … | |
Ok so here is the problem... this is my code: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DesignOutput { class Assignment { static void Main() { Console.WriteLine("CCCCCCCCCC"); Console.WriteLine("CC\t\t##\t##"); Console.WriteLine("CC\t\t##############"); Console.WriteLine("CC\t\t##\t##"); Console.WriteLine("CC\t\t##############"); Console.WriteLine("CC\t\t##\t##"); Console.WriteLine("CCCCCCCCCC"); Console.ReadKey(); } } } [/CODE] Im trying to match this: [CODE]CCCCCCCCCCC CC ## ## CC … | |
Hi, I am getting errors when trying to run a website in asp.net 2.0. When opening in browser, Error is: HTTP Error 500.24 - Internal Server Error An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode. When clicking on debugging it displays an error … | |
I want it to be advanced like say if you pressed remember me on login then the next login it will log you in automatically. | |
What I want, is for my text file to be read into the array named "CFiles()". Then once this is complete to delete the file But I get the error, The process cannot access the file 'C:\Users\Andrew\Desktop\New.txt' because it is being used by another process. On 3rd to last line. … | |
load another form and i want a progress bar to work with it. | |
hey guys, just wondering how I can change this code to C++... It's an old code my brother actually made! [CODE] #include <stdio.h> const int ROW = 4; const int COL = 13; int main(void) { int i, c, max = COL; for(i = 0;i<ROW;i++) { for(c=0;c<COL;c++) { if(c == … | |
Please, please please someone help me. This might sound a little pathetic but I cannot figure this out for the life of me, it compiles just fine but i get the complete wrong output. Here is all the code I have. The problem: Write an application a that calculate the … | |
I have a program I want to make. The main thing I need help with. I'm no programmer so I'm asking here. What I want is a program that does the following, 1) Open a save (needs to open any type of save) 2) Then, 'hex edit' by finding all … | |
I have been trying to support certain built in commands such as 'cd' and 'help'. If I do 'ls' or 'mkdir' it executes them fine and they do what they are supposed to. If I type the command 'help' I get a segmentation fault and if I type 'cd' it … | |
I would like to develop a VB.Net based smart device app. A simple one. Do any of u know where i can refer to samples of such apps? | |
Hey there I'd appreciate some help with variables please. I have a search function on a site I'm building and would like to have it so that a user can click on a search result to see more columns from that row on the db, if you see what I … | |
The End.