199,114 Archived Topics
Remove Filter ![]() | |
Hi, I'm quite new to PHP and MYSQL, but I have chosen to do an A-level project in it. This is just a basic registering page, which I've copied and modified from one out of a book. That one works, but this doesn't, saying that "mysql_numrows(): supplied argument is not … | |
ill show the problem in the book first then ill tell you what i know. ___________________________________________________________________________ Then following formula gives the distance between two points (x1,y1) and (x2,y2) in the Cartesian plane: √ (x2-x1)^2 + (y2-y1)^2 its the distance formula..hard to type on here Given the center and a point … | |
Hello Allideliner!!! I am having problem in retrives values from textbox at aspx page to popup page? aspx page code: one textbox-- [CODE] <asp:TextBox ID="txtTopicTitle" runat="server" style="height:25px"></asp:TextBox> [/CODE] I want to use this txtTopicTitle values on the popup page(Default.aspx page ).. Then what is the process require?? I hope somebody … | |
Hi Guys and Gals, I'm a graphic designer working on a website for a client, but since I've never done a website of this magnitude before, I'm needing some help with PHP - a language that I'm crash-coursing on, but I'm no where near where I need to be. I'm … | |
I have a VB.net programming question i am loading values into a list box from the database in a form being used to edit a database record. the list populates fine using the following code. Protected Sub LoadCat() Dim myCommand As New SqlCommand Dim myReader As SqlDataReader = Nothing Dim … | |
how to make a simple password lock in c++?? i want a alphabetic lock btw thanks for helping | |
HI this is my code.it uses access database.But givs me this error java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause. import java.sql.*; public class DetOrderNum{ public static void main(String[] args){ Connection con=null; ResultSet rs=null; Statement stmt=null; int pkey=0; String mn="jin"; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:MY-PIZZA","",""); String q="select order_num from Order … | |
I started to do some reading about template, found interesting example [code] template <class T1, class T2> bool GetItUP (T1 a, T2 b) { return (a>b?a:b); } [/code] And the way to use it: [code] int _tmain(int argc, _TCHAR* argv[]) { int a = 20; float b = 23.90; GetItUP<int,float>(a,b); … | |
Hello all! So basically I start off with one array, then I run a function that takes 3 floats, puts those 3 floats into a temporary array, then it returns this new temporary array and where I call this fucntion, It looks like this: [CODE=c++] float array [] = { … | |
help !!!! please. array sort of 10 integers in ascending and descending order. thanks a lot plz... dani help.. | |
I am having a problem with the SQL INSERT command in VB. I am trying in move data from one table to another. The problem is I am going from a table with duplicates to one with no duplicates. Since there are duplicates the SQL statement bombs. Here is the … | |
How to check whether two tables in SQL are the same using vb.net? Would u mind giving me the code? Thank you so much!!! | |
hi please guys help am also trying to upload a small file and this is the code i used.i have have also tried looking at the [url]http://www.freeaspupload.net[/url] site but am very new and i learn as i do . i have used this code by the way it was 1st … | |
my code should accept 5 numbers, sum them up , average them.. and print the numbers that are below the average it doesnt appear to be working..why? [CODE]import java.io.*; class Pra1 { public static void main(String[] args) { Console console=System.console(); int size=5; int number=0; String allNumbers=""; String Snumber=""; int sum=0; … | |
I've been googling for a few days and have tried all kinds of connection strings, but none have worked so far. I have a webpage on one server (using ASP NOT ASP.NET) trying to connect to a SQL database on another server (SQL 2005 server). I tried connecting using .net … | |
I have a background in python and I'm looking for a new language. I am almost only interested in making games. I have come to 2 languages. C# and Action Script. C# because Microsoft allows you to make Indie XBLA games programmed in C# ONLY. Action Script so I can … | |
Ok I don't understand why the update statement only works once.. and after it rolls another 6, it wont add another 500 to the RP amount. [CODE]<?php session_start(); include("logincheck.php"); ?> <?php include_once("header.php"); ?> <td width='100%' valign='top' align='center'> <center><?php $dice = rand(1,6); echo "You rolled a<br /><b>{$dice}</b>\n"; if($dice == 6) { … | |
I have a JComboBox that is set to editable and has a keylistener attached. The input comes from a scan gun. What I am trying to do is if there are more than one item in the JComboBox, I need to scan a barcode that represents the # sign and … | |
Dear all, Q.No.1 1. I want to make a crystal report 2. It should have two datatimepicker 3. User select two diiferent dates and report must be run Q.No.2 1. How can i run a report when i pass a perametor from textbox. Please give me some Code thanks in … | |
[CODE]<?php // Code submited by Glimpsnet systems inc. $EmailFrom = Trim(stripslashes($_POST['firstname'])); $sendto = Trim(stripslashes($_POST['sendto'])); $Subject = "APPLICATION."; // $firstname = Trim(stripslashes($_POST['firstname'])); $middlename = Trim(stripslashes($_POST['middlename'])); $lastname = Trim(stripslashes($_POST['lastname'])); $gender = Trim(stripslashes($_POST['gender'])); $dob = Trim(stripslashes($_POST['dob'])); $email = Trim(stripslashes($_POST['email'])); $altemail = Trim(stripslashes($_POST['altemail'])); $fax = Trim(stripslashes($_POST['fax'])); $cellphone = Trim(stripslashes($_POST['cellphone'])); $workphone = Trim(stripslashes($_POST['workphone'])); $homephone = … ![]() | |
I have an scrolling side dhtml 9 menu anchored in a cell. The starting coordinates are offset x and y. What I am trying to achieve is that when the page starts scrolling, the offset changes to a different x,y coordinate closer to the top so my menu doesn't end … | |
Hi everyone, can someone help to solved this question I have attach the question.....please help me Thank you | |
Hi all I am newbie in python. I have a csv file with two columns first as source and second as target. There are multiple values assigned to keys in successive rows such as follows 1 -->4 1 -->5 1 -->8 1 -->12 2 -->4 2 -->17 2 -->14 2 … | |
Hello, I have created an application that passes a Handle of a panel to a DLL which is then used for creating a DirectX or OpenGL render window, all of which works fine. I wish to duplicate what is rendered in the panel elsewhere (basically multiple render windows all rendering … | |
I am working on a search function on RoR that basically just has a cool visual effect when a user clicks the search button. Here is the code in my view for search.rhtml [CODE]<html> <head> <title>Tutor</title> <%= javascript_include_tag :defaults %> </head> <body> <h1></h1> <%= form_remote_tag :url =>{ :action => :search_results … | |
Hi , I am trying to call c++ exe from java applet.For this purpose am using processbuilder.My code is as follows ProcessBuilder pb = new ProcessBuilder(s); Process process = pb.start(); final InputStream is = process.getInputStream(); OutputStream out = process.getOutputStream(); PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(out))); pw.println(1); pw.println(1 +"" +2); … | |
Ok, I have my username set as 1 under admin and this other account set as 0 under admin. But it's not showing the page to any of the accounts and only showing the else statement. Does anyone know whats the problem? Im so confused and I have been staring … | |
Hi, This is my 1st post on daniWeb. First i want to mention that i am complete Ametuer(noob) in programming. just trying to work around with C# and need some help. Ok my problem is that i have a LISTBOX on my page with Selection mode = MULTI, A label … | |
im trying to learn c++, so i stumble upon this programming exercise that asks the user to make a program that asks for 2 numbers, assuming that the second number is always the biggest in value, and adds all of the numbers in between the numbers entered including the entered … | |
Hi guys i'm using ASP.net ans SQL server 2005 with stored procedure to do simple search from a table in database.Plz help me out The error i get Function or procedure expects @searchKey which was not supplied. protected void btnSearch_Click(object sender, EventArgs e) { string constring = ConfigurationManager.AppSettings.Get("con").ToString(); SqlConnection conn … | |
Guys, Please explain what is happening here? [code=perl] #!/usr/bin/perl $line="abcd"; @arr=split("",$line); print $arr[$0]; $x="x"; if ($arr[0]==$x) { print "Hello"; } [/code] The output is: aHello Am I dreaming this? | |
Just recently, I have upgraded from gcc 3 to gcc 4.5.0. However, when I try to compile a basic "hello world" example in c++, I get the following warning: Info: resolving std::cout by linking to __imp___ZSt4cout (auto-import) c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: warning: a uto-importing has been activated without --enable-auto-import specified on the c … | |
Hello all! I am trying to create a simple app that takes something from an mysql database and prints it, I had some problems with the libraries at first, but now it compiles and shows me the black console window, but then suddenly it gives me some errors and in … | |
I just downloaded and installed C sharp for 2010 The connection to the database via the DataAdapter and then to the DataSet does not work. I am trying to tie the db to the textboxs on the form and then navigate the db with buttons like next prev etc. [CODE] … | |
hi,how to access the SQL sever database using ASP.NET.i can not access the server by using the same.some errors are showing when i try to create a database.can you help me to create a database? | |
Hello All, I have created simple login form through VS 2008 using C#. There are 5 different aspx pages in my web application. 1)Default.aspx: It contains only a hyperlink to direct the user to login.aspx page. 2)Login.aspx: This page has texbox for Username and Password, sign in button, textbox for … | |
I have a 150 page word file for work that i need to go through. What i would like to do is automate this since i rather not copy and paste all 150 pages. There are headings 1 2 and 3 in this file. Both Headings 2 and 3 may … | |
Hello everybody, I read this forum sometimes, but this is my first post :) I have a simple function for an intranet site that should make and return a XMLHttpRequest object in most browsers (including IE8): [code=js] function createXMLHttpRequest() { var xmlhttp = false; if (window.XMLHttpRequest) { xmlhttp = new … | |
Hi i am developing a custom form in asp.net. I developed in my laptop which has the latest IE 8 and Firefox version. 3.6.x ; however I run this on the customer browser and I got horible displaying on the design of the page, I am guessing that IE 8 … | |
Can i set margins if so then please tell me how? I am using this code but pagesetup dilog does not effect the print. [CODE]With PageSetupDialog1 .PageSettings = PrintDocument1.DefaultPageSettings End With If PageSetupDialog1.ShowDialog = DialogResult.OK Then PrintDocument1.DefaultPageSettings = PageSetupDialog1.PageSettings PrintForm1.Print()[/CODE] | |
I have some data encrypted with MD5CryptoServiceProvider. I need code for decrpyting. | |
Hi thanks in advance to anyone who can help as i urgently need some, im trying to return Context.Request.UserHostAddress.ToString(); from my class file so that my web service can display it. But i am unsure how to do it. I have been told about HttpRequest and HttpContext but have no … | |
hi, i looking for a way to resize a picture of any any to a custum size. in this moment i have pictures bigger than 3200px and i looking for a script that can handle that, the last script that i have tested simple "explode" with pictures bigger than 1800px … | |
hello everyone i have a problem in writing in word document the proble is that i want to append a string after a table i made in that document but it overides it the code is:- [code=csharp]//Text to word file StringBuilder strBuilder = newStringBuilder(); strBuilder.Append("<h1 title='Header' align='Center'>Writing To Word Using … | |
Hey, i have read "Accelerated C++" and i am "soon" done with "The C++ Standard Library". I would like to learn about Windows Forms Applications or something similiar where i can start creating more useful programs. Can anyone recommend anything? Is it too early for me to jump to this? | |
I have table something like [ID, ITEM_ID, URI, IMAGE_FILE_NAME, UPDATED_AT etc.]. I need to compare URI that can be something like /system/images/777/medium/Debrecen_-_University.jpg?1279547675 with IMAGE_FILE_NAME that is as Debrecen_-_Protestant_Great_Church.jpg Is there a way so I can provide IMAGE_FILE_NAME as sort of substring of URI and check if that substring is part … | |
I am learning stacks, and I am trying to get this program to work. I have to be able to add large integers such as 9999999999999999999999999 by pushing all the numbers on the stack and then adding them up. Currently it works with small numbers but large numbers it crashes. … | |
I am new to C++ and have a problem in a class I am taking.I am having trouble trying to create this the way my professor wants. this is what is required from the program: Write a complete program that prints out a “tree” of asterisks with the number of … | |
Hello friends, I know that on the Layout options of the DataGridView control that you can set the AutoSizeColumnsMode to "Fill". I noticed that the "Fill" setting is not available for the AutoSizeRowsMode. Does anybody know a workaround so that I can have all the rows automatically "fill" in the … | |
There is a school locator script at [url]https://www.ocps.net/parents/pages/FindaSchool.aspx[/url] When we input any address it returns schools located in that locality. For example: Use these details and submit the form Street Number : 3902 Street Name : Bobolink Street Type : Lane City : Orlando It returns a row having three … |
The End.