64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ryancfc

Hi, I have been doing c++ for about a month and a half and have done 26 tutorials on Youtube and I feel rather proud of learning something I have wanted to do since I was 13 (I'm 20 now) and that is to program. Back to the point. I …

Member Avatar for ryancfc
0
134
Member Avatar for adarshcu

I saw this small code of a program to print HI without a semicolon in the program. I don understand how it works. [code] int main() { while(printf("HI")-2) {} } [/code] Any help would be appreciated.

Member Avatar for adarshcu
0
110
Member Avatar for NoID

Hello Guys, I want to delete a record from my saved.php which has a code, [code] <td><a href=\"delete.php?id=$ID\">delete</a></td> [/code] Which gets the link as [url]http://localhost/delete.php?id=8022[/url] I then have a delete.php file, which has this code, [code] <?php if(isset $_GET['id'])) { $id = $_GET['ID']; $con = mysql_connect("localhost","t","123456"); if (!$con) { die('Could …

Member Avatar for spthorn
0
148
Member Avatar for MoZo1

Hi! I would like to do something like this: [url]http://www.adp-gmbh.ch/ora/explainplan.html[/url] with an .mdb file. Thanks!

Member Avatar for MoZo1
0
125
Member Avatar for Link82

Hi Guys, Kind of stuck on a query here. [CODE] select *--, c.last_name + ', ' + c.first_name as name from dbo.tblLevelOneApprover a inner join dbo.tblLevelTwoApproverToLevelOneApprover b on convert(int, b.level_two_emplid) != convert(int, @emplid) where convert(int, a.emplid) = convert(int, b.level_one_emplid) [/CODE] I'm trying to get all level one managers who are …

Member Avatar for Link82
0
182
Member Avatar for sanjaypandit

i made this code but it shows result Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\VertrigoServ\www\sanjay\rlc\closing.php on line 14 [code]<? include("admin/include/conn.php"); $today=date("Y-m-d H:i:s",strtotime("+5 hours, +30 minutes")); $c_closing="select * from member_information where child >=2"; $c_closing_query=mysql_query($c_closing); while ($c_row=mysql_fetch_array($c_closing_query)) { $c1_query="select * from member_information where Mem_sponsor_id=".$c_row['Id']." limit …

Member Avatar for Manuz
0
144
Member Avatar for maestermoo

Hey, so I'm trying to make a program that sorts user inputted "pancake sizes" and then outputs the result after a selection sort. My problem is that with an input of 12.3, 14.2, 15.2 etc(doubles) the program won't work, and I have no idea what to do for the parameters …

Member Avatar for Ancient Dragon
0
135
Member Avatar for rahulsundar_007

hi can anyone help me out in detecting broken/corrupt images (jpeg, gif, png) using c# code. - rahul

Member Avatar for sknake
0
2K
Member Avatar for Thirusha

Hi I have set up an example web app which was already written by a third party company. My problem comes in when i enter the app name like [B][url]http://localhost:8080/app1/[/url] [/B] it redirects to the correct page that was used in the <welcome-file> tag in the web.xml but the js …

Member Avatar for Banderson
0
105
Member Avatar for nccsbim071

Hi I have been developing a website. I need to hide the page extension of the pages while user is browsing my site. for example: Home.aspx should be displayed as Home only. How can i do this. Please help Thanks

Member Avatar for dnanetwork
0
246
Member Avatar for xuexue

hi guys, i want to include the icon of the type of file am uploading, is that possible????

Member Avatar for diafol
0
106
Member Avatar for Creator07

Hello, This is a general question, so, I don't think code is necessary. I have a basic question about buttons in Win32 API... (Solution in MFC is also OK!). I was doing some experiments in push buttons, using MFC... I can enable/disable a button as I wish, but, there is …

Member Avatar for Creator07
0
177
Member Avatar for avaitla

I realize that there is another thread about this topic, where bitshifts are used, but I do not understand why my code is not working: #include <iostream> #include <bitset> using namespace std; int main() { bitset<5> b; int temp=0; for(int count=0; count<=10; count++) { temp=count; for(int check=4; check>=0; check--) { …

Member Avatar for tux4life
0
141
Member Avatar for saivemuri

This is about jsp, beans with struts. The problem is, I am using one jsp which is containing some select boxes. I ll be populating the select boxes from DB thru beans and action class. It’s working properly. The problem is with the data insertion from JSP to DB. The …

Member Avatar for peter_budo
0
319
Member Avatar for xuexue

the question is that, what if i have a separate folder wherein the files i wanted to replace the name is located? example, the uploads folder contain all the uploaded file, now the user can edit the file's information, let's say the filename, how about that?

Member Avatar for diafol
0
78
Member Avatar for CoSIS1

Hi everyone; I’ve written the following for some purpose : [CODE] <% Vector v1,v2; String sql; String sqlvsp; sqlvsp= "select distinct(question_text) from question where type = 'UStudent' "; Vector vc=database.jdbcOneRowQuery(sqlvsp); for(int n=0;n<vc.size();n++){ %> <table border="0" width="100%"> <tr> <td colspan="6"><font size="2"><b><% out.print(n+1); %>)<% out.print(vc.get(n)); %></b></font> </td> </tr> <tr> <td></td> <td align="center" …

Member Avatar for peter_budo
0
124
Member Avatar for tones1986

I have created a drop down list from a SQL query as follows: [code=php] <?php echo '<form action ="boat_info.php" method="POST">'; $query = "select SHIP_NAME from SHIP"; $result = mysql_query($query, $link); if (mysql_num_rows($result)) { echo "<select name='boat' value='bname'>Ship Name: </option>"; while ($row = mysql_fetch_row($result)) { print("<option value=\"$row[0]\" name =\"bname[]\">$row[0]</option>"); } } …

Member Avatar for cybersat
0
982
Member Avatar for borntowin_786

//php file [code=php]$strSheetName = 'test'; $objXLApp = new COM( "excel.application" ) or die( "unable to start MSExcel" ); $objXLApp->Workbooks->Open( "path/test.xls" ); $objXLSheet = $objXLApp->ActiveWorkBook->WorkSheets( $strSheetName ); $i=3; do { $strCellName = 'B'.$i; $objXLCell = $objXLSheet->Range( $strCellName); $i++; echo $objXLCell->Value()."<br>"; }while($objXLCell->Value()); echo $i; //print $objXLCell->Value(); //objXLsheet.Range("A1:A100") //print "Cell $strCellName in $strSheetName: …

Member Avatar for borntowin_786
0
140
Member Avatar for sriramaam

hi, I am trying to do some aombination study. I have saw some codes on permutations and combinations. But for all those programs input is a single list. I am trying to make combination from 4 lists. I have input 4 lists. Now I want to generate several combination lists. …

Member Avatar for sriramaam
0
136
Member Avatar for Pankaj18

Hi, I am using below code to hide a column in Gridview. But it display an error. My code:: [code]protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { e.Row.Cells[7].Visible =false;//error generated on this line }[/code] Error:: Specified argument was out of the range of valid values Parameter name: index Please help me. …

Member Avatar for Pankaj18
0
678
Member Avatar for Matsui

I have need of some help...i am working on a form in javascript and am wanting to create a function to total the value of checkboxes when they are checked. i have found many examples, and have a little bit done but it won't total up the values. this is …

Member Avatar for kvprajapati
0
97
Member Avatar for ashkan3030

Here is the scenario: I have pages that we can add items to "shopping cart",here is the code: [code]List<string> shopingCart = (List<string>)Session["shopingCart"]; if (shopingCart == null) { shopingCart = new List<string>(); Session["shopingCart"] = shopingCart; } shopingCart.Add(Request.QueryString["ID"]);[/code] I store the ID of each product in Session state(which is unique), then I …

Member Avatar for kvprajapati
0
327
Member Avatar for ctyokley

Ok. so i'm not quite sure how to do this. I have searched many of website but cant really find too much. I have a database in MS ACCESS that holds user information. I have the insert function working on this. I have used VB.NET CODE. What i want to …

Member Avatar for ctyokley
0
431
Member Avatar for k2k

i just downloaded a login script and the code below is the php backend for the login. It is originally using md5 encryption and decryption for the password. For some reason I want to manage the password without encryption for now. my database has a member with login name and …

Member Avatar for k2k
0
123
Member Avatar for xiikryssiix

if anyone can check out my program below and see whats wrong, itd be greatly appreciated. my goal: user input a text file (i.e. data.txt) to open and read print the mssg within file to both console and text file (i.e. secret.txt) print the mssg as scrambled message (ASCII) my …

Member Avatar for xiikryssiix
0
118
Member Avatar for xuexue

hi guys! this is my problem, let's say the user wants to edit the file's information, not the file itself. example, i have Document1.doc, that is my file, what i want is that the user could edit the information, let's say the time it was uploaded, the filename and not …

Member Avatar for xuexue
0
1K
Member Avatar for Zetlin

Hi everyone I am writing this program that takes a string and search it for words. Those words are taken and they get "<" at the beginning and ">" at the end of the word. then it prints the string with the words and the "<, >" characters. Here is …

Member Avatar for Zetlin
0
261
Member Avatar for CFROG

I'm working on a script that handles a member sign up. Upon submission of new member info the script queries the users table to check for duplicate user name (in this case an email) and return an error if duplicate is found. If not I want it to just submit …

Member Avatar for humbug
0
140
Member Avatar for xiikryssiix

i have to create a program that calculates how many weeks it will take to become a millionaire given an allowance of pennies. for example... 1st week - 1 cent 2nd week - 2 cents 3rd week - 4 cents 4th week - 8 cents 5th week - 16 cents …

Member Avatar for xiikryssiix
0
183
Member Avatar for bladelord76

I need some help with a code I'm working on. The code starts off by creating a class for types of cars. Once that's done, I have it construct a list of predetermined vehicles (all made from the aforementioned class), and then I ask for user input, to see if …

Member Avatar for bladelord76
0
179
Member Avatar for xuexue

hi guys, i already have a working upload.php, now the problem is that the file cannot accept pdf files? but other than that, it works very well, what do you think should i do with this? [code] echo"<form enctype='multipart/form-data' action='fileRecs.php' method='POST'>"; echo "<input type='hidden' name='MAX_FILE_SIZE' value =1000000/>"; echo "Choose a …

Member Avatar for xuexue
0
79
Member Avatar for DealthRune
Member Avatar for DealthRune
0
269
Member Avatar for Dragonfyre

Hey everybody. I have a question on how to break out of a java loop. Here is a break down of what I am doing. I have 3 arrays "chrs" and "value" and "NumTimes"; "chrs" is an array of characters that has been read in from an input file. Value …

Member Avatar for Dragonfyre
0
128
Member Avatar for Dizzzy

Ok i have this code to retreive data from a Table "Calendar" and the feild within the table are Id,Day ,Month and Year. When i press the button to run this code and i get the error message "The parameterized query '(@Day varchar(8000),@Month varchar(8000),@Year varchar(8000))Sel' expects the parameter '@Day', which …

Member Avatar for jbisono
0
219
Member Avatar for metalclunch

Hello, this is Metalcrunch. I've been learning C++ over the past days and I thought I'd make a calculator. So I looked over the existing code on the internet on how to make a calculator, understood it, then made my own from the very scratch. However, I'm having a few …

Member Avatar for 23.12.2012
0
239
Member Avatar for pete08

Hi, here is my problem: I have created panel and put picBox in it. AutoScroll for panel is on, so the scrollbars are there. When scrollbars come to the limit, pictureBox is fitted with new image. Image is loaded correctly, but scrollbars rest in last position, i.e. they don't come …

Member Avatar for sknake
0
519
Member Avatar for Clawsy

Hello, I'm a little bit new to Java and I use NetBeans 6.5.1. I just try to make a window 'by code, manual' (not drag and drop, not visually). This is my code (first I only want and empty window): [code] package javaapplication5; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Cursor; import …

Member Avatar for axeeffect2002
0
147
Member Avatar for Rockpile

Hello, I am trying to format a string in C# but am having trouble trying to set the width. Is there a way to use a variable int as the width instead of having to declare a static width? here is my code now... [code=c#] for (int i = 0; …

Member Avatar for Rockpile
0
119
Member Avatar for samarudge

Hi, I have used AJAX lots before and I wondered if it was possible to set variables from an AJAX file E.G. an ajax file could set var set1 = 10; var set2 = 55; with both variables coming from an external file called by AJAX Could you tell me …

Member Avatar for Airshow
0
130
Member Avatar for mypicturefaded

I have a project that I made with VS 2008, and I need it to use the 2.0 Framework and not the 3.5 Framework because they company hasn't moved to a newer Framework yet. I already have a setup project with it, I just need to know how to roll …

Member Avatar for mypicturefaded
0
314
Member Avatar for sab786

SORRY I THINK I ADDED THIS TO SOMEONE ESLE THREAD B4 Ok so i have a file which i read in ... then i read the data line by line and create lists basically i needed to organsise(sort the data, in numerical order which i can do no problem and …

Member Avatar for woooee
0
85
Member Avatar for shizu

Hi all.. I would like to convert a hex to CString format.. I had try like below I shown, but failed to convert into CString format that I wish to.. Here is the example I tried.. CString sz; unsigned short test = 0xB0FF0000; sz.Format("%X", test); then I got sz = …

Member Avatar for hawash
0
1K
Member Avatar for dnanetwork

hi there snake.. i've implemented AIM & SIM...in authorize.net... but i'm facing a new problem... which is automated recurring billing.... i've used the codes from authorize.net... but things don't work out.... i've used the soap code...which has a web reference.. and i'm working in the test account so if you …

Member Avatar for dnanetwork
0
102
Member Avatar for Eager_Beever

I am using C# 2005 to create a Windows application. I have a MDIForm (frmMainMenu) which contains a Menustrip and a TabControl. My ChildForm is frmPurchaseEntry. When the user clicks on a particular Menu option a new TabPage is created and the child form is displayed within the TabPage. I …

Member Avatar for sknake
0
688
Member Avatar for xuexue

i want to access the information of my uploaded file in php, let's say that i have Document1.doc, i want to edit its information, let's say the time it was uploaded, its filename and like that, not necessarily the file itself. thanks in advance...

Member Avatar for diafol
0
97
Member Avatar for firoz.raj

i want to see all the installed font name using for each loop.i have written a code but it say object required.and it break at bold line. kindly let me know any idiea? [code=vb] Private Sub Form_Load() Dim f As Font B]For Each f In Fonts[/B] MsgBox f.Name Next [/code]

Member Avatar for vb5prgrmr
0
72
Member Avatar for xVent

Hi guys , i want to fill a textbox with a data from my mysql database and i dont know how to do it , i already searched without a result , if someone can help me i would appreciate it .

Member Avatar for xVent
0
541
Member Avatar for alokshri67

hello every one, I am new in asp.net. I am tring to run update query with odbc data connection but it is not working [code] Dim CON As OdbcConnection Dim CONSTR As String = "Dsn=sdata" Dim DA As New OdbcDataAdapter Dim DT As New DataTable CON = New OdbcConnection(CONSTR) CON.Open() …

Member Avatar for Ramesh S
0
95
Member Avatar for haf

can anybody please tell me any site which has open source code for jsp projects, please help i need source code for online examination application in jsp. Below are the criteria in the application that I’m looking at. 1) Web based 2) Able to randomize question and answer order 3) …

Member Avatar for peter_budo
0
382
Member Avatar for xuexue

hi guys, i have my upload.php, now the problem is that it does not download pdf files, it says that there is a problem with regards to the uploading. can you help me??? thanks in advance...

Member Avatar for xuexue
0
1K

The End.