199,124 Archived Topics
Remove Filter ![]() | |
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); … | |
| |
i want to get full path in one variable which are writen in fileupload | |
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 … | |
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. | |
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 … | |
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 … | |
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. | |
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') | |
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 = … | |
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 … | |
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 … | |
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 … | |
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 … | |
I find for just numbers type_digit() works great combined with addslashes() but what about for a mixture, to prevent SQL injection? | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
hi plz i wanna ask how i can print stack from bottom to top ... :( ? | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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. … | |
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] | |
![]() | 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, … |
How can i count the number of zeros in an integer using assembly ??? | |
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 … | |
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 … | |
How do i find out the number, names and datatype of fields in an Access table.....using code..... | |
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" … | |
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, … | |
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 … | |
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. | |
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) { … | |
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 … | |
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 … | |
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 = … |
The End.