199,114 Archived Topics
Remove Filter ![]() | |
Hi. I am doing a C# windows form application and I am using Ms Access for the database. I have a sql query which retrieves data from 2 tables and I am displaying it in a crystal report. The problem I am having is for example i have 4 records … | |
I know everyone and his cat has one of these up but I'm just so stuck... I mean in theory I think I understand normalization and then I get down to it and I just... don't. I've been googling and looking through examples and I'm ready to tear my hair … | |
Hey, I have a question on how to make an inline style to this..: [CODE] $sqlCommand = "SELECT * FROM pages WHERE subjectid='" . $subjectid . "' AND showing='1' ORDER BY pos ASC"; //*** $query = mysqli_query($myConnection, $sqlCommand) or die (mysqli_error()); $PageMenuDisplay = ''; while ($row = mysqli_fetch_array($query)) { $pid … | |
Hi, I just started learning CodeIgniter. There is a library [ICODE]$this->load->library('form_validation');[/ICODE] for form validation with rules. Does that mean we don't have to use Javascript to validate forms anymore? Because, if we have to use those validators in CI (sake of the best practise), what is the point of using … | |
Hello All, I've been scouring the internet for code on sending email through lotus notes and this is what I found: [CODE] static void SendNotesErrorMail( string err, string file) { //Pass in file name string filename = file; //Pass in error message from TryCatch string errMessage = err; //Create new … | |
Unfortunately Array's aren't my strong point and this final lab is giving me a bit of trouble. Basically I need to make it so the code will return true if the given array is sorted in ascending order (lowest to highest). or it will return false. Then i need to … | |
Hello I have been using c for dummies along with bloodshed software for a day or so and I tried putting this snippet of code in from the book and I got a syntax error:[CODE]#include <stdio.h> int main() { char name[20]; char color[20]; printf(“What is your name?”); scanf(“%s”,name); printf(“What is … | |
Hello everybody, I have a xml socket server which get data from xml sockets out of actionscript3. Now I'm having a lot of if statements. Can I use another way to make my code more clean? Ivibot is a piece of hardware my school provided. LedBlink is a runnable class … | |
Hi all, I am kinda new to web design and also PHP. I am currently working on a Mobile Tyre Fitting website for my dad and need a little help on a search form. The search form has 3 dropdown menu's which are WIDTH , PROFILE and SIZE. I have … | |
[CODE]// student.cpp - Script 9.7 #include <iostream> #include <string> // Declare the Person class. class Person { public: Person(std::string theName); void introduce(); protected: std::string name; }; // Declare the Teacher class. // Teacher inherits Person. class Teacher: public Person { public: Teacher(std::string theClass); void teach(); void introduce(); protected: std::string clazz; … | |
hi.. I have a form that needs 10 inputs from a user.. Now my problem is, once the user have input the 10 needed information, he/she cannot input another information and there will be a message stating that he/she cannot input the information because past information have inputed. What do … | |
I need to keep my coding skills up to snuff, but I'm having kind of a block. I don't know what to code. Anyone have any idea of some small projects that I can work on? Perhaps ones that would look good if i sent them to companies? Don't ask … | |
Hello guys, I need help with this. When I run it, I get a blank page. Please Me out. [CODE] <?php //The Main Program $call_put_flag="c"; $S=50; $X=52; $T=0.5; $r=0.05; $v=0.15; BlackScholes ($call_put_flag, $S, $X, $T, $r, $v); //echo $call_put_flag, $S, $X, $T, $r, $v; //Commulative function function CND ($x) { … | |
hi any body help me. i am new user in web development i would like to know how to send mail using php.(localhost) while using wamp server. thanks and regards umesh daiya | |
Hi, I'm iterating an Arraylist inside a synchronized method, and I've set the Arraylist synchronized inside the method, but I still got the error ConcurrentModificationException. Why this is happening? [code] private synchronized TaskInProgress findTaskFromList( Collection<TaskInProgress> tips, TaskTrackerStatus ttStatus, int numUniqueHosts, boolean removeFailedTip) { synchronized(tips) { Iterator<TaskInProgress> iter = tips.iterator(); while … | |
Hello. i was wondering if this can be done,personally my knowledge of Java / ajax is bad.. How can i make the submit button unable to be clicked if there is no data in the input (usermsg)? [CODE]<form name="message" action=""> <input name="usermsg" type="text" id="usermsg" size="100" /> <input name="submitmsg" type="submit" id="submitmsg" … | |
i need a very simple coding of vb6 to control 8 leds connected with parallel port of my on-board parallel port. i need a little description with the coding to understand | |
Hi, I use [B]pulp[/B] module to solve my some optimization problems. With integer numbers, it works like a charm. I wonder if it is possible for pulp to work with real numbers. Here is a sample optimization problem I build for my project. [CODE] prob = pulp.LpProblem("example", pulp.LpMinimize) # Variable … | |
Hi Can anyone help me with path variables. My problem is a referenced a dll file as part of my project, and in the reference properties it has "C:\users\susan\desktop\project1\xfind.dll" as its path I tried removing it, and adding its reference to the windows system dir but it just goes back … | |
I commented by the last line. I am trying to print out the string in reverse. [CODE] #include <iostream> using namespace std; void add(string n); int main() { string B ="ABCDEF"; add(B); } void add(string n) { if(n.length() <= 1) { cout<<n[0]<<endl; return; } else { cout<<n[n.length()-1]; add(n[n.length()-1]); //this lines … | |
Hi guys, Im trying to write a program that find the biggest rectangle by its area. I've tried and it doesnt seem to compile. Can you help me please, thanks. [CODE] public class Rectangle { private int width; private int height; public Rectangle(int width, int height) { this.width = width; … | |
When reading books I was thinking that data hiding was to hide the data from the user so somebody who is using a C++ executable is an user and data hiding is implemented to hide the hide the data from the user( somebody who is using the exe file produced … | |
[CODE]import java.io.FileReader; import java.util.Scanner; public class diverScores { public static void main(String[] args) { Scanner kb = new Scanner(System.in); double [] score = new double [8]; double totalScore = 0.00; Scanner fileScanner=null; try{ fileScanner= new Scanner(new FileReader("divingdata.txt")); }catch(Exception e) { System.out.println("Input file not found"); System.exit(1); } while(fileScanner.hasNext()) { String fileLine … | |
I am trying to figure out how to make the return type of a procedure a reference parameter. Can anyone help me out? I am a complete noob so if you could try and explain things as best you can I would really appreciate it and would help. My code … | |
Hello Am new to PHP coding, and would like to get some very good tutorials on PHP forms and processing involved, with mysql may be included as well as part of the forms data to be used, anyone can suggest some nice sites or ebooks or tutorials? Googled some, but … | |
have problems understanding the logic of using variables inside this code. why ist it possible to use %s for different variables and how is it possible to use them as %1$s and %2$s...without even defining them somewhere...i just dont get it, the complete code can be viewed in the thread: … | |
I've been using this technique in several of my programs now for quite a while and haven't had any kind of trouble with it until now. Granted now things have gotten a bit trickier but I'm still doing the same basic concept of search through a string looking for a … | |
Hi, I have a list of lists such as : [[foo,1],[baz,1],[foo,0],[bar,3],[foo,1],[bar,2],[baz,2]]. I want to get all the different items in the inner lists and find the total number of them. I mean the result should be like : [[foo,2],[bar,5],[baz,3]]. How can I do this task? Thanks in advance. | |
I know that I can set it up in the property window but I need to do it in code. How? | |
i am working on a project in which, i have a text area and when the user enters some details in that text area, the data should be saved in a text file and the path should be saved in the database, when another user wants to access that text … | |
So I have a task to write the algorithm for eratosthenes' sieve. The code works fine apart from the fact that it just won't print the newline when i need it. It just ignores the syscall for printing. I tried googling but couldn't find anything similar to my problem. The … | |
I have never heard of it. I am researching on how to implement the internet to my program and I come across it. it seems to be easier then what I was trying to do for the past while. Could someone please link me to a website that can provide … | |
Hello friends, Forgive me If I am posting this on a wrong Section. I am developing an application in Android. In that I need to compare a Audio file with the Audio input(Singing Voice input) and tell that whether that is same song or not. So I dont know which … | |
Is it possable to un-include a file to reduce the footprint of a script? That is, after it is included, can it be un-included? | |
Hi I'm not an asp .net developer although I have done web development with php and mysql, I'm more of a software developer for desktop and mobile devices. So this is my first big project with ASP .NET. I have a question with the ASPNETDB database, understand that the database … | |
hi i want to show my table in afrid view reading from database but i couldint i tried many times can any one help me this is my code: [CODE] <%@ Page Language="JScript" Debug="true" %> <%@ Import Namespace="System" %> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.OleDb" %> <%@ Import Namespace="System.Data.sqlClient" … | |
what is the best regex to validate email. i would like to validate it to be a valid email not ex : [email]abcd@efgh.ijk[/email] | |
The Predator‐Prey game is a simple board game where bugs (predators) and ants (preys) move freely across the board. The following is a description of the game rules: -Predators and preys move on a 2‐dimensional closed grid -Predators and preys are not allowed to move outside the grid -The game … | |
In This Page How Can I Make The Page Title Get Its Name From (( Title )) In Database Ads [CODE]("SELECT * FROM ads where id='$id'");[/CODE] [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" dir="ltr" lang="en"> <head> <title>:: [COLOR="Red"]ZERO XXX[/COLOR] ::</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link href="http://www.e-alriyadh.com/favicon.ico" … | |
![]() | Hello everybody ;) I have written a kind of css (pre)-processor in PHP, and it uses the GET-method to acces to the file: HTML: [CODE]... <link rel="stylesheet" href="css.php?file=style.css" /> ...[/CODE] PHP: [CODE] ...$pss=file_get_contents("css/".$_GET["file"]); ...[/CODE] My problem is now, if a user types something like "css.php?file=../index.php", he gets the source codes … ![]() |
Hello everyone i have a text file that contains something like this. [CODE] 1 AC AT RR cOO 2 EE cFF HGB cEVY 3 WDU RWS cTY NBE [/CODE] but it contains a lot of rows and that's an example of the data what i want to do is to … | |
Hi Friend I need a alert msg display in php, without using javascript. Pls help me to solve it [CODE]$pqty = $bdatam["sum(curr_qty)"]; $pamt = $bdatam["sum(curr_amount)"]; $btotal= $bgtqty+$pqty;[/CODE] i want to display $btotal in alert msg display. Pls help me | |
I have the php which can import the csv files into mysql. But how to avoid the wrong data replace the data database. What is the code in php for checking before insert into the database? Thanks! | |
hi everyone i had a problem: my boss wants a program that can "determined a file if it is the beggining data or not(in the database)" and "calculate the time interval between the first data and the next data..and having an 10 minute interval before it proceeds to a next … | |
The compiler only displays a portion of the output and then it exits this is what it compiles: [code] =============================================== Operations on Empty lists: =============================================== Size = -886911509 Length = 0 empty list: Sum of two empty lists: Program received signal: “EXC_BAD_ACCESS”. sharedlibrary apply-load-rules all stringlist(2449) malloc: *** error for … | |
Hello everybody!! I'm trying to print a *.pdf file from Java code, and the printer out gives the right document, but smaller than the original pdf (smaller text, images, margins, everything), the print result seems shrinked from the original... Here is the code I'm using: [CODE] File f = new … | |
[QUOTE=~s.o.s~;610914]> how to make div id's as unique (since it need to identify a unique div for each row) One way would be to create a separate counter (e.g. i) which would be incremented for each "for each" block and create an ID dynamically by appending the common name with … | |
Recently, I am looking up some information about virtualization. I found it's so hot, while i don't think it worth it. Virtualization is done! Let's say that virtualization is feasible now. We have to consider these things. First, it just transfer the hardware cost to the service provider, while we … | |
I need to make an interactive program in Python that will start by asking the user to enter a list of numbers and then it will display the following menu. 1-Find The Maximum 2-Find The Minimum 3-Find The Average 4-Exit Please Enter Your selection Your program will accept a number … | |
i need to make a program windows application to insert an image and when the mouse is over the image a new form or frame get visible with a new image can some one explain stet to step of how to do it plz |
The End.