199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for puvi

Hi, Its been couple of month i started learning php. I am using xampp, php version 5.3.1, notepad++ to edit. I wanted to use a debugger, so downloaded xdebug5.3vc6 32bit version and DBGp plugin, did the changes as mentioned [URL="http://amiworks.co.in/talk/debugging-php-using-xdebug-and-notepad-part-i/"]here[/URL]. Problem is php is not recognising xdebug. when i run …

Member Avatar for puvi
0
148
Member Avatar for fenomenal

I have to create a class that will pick partners at random for my class tomorrow, out of the people that are in it. What I have so far is simple enough... [CODE]import java.util.*; import java.util.Random; public class GetPartners { public GetPartners() { } public void getPartner() { String[] names …

Member Avatar for masijade
0
101
Member Avatar for SoulReaper1680

Hey, whenever I compile the code below the program compiles and runs but after a while I get the following error: System.IndexOutOfRangeException was unhandled Index was outside the bounds of the array. Also, when compiling I get the following: A first chance exception of type 'System.IndexOutOfRangeException' occurred in array_mult.exe The …

Member Avatar for AndreRet
0
167
Member Avatar for srikanth2321

Hi I have problem in reading xml file. The things what I want to read is : "cmpd_name","cmpdnr","rt","mz","i","a","sn","z". Here there may be several values for each "mz","i","a","sn" in different lines under a "cmpd_name" (It will be clear if you see the attched xml file). Each of these ("mz","i","a","sn") values under …

Member Avatar for srikanth2321
0
140
Member Avatar for divakar.it

Hi Andreret, As per the dicussion today on my previous thread, i am creating a new thread for the function to convert the numbers on the grid to a date. I am waiting for your code. Kindly share once you done tomorrow or the day next

Member Avatar for AndreRet
0
130
Member Avatar for MichaelWClark

I have 3 dropdown lists, catagory, name, model. Select catagory to enable name and model. select a name or a model and the coresponding name/model will autofill in the other dropdown based upon results of executeScalar. If i have the catagory "Cellular" it works fine with ALL my products. If …

Member Avatar for crishjeny
0
149
Member Avatar for Jesi523

I have two different views in my ASP.Net application. I have a list view and a calendar view. I am trying to get the link to perform differently under certain circumstances. If the the class is full the link should be disabled and read class full. If there are available …

Member Avatar for crishjeny
0
864
Member Avatar for pooja_shah

hi, I have a one que... I have a login page and where i m making dropdown for the qualification(B.E.,mca,bca,B.Tech,M.tech,others)Collections in list.. Here for others value.. I have textbox1 so any pne can enter other value that is not in the dropdown...so in that case how i can pass insert …

Member Avatar for crishjeny
0
75
Member Avatar for hdb25

[CODE]#include <iostream> #include <fstream> #include <sstream> #include <cstdlib> using namespace std; int dectoint (string st); int hextoint (string st); int bintoint (string st); string inttobin (int n); //string inttohex (int n); //string inttodec (int n); int main() { string st; cout<< "Enter a number in dec,hex,or binary: \n"; getline(cin,st); if …

Member Avatar for hdb25
0
173
Member Avatar for kooia

Hi everyone, I'm completely new to javascript, and I was working on a project that's supposed to overlay an image when mouseover occurs. When you mouseover, it shows the image, but then when you're moving your mouse over that area, the overlaid image flashes. I think maybe this should go …

Member Avatar for R0bb0b
0
1K
Member Avatar for kayfar

can anyone tell me how to use if else statement using c# and MS Access database..this is my code.. [CODE] protected void Button2_Click(object sender, EventArgs e) { string path = Server.MapPath("App_Data\\dnis2010.mdb"); OleDbConnection conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + path); //con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Users\\keOn_kAyFar\\Documents\\Visual Studio 2008\\WebSites\\DNIS\\App_Data\\dnis2010.mdb;Persist Security Info=False"; conn.Open(); string str …

Member Avatar for crishjeny
0
317
Member Avatar for manavsm

I am new in asp.net and so want to ask as to how do i pass the datas from the gridview to textbox through query string with only the ID of the selected row being passed as query...Means when i select a particular row all the attributes of that row …

Member Avatar for crishjeny
0
2K
Member Avatar for fernandomier

Hi: I am using Canon SDK for camera control. Everything works fine until I start using timers or delays. Let me explain: If I use a regular button to call the take_picture method on the SDK everything works fine. But when I use a Timer, DispatcherTimer or any other kind …

Member Avatar for everhett.raman
0
425
Member Avatar for Jesi523

OK, here's my last problem for this project I am working on. This may seem very simple to most of you, but I cannot figure it out. I have a simple confirmation page that reads something like: You have successfully created your event, the link for people to signup for …

Member Avatar for crishjeny
0
276
Member Avatar for AngelicOne

I have made a registration form using C# and the record will be saved in sql. I want to also add a record of the registration date automatically. How to do this?

Member Avatar for crishjeny
0
233
Member Avatar for itisnot_me

i know i should know this but for the life of me i forgot it. what i want to do is within my loop. I want a single variable that has multiple info in it that can be separated by a , ex: loop one { $store = "fieldone='$fieldone'"; } …

Member Avatar for itisnot_me
0
91
Member Avatar for naka1888

Hi, I have a simple grid view that i want to be able to delete rows from by clicking the delete button that's automatically created. Every time I click on the delete button to delete the row i get the following error: [COLOR="Red"]Incorrect syntax near 'int'. Description: An unhandled exception …

Member Avatar for crishjeny
0
237
Member Avatar for NutanGadakh

[CODE] $_SESSION["srch"] = trim($_GET["search"]); $var = $_SESSION["srch"]; $searchinfo = array(); //////Home $viewQuery1=mysql_query("select * from home_content where hc like \"%$var%\" ") or die(mysql_error()); if(mysql_num_rows($viewQuery1) > 0) { while($Res1 = mysql_fetch_array($viewQuery1)) { $searchinfo[0] .= '<a href="home.php?pk='.$Res1['parent_key'].'">'. substr($Res1['hc'],0, 25).'</a>'; }//while $num = mysql_num_rows($viewQuery1); }//if //////END Home //////HIGHLIGHTS $viewQuery2=mysql_query("select * from highlights where hl_c …

Member Avatar for NutanGadakh
0
85
Member Avatar for jugosoft

I have function that returns string and that works fine but when I call that function from another procedure when it executes function I get a message: [B],,Conversion from 'result' to type 'Integer' is not valid,,[/B] ASP debugger says: [B],,Input string was not in a correct format. ,,[/B] I tried …

Member Avatar for crishjeny
0
1K
Member Avatar for abhi1625

[B]how do i display the inserted record in gridview in asp.net when i click on button..? [/B] GridView1.DataSource = a.filldata("insert into student(Roll_no,Name,Age,Education,Mobile)values("+txtrollno.Text +",'"+txtname.Text +"',"+txtage.Text +",'"+txtedu.Text +"',"+txtmb.Text+")"); GridView1.DataBind(); [B]i want it should be display right now at runtime record should be added....and displayed... and i also get and error of "," …

Member Avatar for crishjeny
0
110
Member Avatar for himvj

how to add dropdown list in gridview and how to populate data in that dropdown list Thanks in advance

Member Avatar for crishjeny
0
2K
Member Avatar for MiniAdverts

Hi Guys, I just wonder anybody here know how to strip html from the text box ? I just want to make sure that at the time user post something,they dont insert any HTML or javascript ... thanks Johnny

Member Avatar for crishjeny
0
170
Member Avatar for jellybeannn

I'm trying to insert a record from a DataGridView into a database, but I receive this error: [COLOR="red"]Parameterized Query '(@i1 int,@i2 varchar(50),@i3 varchar(50),@i4 varchar(50),@i5 var' expects parameter @i1, which was not supplied.[/COLOR] I have tested with a BreakPoint that c_id is not null, it does have a value. *Note c_id …

Member Avatar for crishjeny
0
126
Member Avatar for MichaelWClark

Hello. I have been developing on this project for the last month and this particular function is used MANY MANY times throughout the project and I have had 0 problems with it to date. I added a new panel and all of a sudden some of my core feautres started …

Member Avatar for crishjeny
0
109
Member Avatar for dubery

Hi all I need to write a recursive function that displays every permitation of NxN numbers this example uses 3x3 and will display 0 1 0 1 1 0 2 1 0 0 2 0 1 2 0 2 2 0 0 0 1 1 0 1 2 0 1 …

Member Avatar for dvillase
0
117
Member Avatar for anandhikrishnan

Hi All, I have a app.js file. In that for a textarea if i entered data with single qoute eg: TEST'S it gets stored in DB as TEST'S to avoid DB problem. I return the textarea value from java file in json array to app.js. If the array name is …

Member Avatar for anandhikrishnan
0
123
Member Avatar for frankchester

When I run this program, and the file can be found, it works fine. However when the file is not there I get the error: Debug Assertion Failed! Expression (str != NULL) It seems to be a problem with the following loop as when its remove it works fine: [code=c] …

Member Avatar for Perry31
0
245
Member Avatar for BaSk

I have a search where I want to be able to search a string of words. The search is going to be looking in 2 different table joined by a left outer join. The tables are "quotes" and "categories". <?php $sql="SELECT q.id, q.username, q.quote, q.by, q.voteup, q.votedown, q.servtime, c.label FROM …

Member Avatar for BaSk
0
120
Member Avatar for nullSpace

Im trying to add new records to my joins table. but when ever i click my link to do so i get this error [QUOTE]uninitialized constant Channel::UsersChannel[/QUOTE] here is the code [CODE] <%= link_to "Subscribe to Channel", subscribe_path(channel, current_user) %>[/CODE] [CODE] def subscribe @channel = Channel.find(params[:channel_id]) @user = current_user @channel.users …

0
113
Member Avatar for muralibobby2015

hello... in my site i want to do search images from google and put a link to each image "upload this image". when i click this link automatically upload this image in to my site. i searched a lot after i found this script. but how to add link and …

Member Avatar for Jamesapoe
0
104
Member Avatar for new SE

hi all, i'm going to make an upload picture into database.. in run successfully but now it will store as [CODE] C:\Users\itdept\Desktop\webmaster\image\Desert.jpg [/CODE] but i just want to make it like this [CODE] ~/image/Desert.jpg [/CODE] is it possible?

Member Avatar for kvprajapati
0
163
Member Avatar for ashishkumar008

helloooo Actually, i have one question. my teacher asked to me - why we take Int16,Int32,Int64 why not Int20,Int36,Int68. Please tell me the answer. Pleaseeeeeeeeeee.... is the factor operating system like 32-bit,64-bit,16-bit? please give anyone exact answer.

Member Avatar for kvprajapati
0
162
Member Avatar for bretthay93

i want to make a program that has a player take on the computer in a game of Rock Paper Scissors. The GUI should have an appropriate lable at the top. it should allow the player to select his or her weapon of choice. program should have a fight button …

Member Avatar for bretthay93
0
313
Member Avatar for Rickay

[CODE]#include <iostream> #include <windows.h> #include <ctime> using namespace std; double time1; int main() { const double seconds1 = time(0); string string1; while(1) { long double seconds2 = time(0); if(seconds2 == seconds1 + 5) { cout << "Five seconds went by.\n\n"; break; } } cin.clear(); cin.ignore(255, '\n'); cin.get(); return 0; }[/CODE] …

Member Avatar for Rickay
0
231
Member Avatar for dlube

how would you write a for loop that calculates the total investment over 40 years if a one pays $500 each month but every 2 years the payment increases 10%?

Member Avatar for smrati.katiyar
0
102
Member Avatar for erum

[CODE] <asp:Repeater ID="Repeater1" runat="server"> <HeaderTemplate> <table border="1" width="100%"> <tr> <th>id</th> <th align=left>Room Categories</th> <th>single</th> <th>Double</th> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td width="5%"> <asp:Label ID="Label3" runat="server" Text= '<%# Container.DataItem("packageid")%>' /></td> <td> <asp:CheckBox ID="chk_packages" AutoPostBack=true runat="server" Text = <%#Container.DataItem("package_name")%> /> </td> <td><%#Container.DataItem("single_rate")%><asp:CheckBox AutoPostBack=true ID="single" Enabled=false runat="server" /></td> <td><%#Container.DataItem("double_rate")%><asp:CheckBox AutoPostBack=true ID="Double" runat="server" /></td> <td><asp:Label …

0
139
Member Avatar for zlloyd1

I have a problem that I cannot for the life of me find a solution to and since I have received assistance on this forum before I thought I would give it a try here again. I posted this question earlier but I did not have time to finish it …

Member Avatar for sudeepjd
0
172
Member Avatar for cwarn23

Hi, I was thinking of buying an 8 core Xeon 3.0GHz (16 threaded) cpu but still want more. Is it possible to buy two of these cpu's and stick them both in the same computer sharing the same power supply, graphics card etc. I know this might be a silly …

Member Avatar for cwarn23
0
63
Member Avatar for yogibear13

Hi, I have a problem where I have to create a class called Employee and calculate things such as pay etc..Part of the problem is to override the stream insertion operator, and I did, but I have a problem with the syntax of printing something out. I have a method …

Member Avatar for Greywolf333
0
288
Member Avatar for spartanace

Im having a bit of a problem with my binary search tree. For some reason my pointers arent connecting correctly. I'm pretty sure everything is correct but when i run it I keep getting this as the result. It inputs the numbers 1 5 7 9. [CODE]void insert(string word,vector<treeNode> &x) …

Member Avatar for Greywolf333
0
125
Member Avatar for blknmld69

How can I change the code below to applet? [CODE] import java.awt.*; import java.math.*; import javax.swing.*; import java.awt.event.*; public class Timer extends JFrame { JButton start = new JButton("Start/Reset"); JButton stop = new JButton("Stop"); JLabel time = new JLabel("Time"); javax.swing.Timer timer; int count = 0; public Timer() { super("Timer"); addWindowListener( …

Member Avatar for blknmld69
0
118
Member Avatar for Nicanor

Trying to compile a program, in my accounts.cpp I have 2 errors accounts.cpp:240: error: name lookup of `a' changed for new ISO `for' scoping accounts.cpp:234: error: using obsolete binding at `a' here's the code bool cAccount::IsOnline( int acctnum ) { if (acctnum < 0) return false; map<int, acctman_st>::iterator iter_acctman; if …

Member Avatar for frogn8r
0
831
Member Avatar for lit108

I am trying to display the number of rows I have in my database, but instead of the number being displayed on my page I just get the word 'array' My code is below [CODE] $productCountSql = "SELECT COUNT(*) FROM products WHERE `user_id` = '" . $_SESSION['user_id'] . "'"; $productCountResult …

Member Avatar for lit108
0
94
Member Avatar for HoneyBadger

It's been a while since I bugged you guys. But I need the council of my wise advisers once more. I am trying to write a program that reads a .txt file, breaks each line into words, strips the whitespace and punctuation from the words and returns them in lowercase. …

Member Avatar for HoneyBadger
0
101
Member Avatar for skorm909

so basically whats happening is its saying that im trying to call on the function before it appears... here's the code: [CODE]# include <iostream> # include <cmath> using namespace std ; char name [40]; // lets the players name be up to 40 characters int choice; int goblin = 250; …

Member Avatar for skorm909
0
94
Member Avatar for Hyiero

[CODE] while(temp != NULL) { if(temp->info.Name == cName) { temp->info.DiscountNumber = temp->info.DiscountNumber + 5; flag = true; } if(temp ->info.DiscountNumber > 25) { temp->info.DiscountNumber = 25; // prev->link = temp->link; // delete temp; //temp->link = first; // first = temp; } //cout<<"Discount is :" //<<temp->info.DiscountNumber //<<endl; prev = temp; temp …

Member Avatar for Hyiero
0
735
Member Avatar for shoucate

I bought the book "PHP 5/mySQL Programming for the Absolute Beginner." So far I have been pleased with the book, but am stuck on a lesson and can't get past it, because the code given is either not correct(I did find an error in another lesson) or my webserver won't …

Member Avatar for shoucate
0
108
Member Avatar for LianaN

Hello! My JTree is filled from DB. If I add a new node, and then try to delete it, then the code shown below provides an error. As I see, selectedFolder is sometimes null. Why does it happen? Why [ICODE]getLastSelectedPathComponent()[/ICODE] doesn't return a node selected, but returns null in some …

Member Avatar for quuba
0
225
Member Avatar for kyojin

I can't seem to get my access to the private xCoor and yCoor. I try couple of things i just learn in school but none of em make sense. Can someone explain and tell me a way to get access to those xCoor, yCoor, width, and height while still leaving …

Member Avatar for Ezzaral
0
183
Member Avatar for NotThereAnymore

I am trying an example from my CS class. We learned recursion recently, and one of the examples I was given was to reverse a given string. The Java program compiles correctly, but when it is actually executed, instead of getting the intended result, I get this as my outcome. …

Member Avatar for aspire1
0
587

The End.