199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for papermusic

[CODE] <?php include 'dbc.php'; $query = "SELECT * FROM em.tutor"; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_NUM)) { echo "Name :{$row[0]} <br>" . "Subject : {$row[1]} <br>" . "Message : {$row[2]} <br><br>". "Message1 : {$row[3]} <br><br>". "Message2 : {$row[4]} <br><br>". "Message3 : {$row[5]} <br><br>". "Message : {$row[6]} <br><br>". "Message : …

Member Avatar for buddylee17
0
210
Member Avatar for sonia sardana

hello frnds,I want to prevent the page from refreshing...I want that only some portion of page is refreshed..not full page,,Is it possible?? Which control i use for dat..I want just the hints..not the code...

Member Avatar for carobee
0
134
Member Avatar for TheSilverFox

Hello all! I am typing in some code from an example in my book, but it shows the absolute value symbol, I believe, looking similar to " l l ", but it can't be just to lower case Ls spaced apart like I just made that...or is it? If not, …

Member Avatar for TheSilverFox
0
106
Member Avatar for samuelmoneill

Hi, I have a relatively large application with multiple forms and a Module class. The problem I am having is that when I create a listbox on ANY form and try to use its 'Selected' function eg. List1.Selected vb automatically changes it to List1.selected Can anyone tell me why this …

Member Avatar for vb5prgrmr
0
139
Member Avatar for gingank

Hi guy i'm writing a program using vb the main page when the user choose in the combo box active = yes then insert into table1 then active=no then insert into table2 Here is my code please check for me why got error and correct me if i'm wrong [CODE]Private …

Member Avatar for vb5prgrmr
0
107
Member Avatar for papermusic

test_imagedb_create.php [CODE] <? $dbserver = "localhost"; $dbuser = "root"; $dbpass = ""; $dbname = "em"; $dbconn = @mysql_connect($dbserver,$dbuser,$dbpass) or exit("SERVER Unavailable"); @mysql_select_db($dbname,$dbconn) or exit("DB Unavailable"); $sql = "SELECT image_type,image FROM em.testblob WHERE id =". $_GET["id"]; $result = @mysql_query($sql,$dbconn) or exit("QUERY FAILED!"); $contenttype = @mysql_result($result,0,"imgtype"); $image = @mysql_result($result,0,"imgdata"); header("Content-type: $contenttype"); echo …

Member Avatar for papermusic
0
708
Member Avatar for severman

hi i need a little help pls. im trying to write a Black Jack game with JS(home assignement) can someone pls tell me why when i click on the img, the number 4000 doesnt change? here is the code [code] <html> <head> <title>Black Jack</title> <Script Language="JavaScript"> function hit(f) { var …

Member Avatar for hengzhe
0
321
Member Avatar for bigbadbag33

I am trying to get an inventory program can any one tell me what si wrong with this and how I can fix it, please! import java.util.Scanner; public class Cars1 { // main method begins java application public static void main( String args[] ) { Scanner input = new Scanner( …

Member Avatar for VernonDozier
0
91
Member Avatar for ggl0rd

i got some vb.net application.. when i try to run, got error out Font "Arial" does not sapport style "Regular" can anyone tell me why be like this?

Member Avatar for Nada_ward
0
97
Member Avatar for vedybird

i face a problem, im doing a programing that program into the PIC16F684. im doing a digital clock, now i only able to show the second value that display 1 to 60, i dont know how to do the minute value. im using while loop. [code=c] while(1 == 1) { …

Member Avatar for mrnutty
0
130
Member Avatar for madmath

I am new here and this is my first post. I have a question that I can't find on google. I'd be grateful if you could help me. I have written many programs dealing with arrays and wanted to know how can I validate an input. Say I have the …

Member Avatar for mrnutty
0
3K
Member Avatar for kylelyk

I am using dev-c++ with allegro here is the code: [code=cplusplus]#include <allegro.h> int SCREEN_WIDTH; int SCREEN_HEIGHT; BITMAP *buffer; int main(int argc, char *argv[]){ allegro_init(); install_mouse(); SCREEN_WIDTH = 620; SCREEN_HEIGHT = 240; set_color_depth(16); set_gfx_mode( GFX_AUTODETECT_WINDOWED, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0); show_mouse(screen); buffer = create_bitmap(SCREEN_WIDTH, SCREEN_HEIGHT); putpixel(buffer,300,300,4); blit(buffer,screen,0,0,0,0,SCREEN_WIDTH,SCREEN_HEIGHT); while(!key[KEY_ESC]){ //do stuff clear_keybuf(); } …

Member Avatar for mrnutty
0
112
Member Avatar for qkslvr1621

here is what i have so far, it compiles and runs great except for the fact that when i enter 'n' it doesn't stop the loop, any help is greatly appreciated! [CODE]/* Write a program that prompts the user for two numbers – the dividend and the divisor – and …

Member Avatar for mrnutty
0
113
Member Avatar for Adrian_0211

here i am again.. i have to create a map that will show our city.. the viewer can search all the school in our city.. what is the best software or programming i will use.. or what is the best thing to do this.. in flash.. it will be more …

Member Avatar for Adrian_0211
0
80
Member Avatar for jacky_cheng

I m a freshman about JSP.Now I have a quesstion about sql. first I made a class.Code is [code]public class DataBase { protected String url = "jdbc:mysql://localhost:3306/lab?user=root&password=root&" + "useUnicode=true&characterEncoding=utf-8"; public Connection conn = null; public DataBase() { try { Class.forName("com.mysql.jdbc.Driver"); } catch (java.lang.ClassNotFoundException e) { System.out.println(e.getMessage()); } try { conn …

Member Avatar for cjkennedyo
0
115
Member Avatar for akindo

Hi guys, I am trying to use the Python logging API to log only to a file. The code below logs to only a file if I have it at the beginning of my class, right beneath the "class ..." line. If, however, I put it inside a method, it …

Member Avatar for akindo
0
3K
Member Avatar for phantom1000000

Hi All, I'm a virgin to this site, so go gentle. :-) I'm using vb.net to write a web application and I was just wandering what was better and what the advantages/disadvantages to using the self-imported SQL file within VB.net or the SQL Server Management to create a database and …

Member Avatar for sknake
0
80
Member Avatar for Sethron

I created a login and registration page with the following code, but it seems to have a syntax error at the command prompt "die ()", and I'm not sure as to how to fix it? Name the table "dbUsers." It will need 4 fields: Name Type Addition id int(10) Primary …

Member Avatar for otakua
0
170
Member Avatar for lancevo3

I am working with traversals for the first time and am running into some errors with my them I am just going to post my preorder code because I am gettin the same error for post and in order. The Error: BSTree.h: In member function âvoid BSTree<T>::printPreorder() const [with T …

Member Avatar for lancevo3
0
110
Member Avatar for samuelmoneill

Hi, I have a listbox(MultiSelect: 2 - Extended) in which I set ItemData index values for every item that goes into the box. I'll call this listbox myListBox. The ItemData index values match their respective ID's from a mysql database. What I need to be able to do is to: …

Member Avatar for cguan_77
0
2K
Member Avatar for carpiediem

I'm trying to use a local HTML file as a SOAP client. I'm new to this, but I believe that leaves JavaScript or a normal POST form as options. I've gotten some responses from simple web services using [URL="http://www.ibm.com/developerworks/webservices/library/ws-wsajax/"]some code from IBM[/URL], but I keep getting errors when trying to …

0
137
Member Avatar for amac4291

Hi guys, Pretty new to all this. Not really my field of expertise but i am trying to download data from a website in XML using SOAP. I know the msg that i need to send to request the data but not sure how or where to send this from. …

Member Avatar for carpiediem
0
157
Member Avatar for bharatsinh

please provide me codes how to construct circular matrix as below 1 2 3 4 12 13 14 5 11 16 15 6 10 9 8 7

Member Avatar for mrnutty
0
144
Member Avatar for valmiki

How do i print the following number pattern(Triangular pattern) ............1 .........1 2 1 ......1 2 3 2 1 ...1 2 3 4 3 2 1 1 2 3 4 5 4 3 2 1

Member Avatar for mrnutty
0
94
Member Avatar for loligator

Hi all, I want to store the hours of restaurants in a database (sounds simple, right?). I don't want a text field where hours are entered as a lump of data, but was thinking of making a column for each day of the week and filling in the hours this …

Member Avatar for loligator
0
190
Member Avatar for Clueless86

I thought I should take a few days and read some more, and learn a little more. I decided to take a more easier approach. This 'start' of a simple pirate game, which I did not reference anything for once. So its all wrote from what I know, and not …

Member Avatar for jlm699
0
414
Member Avatar for nokomoli

Hi guys, i am facing a problem which is i need to create a dynamic gridview control and i need to add eventhandler for this gridview. Therefore, how i add the event?

Member Avatar for Nada_ward
0
158
Member Avatar for CTUBren

I'm dying here! So far you guys have been way more help than my instructor who speaks Russian or something. Any advice will be more than helpful. This is my issue... Use the random class once for each die, the sum of the two values should then be calculated. Each …

Member Avatar for CTUBren
0
120
Member Avatar for madihalonly

hi i m just start my final project and i made web portal which is just like yahoo and i dont know abt web services and how implement it in c# and asp.net

Member Avatar for Amigirl824
0
332
Member Avatar for kylelyk

here is the simple code: [code=cplusplus]#include <allegro.h> #include <iostream> using namespace std; int FindArea(int,int); int main(){ int lenghtOfYard; int widthOfYard; int areaOfYard; cout << "\nHow wide is your yard? "; cin >> widthOfYard; cout << "\nHow lond is your yard? "; cin >> lenghtOfYard; areaOfYard= FindArea(lenghtOfYard,widthOfYard); cout << "\nYour yard …

Member Avatar for kylelyk
0
165
Member Avatar for levtyler

I want to sort the result of a while loop alphabetically, here is the code. I am new at this and I tried everything I can think of, but I am still clueless. Thanks for anyone who could help. [code=php] <?php while (loop_collections()): ?> <div class="collection"> <h2><?php echo link_to_collection(); ?></h2> …

Member Avatar for TommyBs
0
487
Member Avatar for Aphrodite

Hi all, When the user enters a word, isKnownWord() checks whether the word is in the dictionary but even when I enter a word which I know is in the dictionary, into the terminal, it always outputs no! Can somebody please explain why it is doing this? isKnownWord in sc …

Member Avatar for tux4life
0
147
Member Avatar for loozax

can some1 give me an example of sorting and merging an 10 inputted integers?!using java array..

Member Avatar for BestJewSinceJC
0
73
Member Avatar for arelius

Hello, I have a DataGridView that displays all the columns in the DataGridView Column from my database. The problem I am having is that my Row_id column, which is the primary key of the table, will not display the data within the Row_id column. Is there a way to retrieve …

Member Avatar for arelius
0
139
Member Avatar for alvalany

hi frnds, I am new to programming. As i have to start learning languages, as my first step i decided to learn C as it is said to be the basic and most important. Can someone suggest me some way to increase my interest in C by giving examples of …

Member Avatar for sftwr21
0
201
Member Avatar for SonxQ7

Hi, am using MyEclipse. The tutorial is on Hibernate & Spring ... [code] Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.springframework.beans.factory.support.AbstractBeanFactory.<init>(AbstractBeanFactory.java:94) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:109) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:118) at org.springframework.beans.factory.support.DefaultListableBeanFactory.<init>(DefaultListableBeanFactory.java:87) at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFactory.java:72) at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFactory.java:61) at com.myeclipse.hibernatespring.BusinessLogic.main(BusinessLogic.java:23) [/code] I do have the commons-loggin.jar added to the Java Build Path ... My class ... [code] …

Member Avatar for gautam.tandon
0
130
Member Avatar for Evil_genius82

hey Guys im using this bubble sort to sort an arraylist out but cant seem to output the sorted data out properly! Is there a return method i can use? Damn ive been stuck hours on this one... Anyone that could guide me to a solution would be great. Note: …

Member Avatar for VernonDozier
0
155
Member Avatar for rahul8590

i have created a simple form (well with the help of a book ). i am able to process the data and display it . But i am[B]not able to send the same message to my mail ID[/B]. i am using WAMP server. i am running the script from my …

Member Avatar for pritaeas
0
96
Member Avatar for Silvershaft

I think I master the basics of C++ that good I can move, not all though there are many things still I don't know of course. I've made applications with mysql and made my own little roleplaying game and some calculator like things. Basically noobie like programs with no graphics …

Member Avatar for Dave Sinkula
0
93
Member Avatar for amegahed3

Hi All, I'm a beginner in C and C++, and I get a "Stack Overflow" problem when I compile my code. I use visual studio 2008. My code uses some library, that has some header files, and some .cpp files. The library basically helps me in getting a random number …

Member Avatar for Dave Sinkula
0
155
Member Avatar for gagan22

Hi all, I am working on an application.In which i am using calendar. In this page i am using calendar for Travel date and other for Return Date. But i want that if i will select past date from calendar then is should give alert that we can select past …

Member Avatar for Luckychap
0
78
Member Avatar for bgk111

I am trying to write a python program that will enter another program using a shell command, then issue commands to that program, then exit the program and continue running the rest of a python program. To be more precise, if I was simply running in a shell, I would …

Member Avatar for bgk111
0
125
Member Avatar for Adrian_0211

im working on my thesis right now... i need to create a map locator.. just like this one [url]http://www.map.wisc.edu/[/url] any idea how to do this? i read that it can be done in asp.net look alike program thanks for the help..

Member Avatar for Adrian_0211
0
123
Member Avatar for turbomen

Dear ALL, Could you tell me how can I get num1, num2 and Output 2 for the following programme. [code] program Project2; {$APPTYPE CONSOLE} uses SysUtils, ourcrt; var num1, num2: integer; begin num2:=0; repeat num1:=num2+1; if (num1 mod 2=1) then begin writeln(num2); end else begin num1:=num1+1; end; num2:=num2+1; until num2>4; …

Member Avatar for FlamingClaw
0
172
Member Avatar for atreyeepal1

i'm tying 2 describe my problem here.plz solve it for me.. 1. generate a random number b2in 0 and 1 (r); 2. do t=r*2.5 ; 3. do w= t/100 4. keep track of all t1,t2,t3.... in an array and do the sum S=(t1+t2+t3......) ; 5. repeat steps 1,2,3,4, till S<100 …

Member Avatar for Dream2code
0
155
Member Avatar for turbomen

Dear Sir, I have got the answer of the following question but I do not understand why it has been done in this way: 3. Your task is to create a game of Heads or Tails against the computer. Write a program that asks the user for Heads or Tails, …

Member Avatar for FlamingClaw
0
143
Member Avatar for dumrat

Hi, I was assigned to study and understand some code and I was told the major problem with the program was poor performance. Here's the bottleneck: A global data set is maintained. This data set is updated regularly. Then there are threads that have to do some processing using a …

Member Avatar for Salem
0
99
Member Avatar for mbirame

I am completely new to PHP and am doing online tutorials to learn. In this code: [CODE]<?php $cars_on_lot = 10; print "We have $cars_on_lot cars.\n "; print "We got another new car.\n "; $cars_on_lot++; print "Now we have $cars_on_lot cars!\n<p>"; print '<b>$cars_on_lot++</b> is the same to PHP as <b>$cars_on_lot + …

Member Avatar for pritaeas
0
93
Member Avatar for huzeifa

Hi everyone, please can anyone show me how to show a progress bar while copying a file. I tried using SetTimer() but i does not work the way i want it i.e the file gets copied after the given time has finished.

Member Avatar for Ancient Dragon
0
110
Member Avatar for Aphrodite

Hi all, can you please help me solve these errors I am receiving: q2.cpp:127: error: expected primary-expression before ‘*’ token q2.cpp:127: error: ‘wordPointer’ was not declared in this scope print function which is contained within the sc class: [code] void printDict(struct wordRecord *wordPointer) { // Code omitted to step through …

Member Avatar for Aphrodite
0
101

The End.