199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Nybuler

Hi all, is there any prblem with my array? why i can get the first element of the array [CODE] function GetNameByEmail($get_staffemail) { print_r($get_staffemail); for($i=0;$i<count($get_staffemail);$i++){ echo "<br />"; echo $qryGetName = "SELECT username FROM user_info WHERE email ='".$get_staffemail[$i]."'"; $rsGetName = mysql_query($qryGetName); $arrGetName[$i] = mysql_fetch_array($rsGetName, MYSQL_ASSOC); } echo "<br />"; print_r($arrGetName); …

Member Avatar for vibhaJ
0
118
Member Avatar for xanawa
Member Avatar for KenPeterson
0
109
Member Avatar for sourabhacooli

i want to get full path in one variable which are writen in fileupload

Member Avatar for KenPeterson
0
136
Member Avatar for leo88

Hi, i am here to ask some button control problem in Visual studio: [CODE] private void button1_Click(object sender, EventArgs e) { Report newMDIChild = new Report(); // Set the parent form of the child window. newMDIChild.MdiParent = this; // Display the new form. newMDIChild.Show(); } [/CODE] In my program, when …

Member Avatar for polczym
0
387
Member Avatar for wenbnet

Hello Sir, I want to perform following action please help!!!!!!!!!! when i click on a item in a listview it would also show in a separate label..... i didn't know how to do this????? please help.

Member Avatar for Luc001
0
903
Member Avatar for divyakrishnan

Hi.. I have a problem with my project. I want to create dynamic radio button group with different names. [CODE]<script language="javascript"> function changeIt() { my_div.innerHTML = my_div.innerHTML +"<br>Skills<input type='text' name='mytext[]' value='mytext'>"; my_div.innerHTML = my_div.innerHTML +"<br><input type='radio' id='my' value='mytext' value='male' name='radio[]'>"; my_div.innerHTML = my_div.innerHTML +"<input type='radio' id='my' value='Female' name='radio[]'>"; //var el …

Member Avatar for divyakrishnan
0
5K
Member Avatar for mklein

Dear all I am making a program which adds lots of jlabels to a frame (the idea, eventually, is that each jlabel will link to a different program on my dekstop) The trimmed down code below shows that I have a script which creates an array of multiple jlabels which …

Member Avatar for JamesCherrill
0
307
Member Avatar for pinkygirl

Hey, I'm currently working on a social network website in ASP.NET, C#. I want to know the steps to create a chat application. Kindly guide me, Thanks.

Member Avatar for pinkygirl
0
83
Member Avatar for kukuruku

Hi,I have to write code in java and in the description is this symbol u' Can anybody tell me what is the meaning of it Set (u')

Member Avatar for JamesCherrill
0
77
Member Avatar for jacksantho

Hi, I don't have any idea on this error: [B][CODE] Object of class variant could not be converted to string.[/CODE][/B] I am facing the error in this block.Please have a look on this: [B][CODE]IF($g!="P") { mssql_close($dbhandle); //*** Close & Quit ***// $excel_app->Application->Quit(); $excel_app = null; $Workbook = null; $Worksheet = …

Member Avatar for twiss
0
362
Member Avatar for samarinder

I am stuck in quite a tricky problem, That is - My session which contains username is getting invalidating on page refresh in Firefox Mozilla. Same is working fine in IE-9 I am pasting the code of both header and index.jsp file. [U][B]Header.jsp[/B][/U] [CODE] <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> <%@ taglib …

Member Avatar for samarinder
0
1K
Member Avatar for Simplicity.

Hi all, I have developed the code below to solve a non-linear scalar hyperbolic conservation law (Burgers' equation). I want to advance to solving a one dimensional system of Euler equations for Gas Dynamics (which is also a hyperbolic partial differential equation) in the similar manner. Can anyone advise on …

Member Avatar for TrustyTony
0
195
Member Avatar for neilio86

I need to figure out how to get the min/max in this array. I heard that it can be done using the algorithm library. we have yet to learn that. any help would be appreciated. [CODE]#ifndef Lab4_h #define Lab4_h void GetTemperatures (int Temperatures[], int NumTemperatures); double ComputeAverageTemp (int Temperatures[], int …

Member Avatar for pseudorandom21
0
258
Member Avatar for jacksantho

Hi, [CODE][B]while($row = mysql_fetch_array($result)) $rows[] = $row['crseid']; print "<td>"; print "<select name='ccrseid'>"; foreach($rows as $row) { echo "<option value='$row' selected>$row</option>"; } print "</select>"; print "</td>"; [/B][/CODE] Always, i am getting the last values. I can't retrieve the remaining values. Without $_POST[] ARRAY,how i can print the select option values without …

Member Avatar for vibhaJ
0
950
Member Avatar for Tehim

I find for just numbers type_digit() works great combined with addslashes() but what about for a mixture, to prevent SQL injection?

Member Avatar for digital-ether
0
788
Member Avatar for Labdabeta

Is there any software out there that can help me create 3d models for use with OpenGL drawing of models (i.e: triangles, square and polygons in 3d space). I need to be able to make polygons in 3d and be able to access the values of the vertexes. Does anybody …

Member Avatar for mrnutty
0
112
Member Avatar for darkdai

hey everyone, i was wondering if anyone can tell me how to prompt the user the enter the filename to be searched for using FindFirstFile. and if there a way of setting a default path to search in

Member Avatar for Ancient Dragon
0
111
Member Avatar for leo88

Hi, I am still a new in C# and visual Studio. I now wants to create a database in visual studio, after i click file in visual studio, as step below : 1)file>> new >> project 2) Other Project types >> Database Is that my steps correct? Where to find …

Member Avatar for leo88
0
96
Member Avatar for CrazyProgrammer

My question is a simple one how do I bind a passwordBox defined in code ie: [CODE] public PasswordBox Password { get { return m_pwd; } } [/CODE] to a contentpresenter in wpf considering that the datacontext of the usercontrol is already set to the .cs file that contains the …

Member Avatar for CrazyProgrammer
0
220
Member Avatar for breezi3

I need help completing the classes below, I don't think the code I have so far is correct because I keep getting errors. Please help me complete and understand the classes. 1. Create an abstract class named CoffeeOption. This class should have the following components: a. A protected double instance …

Member Avatar for NormR1
0
216
Member Avatar for SMITA6076

[CODE]/*********************************************************************************** * * File: Customer.java * * Author: Austin Smith * * Date: 04/04/2011 * * Description: The Customer class handles all client information * such as name and address. * **********************************************************************************/ public class Customer { /*** Defaults/Constants ***/ public static final String DEFAULT_NAME = "ERROR: Invalid Name"; public static …

Member Avatar for SMITA6076
0
253
Member Avatar for Troy III

Since the Firefox [Bug 633133] of the [B]in[/B] operator on DOM Collections has ben finally fixed - We can now write a short fast and clean function of the method "Contains" for FirefoX to check if x.contains(y). And vice- versa. What we will need is: a prototype and we'll chose …

Member Avatar for Troy III
0
633
Member Avatar for Kprosser1029

Hi I need help creating a word count file, the file should print the name and number of times the words were counted in a file. I need to use the JFileChooser and the results should be printed in the resultArea of the JTextfield. example: and 33 use 24 Here …

Member Avatar for NormR1
0
292
Member Avatar for ret801

can someone show me the syntax for inserting Number literals and strings into python strings like the print statement for example(i.e print("string %s"),(SumNum)) .. I have forgotten. and could someone explain the difference between syntax and semantics to me , i have forgotten that also XD

Member Avatar for ret801
0
139
Member Avatar for JohnDove

I'm confused about how to link my app to an Access database - there seems to be a number of approaches. I can add in my database via the Data Sources tab. Fine if I want to bind controls and view/edit data. But is this the best approach for queries …

Member Avatar for vagheladev
0
124
Member Avatar for centerline00

Hello all, I am having a mental blank on checking user input (that is string) to check if it contains an integer value. as in: [code]for(i=0;i < nNames; i++){ cout<<"\nEnter a last name: "; getline(cin,name[i]); [/code] I have checked the C++ string class for string.length() and others, I am just …

Member Avatar for centerline00
0
263
Member Avatar for bangla

Hi, I have the below code which counts the number of visitors for my webpage. it works fine. <a href="http://csshtmltutorial.com"> <img src="http://csshtmltutorial.com/counter.php?display=uniques&style=12100" alt="total visitors in Job Page" border="0" /> but i want to set a different counter for a particular page. that means when visitor comes to my webpage i …

Member Avatar for almostbob
0
206
Member Avatar for programing
Member Avatar for Narue
0
155
Member Avatar for Labdabeta

I decided to post this problem in a new thread. I have a simple program in OpenGL and it doesn't work. What happens is that a transparent window forms and when you hit the 'X' it says that the Release of the Device Context and Rendering Context failed. Here is …

Member Avatar for Labdabeta
0
203
Member Avatar for niche1

I need to understand how to positition/float an image created by php. I know how to position/float JPG in PHP, but am unclear of how to position/float an image generated by PHP. This script displays a barcode in the upper left-hand corner of the page. I think the header script …

Member Avatar for diafol
0
234
Member Avatar for ToucheAmore

so im a noob at coding just started yesterday. I bought a visual basic 2010 guide book and i am working on my first example/practis program. I keep getting this error in my code before i go to try to test it out. 'picShowPicture' is not declared. It may be …

Member Avatar for Thijk
0
143
Member Avatar for praveendasika

In the below code , what is the 'e' in 'e.X.ToString()' and how do you know that you have to use the letter 'e', what does it represent , I can get around this bit please help [code] public partial class ImageTest : System.Web.UI.Page { protected void ImgButton_ServerClick(Object sender, ImageClickEventArgs …

Member Avatar for zachattack05
0
168
Member Avatar for buster2209

I want to change the text color [I]programmatically.[/I] eg; [CODE]textBox1.Forecolor = Color.Red; textBox1.AppendText("Red Text/n"); textBox1.Forecolor = Color.Green; textBox1.AppendText("Green Text/n");[/CODE] The problem is, this changes the [I]entire[/I] text to green where I want to have the two different lines in two different colors. Can someone help?

Member Avatar for gusano79
0
147
Member Avatar for davy_yg

HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map. I already installed IIS in windows 7. When I try to browse …

Member Avatar for svilla
0
178
Member Avatar for lexusdominus

Hey, ive got two string types [CODE] string string1 = '1'; string string2 = '2'; string string3 = string1 + string2; [/CODE] Ok, ive simplified my code. I would like string3 to equal '3', and not '12'. I dont know anything about casting. Please dont tell me to use an …

Member Avatar for lexusdominus
0
121
Member Avatar for arunmag

Hi friends, I just wrote a small batch file that open an application. When it opens that it displays a window with four buttons and by default the cursor in on the firs button. Now I want to click on the second button that browses for the files to open. …

Member Avatar for Batch Devil
0
246
Member Avatar for n3red

I wanna know how to print only part of a string. For instance: [CODE] public static void main(String[] args){ String a = "daniweb.com"; System.out.println(a); } [/CODE] I wanna say print only characters after the 4th one so the output would be: [CODE]> web.com[/CODE]

Member Avatar for n3red
0
121
Member Avatar for Bitprior

Hello, and greetings to those I may be speaking with in this thread over time. I present to you a problem, rather fringed and minimal and troublesome. First, I'll start by saying that I don't really consider myself a programmer so much as I do an enthusiast who now, suddenly, …

Member Avatar for rubberman
0
197
Member Avatar for dante5458
Member Avatar for gusano79
0
102
Member Avatar for matadori

I'm trying to program the traditional minesweeper game. I have problems with Swing as I'm not sure how to proceed. I tried adding one JPanel to a JFrame and then using JButtons to imitate the tile buttons. Then I encountered a problem when I tried to program the functionality of …

Member Avatar for JamesCherrill
0
135
Member Avatar for Jsplinter

I'm just starting a search for a library or code sample for grouping numbers together based on their distance from one another. For instance, in the set{1,2,4,25,28,29}, is there an algorithm that would identify two groups of numbers subsetA{1,2,4} and subsetB{25,28,29}? Nothing really came up in my google search, but …

Member Avatar for Jsplinter
0
258
Member Avatar for Arunabh Nag

How do i find out the number, names and datatype of fields in an Access table.....using code.....

Member Avatar for SadiSerdari
0
2K
Member Avatar for garrypeace

Here is the ListView I have for the products page: [CODE] <asp:ListView ID="list_view" runat="server" DataSourceID="SqlDataSource1"> <ItemTemplate> <table class="single_product"> <tr> <td> <img src="<%# Eval("image") %>" /> </td> <td> <asp:Label ID="nameLabel" runat="server" Text='<%# Eval("name") %>' /> </td> <td> <asp:Label ID="descriptionLabel" runat="server" Text='<%# Eval("description") %>' /> </td> <td> <form action="comments.aspx" method="post"> <input type="hidden" …

Member Avatar for matthewskyle
0
114
Member Avatar for jacksantho

Hi, I installed Xampp on my server(windows 2003).I am having perl script(i.e cgi program).Inside cgi program, i wants to use HTML HYPERLINK-that should points to my PHP program and plus i wants to pass one parameter to this hyperlink. Is it possible to call PHP script?If is it possible means, …

Member Avatar for jacksantho
0
220
Member Avatar for hawx

I am trying to create a basic a accordian style menu. Im guessing i have done 90% of the code, but a little stuck now. I have three widget and what I am attempting to do is hide all the widgets apart from the one actually clicked. My code so …

Member Avatar for hawx
0
92
Member Avatar for stupendousomega

I have a user input an integer... But if it's really long, it throws an exception and starts looping infinitely. How would I make it cut the number after the first 7 digits and only use that? Like, if I inputted 654897654321648435435135813513843513543514, it would only accept 6548976. Please help.

Member Avatar for mrnutty
0
215
Member Avatar for matadori

I'm trying to remove a JButton from a JPanel but my code does not work. Any help is appreciated. This is the JButton. Problem is the line 25 I guess. [CODE] class SquareButton extends JButton implements MouseListener { String text = null; GameArea ga = null; public SquareButton(GameArea ga) { …

Member Avatar for mKorbel
0
2K
Member Avatar for lxXTaCoXxl

The idea is to do basic math to find the difference in size between the object and the form. To do this take the object size (int1, int2) and the form size (int1_1, int2_2) then get the difference by subtraction. The math is (int1 - int1_1, int2 - int2_2) so …

Member Avatar for lxXTaCoXxl
0
227
Member Avatar for kutuup

I've trawled the internet searchiing for an explaination on how to do this. I'm working on an assignment and we are told to "transmit a whole object to the server". As far as I know, the send function of winsock2 only allows you to send data of type char, so …

Member Avatar for kutuup
0
496
Member Avatar for niths

hi all, i had a problem with displaying the data in textbox. My code is here [CODE] string note = "SELECT Notes,NDate FROM Ticket_Notes WHERE TicketNo ='" + tktno.Text + "' "; SqlCommand cmd3 = new SqlCommand(note, con); SqlDataReader id = cmd3.ExecuteReader(); while (id.Read()) { dnotes = id.GetValue(0).ToString(); ndate = …

Member Avatar for CsharpChico
0
186

The End.