199,111 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Djmann1013

I am having trouble with this page: <?php session_start(); // LOGIN PAGE... include('/mods/core/core_login.php'); // SQL stuff. mysql_connect('SQL host','Username','Password'); mysql_select_db('DB_NAME'); $ci = rand(1, 10); if ($ci == "1"){ $img = "http://images.awsomechat.comuv.com/cap_1.png"; // URL of image. $ans = "LoIs DDiO"; // Answer to image. }elseif ($ci == "2"){ $img = "http://images.domain.com/cap_2.png"; // …

Member Avatar for cereal
0
184
Member Avatar for Asad_1

I have got a parse error inside my php script, involving T_String error on line 22 Parse error: syntax error, unexpected 'toys' (T_STRING) in C:\xampp\htdocs\registrationform.php on line 22 <?php $toys = array('digicam' => 'Digital Camera', 'mp3' => 'MP3 Player', 'wlan' => 'Wireless LAN'); $errors = array(); if ($_SERVER['REQUEST_METHOD'] == 'POST') …

Member Avatar for almostbob
0
133
Member Avatar for omojolinho

Please, i am in trouble and i need someone's help urgently. am an IT student at a software company and my boss has threatened me not to come to office again until am able to build a simple chess game. Please, any help will be appreciated

Member Avatar for <M/>
0
108
Member Avatar for ChilledGrease

I started coding C++ this past week, and yesterday I challenged myself to write something original that my book doesn't have hints on. It is a program that prompts the user to think of a number between 1 and 100, and proceeds to guess the user's number. The user tells …

Member Avatar for Suzie999
0
291
Member Avatar for calomari

I just completed one JAVA course. I used NetBeans. I ran into a friend recently who told me about Eclipse. In my next class I had to write a program with a GUI application. Which IDE do you prefer? Why?

Member Avatar for stultuske
0
94
Member Avatar for python1956

I am trying to sort by key, but it's not working because I don't think that the thing that I'm trying to sort on counts as a list (in fact I think it is an ndarray?): y = np.genfromtxt("1400list.txt", dtype=[('filename','S20'),('freq','S20')]) gives me y as something in the form: [('a070918_215953.SFTC', '1369.000') …

Member Avatar for Lardmeister
0
4K
Member Avatar for andyy121

Warning: include(funck.inc.php): failed to open stream: No such file or directory in C:\xampp\htdocs\search\index.php on line 2 Warning: include(): Failed opening 'funck.inc.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\search\index.php on line 2 help plz what i have to change

Member Avatar for andyy121
0
311
Member Avatar for sundog1

Hi Guys, I'm currently working on a small item that I hope you will be able to help with. I have used an example Code to get connected to 'Sage Line 50' data and it seems to work correct. Currently it populates the Combo Box with the Database Scheme and …

Member Avatar for lolafuertes
0
281
Member Avatar for murtazamzk

Hello guys this is an amazing programming that converts entered digit into word.nut i need your help i am only able to do it upto 99. #include<stdio.h> #include<conio.h> void main() { int n,m,j; clrscr(); printf("Enter any number between 1 to 99 : "); scanf("%d",&n); printf("You entered "); if(n>0&&n<=10) goto one; …

Member Avatar for soumava28
0
2K
Member Avatar for nitishok

I have written a program for the 8-Queens problem.It prints all possible solutions. queens() finds all the possible solutions. ok() tells whether the given column and row is safe or not. The very strange problem is: 'Count' won't increment. I have no idea why. #include<iostream.h> #include<stdlib.h> #include<conio.h> int arr[8][8]={0}; int …

Member Avatar for deceptikon
0
168
Member Avatar for Ritesh_4

Hello, I've got a code (modified but not written by me) which uses a timer to find the idle time, and I added the code to make the computer go to sleep mode if the timer matches the time value set. However, when I resume the computer, it goes back …

Member Avatar for lolafuertes
0
112
Member Avatar for gameover9

Here is what I have so far. It is working, however now they have requested to have separate buttons for start, stop and reset. I am totally new to C# and was hoping someone could help me separate the one button I have into 3 buttons instead: using System; using …

Member Avatar for lolafuertes
0
343
Member Avatar for paine_today

I just launched my first website I fully wrote myself in php/mysql - [www.TomPaineToday.com](http://www.TomPaineToday.com). After testing it on my own computer for a while, I decided I might as well launch it and see what problems I run into. The first issue I came across was that my link redirect …

Member Avatar for paine_today
0
618
Member Avatar for dante123

hi i have 30 pages with the same design, the text appears always in the same div so i have 30 different texts with the same div id. Is it possible to include all the text in an external php file not database and call them to appear one by …

Member Avatar for diafol
0
149
Member Avatar for raj-uk

how can we make Function in php this is the line to be read = 'i am going to [USA]' only required the USA to be print nothing else Please help

Member Avatar for diafol
0
105
Member Avatar for rakibtg

i wonder if it is possible to fetch images using [PHP Simple HTML DOM Parser](http://simplehtmldom.sourceforge.net/) and obtain it in a specific URL. Suppose it fetched a Image in a variable like $img = 'http://www.example.com/some_image_address.JPEG'; Now is it possible to get this image in my own domain path, like $new_img = …

Member Avatar for diafol
0
228
Member Avatar for nikhil.pro
Member Avatar for Ancient Dragon
0
106
Member Avatar for Swati_1

please help me understanding the following program? int i= -1, j= 1, m; m= i++ && j++ || i++; printf("%d %d", i,m);

Member Avatar for deceptikon
0
61
Member Avatar for riccardo-m

Hi, I'm making a program using Visual Studio 2010. I'm strugging with how to correctly use classes and their instances. For example; What is the difference between using the following ways to call function from one class within another... Example 1: Dialog.h #include OtherClass.h MyOtherClass myClass; Dialog.cpp myClass.MyFunction(); Example 2: …

Member Avatar for riccardo-m
0
258
Member Avatar for Tinnin

Hi all. I'm working my way through "Accelerated C++" have a question regarding chapter 5. The program calculates students final grades by taking a median of the homework grades. I am trying to alter this program so that it uses *list* instead of *vector*. The issue I'm having is with …

Member Avatar for Tinnin
0
173
Member Avatar for dhruv_arora

My school and the education board uses Turbo C++ as the compiler. I have Windows 7 64 bit. Can anyone tell me how can I install Turbo C++ on my computer.

Member Avatar for harsh01ajmera
0
453
Member Avatar for androidz

Hi daniwebians I have created a table in sql server called "report" and it has 3 columns "reportname","reportfile" and "reportflag". the report flag has only two values 1 and 0,if the value is 1 this means the textbox on the form will be enable. I have managed to dispaly the …

Member Avatar for androidz
0
782
Member Avatar for 03Mach1

So I am trying to write a program that will tell you the lowest grade and the highest grade out of the 3 wthat you put in and also tell you the current average you have in the class. I got the lowest and highest part taken care of but …

Member Avatar for np complete
0
265
Member Avatar for heshanm

Hi All, I have a samll problem related to a specific query. It creates following error. **Unknown column 'attendance_state.state' in 'field list'** $query="SELECT attendance_state.state,attendance_state.state_id from attendance_state inner join attendance on attendance_state.state_id=attendance.state_id where attendance.admission_no='".$admission_id[$i]."' and attendance.date='$date'"; $result=mysql_query($query) or die (mysql_error()); The table related to the query looks like this. "state_id" is …

Member Avatar for urtrivedi
0
203
Member Avatar for revelator

hi frnds, do anyone of you have theoritcal notes on Computer Organization, which include topics like Number Systems, Hamming Code, Error detection method ?? if you have can u pls let me know ?

Member Avatar for revelator
0
166
Member Avatar for rocky2008

Can anyone explain the difference between * ptr++ and ++ *ptr ? To my understanding, * ptr++ increments the pointer and not the value pointed by it and ++ *ptr increments the value being pointed by it. Does the former mean incrementing the address of the pointer ? Please explain. …

Member Avatar for deceptikon
0
201
Member Avatar for brylle

I have a datagridview, In a textboxcolumn should have a unique data.. i want in the cardnumber not to be the same.. Need trappings

Member Avatar for artemix22
0
614
Member Avatar for Shantanu88d

i have been given an assignment, to find frequencies of all words in a large text file. I have tried a program which finds the same in a sample string. Done by taking that string in an array. But in case of a text file spanning many pages with thousands …

Member Avatar for edwinhermann
0
577
Member Avatar for Develop.eR

hello guys.. im new in creating websites.. my problem is how to auto update the dropdownlist then the combobox is change/click? example: i have 2 combobox which **cbo1** contains the list of genre of songs like *pop, opm, love songs* etc. and **cbo2** contains the list of *artists/singers etc* about …

Member Avatar for diafol
0
2K
Member Avatar for Matth963

Hi, I'm doing a study planner in java. I'm doing a simple login system. For every user who registers a text file is created holding all of the information inputted during registration. This is the code of a method which the program uses to login the user: public void loginUser(){ …

Member Avatar for Matth963
0
298
Member Avatar for rahul.ch

Why does first two eg give true when a check done on them using if(x==y) but 3rd and 4th case give false? eg1: `String x = "Hello", y="Hello" ` eg2: `String x = "Hello";` `String y= "Hello";` eg3: `String x="Hello";` `String y = new String("Hello");` eg4: `String x = new …

Member Avatar for rahul.ch
0
246
Member Avatar for FaisalSarfraz

Hi every one!! I need help to match user data from database inorder to log in to admin panel. Here is what I am trying. it works ok but it is giving dialog box containing text "Sorry! You have no access to Database" here is the code. Please help String …

Member Avatar for FaisalSarfraz
0
293
Member Avatar for perly

Hi, I have a file containing multiple-headed data (input file 1), and also a second file containing elements for searching the first file. input file 1: UROPA sseD 1.2.3.3.3 crimson ddsU 2.1.4.1.2 green SAMEL aadH 7.4.1.1.1 blue uuoG 10.1.2.3.4 white MOONA gmaL 3.4.1.6.7 red oolJ 9.1.1.4.1 yellow input file 2: …

Member Avatar for 2teez
0
266
Member Avatar for sandi009

Hello, When i am trying to reload page using SetTimeout in nokai c1-01 Browser its not working. Regards, Sandip Mistry Sr.PHP Developer

Member Avatar for sandi009
0
88
Member Avatar for dlmagers

I am trying to do an INSERT statement. It is giving me an error #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Telecaster’, 599.00)' at line 1 Here is the statement: …

Member Avatar for thilipdilip
0
149
Member Avatar for kimmi_baby

Hi, I have a wordpress site but really I'm looking for a plugin that will allow one word captcha. I have been searching for this but it doesn't appear to be the right name for it. What I want it to do is say "Please type the word frog" and …

Member Avatar for kimmi_baby
0
160
Member Avatar for Unhnd_Exception

Why can't we post anymore comments on the "Read This Before Posting" sticky won't go away thread created by Reverend Jim?

Member Avatar for Reverend Jim
0
147
Member Avatar for plasticfood

i have a private Node class with a getValue() method that returns the Node's value which is of generic type. In another class i've tried doing this: T tempItem = null; ----also generic tempItem = currentNode.getValue(); I get a complier error unless I cast it like this: tempItem = (T) …

Member Avatar for plasticfood
0
234
Member Avatar for linc186

I've been trying to get this to build for hours, I have no idea what's wrong. Any help is appreciated, thank you. Here's the code: main.cpp #include "SDL/SDL.h" #include "Core.h" #include "GameStates.h" #include "globals.h" int main(int argc, char** args) { if(core.Initilization(640, 480, 32, SDL_SWSURFACE) == -1) { SDL_Quit(); } while(core.desiredstate …

Member Avatar for gusano79
0
283
Member Avatar for onofej

Hello, I have all my php documents in one folder to handle my form creating, and i have all my html files in one directory as well. but in my php code i want when a user click on the hyperlink in php page it shoud yake the user to …

Member Avatar for diafol
0
1K
Member Avatar for indrajeet6

Hi guys I'm Indrajeet Roy, and I have a problem with a piece of code I am trying write in VB.net. I am using Visual Studio 2010 as my IDE. The basic idea behind the form and the coding I am trying to do is to create a username, password …

Member Avatar for BitBlt
0
1K
Member Avatar for nickg21

Hey Everyone, I am using the below query to try and group together values by the month of the date selected. the problem is that sometimes CTE2 will not have the same dates as CTE and those values end up omitted. Is there anyway I can just group these on …

Member Avatar for kkunodziya
0
264
Member Avatar for Frensi

I'm trying to open a txt file in python, but I'm having trouble. It seems to be working, but I cannot get the text anywhere. Here is the code, does anyone know how I can get the text from the hello.txt file? f = open("c:/users/verzo/desktop/hello.txt") print(f)

Member Avatar for vegaseat
0
127
Member Avatar for arcticM

can someone share with me a link where I can download a free menubar? I just can't find anything that I can just take and paste in my project. I have my menu data in DB (not hardcoded in html) and I'm looking for a multi-level(atleast 3 levels) dropdown menu. …

Member Avatar for diafol
0
282
Member Avatar for weemy

Hello, it's my first post here, i have a big issue "as i can see", i'm creating a cms script, and have a problem with image, that i want to make the clint chose any image and press submit, here i want to make a thumb of this image with …

Member Avatar for diafol
0
151
Member Avatar for necrovore

Hi, I am trying to generate a sales report for a given date in the crystal report. In my table i have a billdate and other information. Now what i am trying to do is to get all the sales into my report when i specify a date. I have …

Member Avatar for necrovore
0
100
Member Avatar for silverkid

why do i get this syntax error at the line shown below [CODE]package org.temp2.cod1; import java.security.*; import javax.crypto.*; import javax.crypto.spec.*; import java.io.*; public class Code1 { byte[] plaintext = new byte[32]; // <<<<<<<<<<<<<<<<<<<<<<<<<< syntax error for (int i = 0; i < 32; i++) { plaintext[i] = (byte) (i % …

Member Avatar for LaughingOtter
0
22K
Member Avatar for Dili1234

Private Sub Product_Details1(ByVal pid1 As String) Dim n As Integer n = 0 DataGridView1.Rows.Clear() myConnection = New SqlConnection(connectionstring) myConnection.Open() Try sqlcmd = New SqlCommand("SELECT P_Id,P_Selling_Price FROM Product_Details WHERE P_Id='" & ComboBox1.SelectedText & "' ", myConnection) Dim dr As SqlDataReader = sqlcmd.ExecuteReader If dr.HasRows Then While dr.Read() DataGridView1.Rows.Add() DataGridView1.Rows(n).Cells(0).Value = dr("P_Id").ToString …

Member Avatar for Dili1234
0
440
Member Avatar for Begginnerdev

Hello my fellow Daniwebers, I have a question for you. I have an asp.net page that contains a structure that looks like so: <asp:MultiView> <asp:View> <asp:UpdatePanel> <asp:Panel> <asp:TextBox ID="txtStartDate" runat="server" AutoPostBack="true" /> <asp:TextBox ID="txtEndDate" runat="server" AutoPostBack="true" /> </asp:Panel> </asp:UpdatePanel> </asp:View> </asp:MultiView> The curious problem is that I can't reference the …

Member Avatar for Begginnerdev
0
234
Member Avatar for limzhengtong

**this is my displacement.h** #ifndef DISPLACEMENT_H #define DISPLACEMENT_H class displacement { public: displacement(double, double, double); double getvalue(); private: double s,t,a,v ; } #endif **this is my displacement.cpp** #include "displacement.h" ;using namespace std; displacement::displacement(double t1,double a1,double v1) { t=t1; a=a1; v=v1; s = v * t -(0.5) * a * t …

Member Avatar for zvjezdan.veselinovic
0
409

The End.