64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Bchandaria

Any one can help me out i want to display a spiral of n*n size with out using arrays? out put when n=2 should be 3 2 0 1 when n=3 should be 8 7 6 1 0 5 2 3 4 when n=4 should be 15 14 13 12 …

Member Avatar for ahmedhamdy
0
3K
Member Avatar for Minko

Hello, How can I go about hiding a form from another thread. I have two forms and a module, from the module I have started a new thread and at some point during this thread I want to hide the second form. How would I go about this as everything …

Member Avatar for Minko
0
2K
Member Avatar for BobFX

Hi, I'm trying to get the printer name selected by the user with the PrintDlg() dialog. I made a sample Win32 project with VS 2008, (with "Use Multi-Byte Character Set") and inserted the following code in the "About" callback part: PRINTDLG pd; BOOL rc; DEVMODE *dev; DEVNAMES *dvn; char *name; …

Member Avatar for BobFX
0
389
Member Avatar for vikuseth

Inside General.h #ifndef GENERAL #define GENERAL namespace counternamespace{ int upperbound; int lowerbound; } #endif Inside Analyzer.h #ifndef ANALYZER #define ANALYZER #include"General.h" class Analyzer { public : int var ; int func(); }; #endif Inside Test.h #ifndef TEST #define TEST #include"Analyzer.h" //Error class Test2 { public: Test2(void); public: ~Test2(void); }; #endif …

Member Avatar for vikuseth
0
158
Member Avatar for showman13

Wow.. I guess I must have been living with my head in the sand for a few years. I write everything using PHP/MySql, and now it seems that eveything I am reading is referencing MySqli... So I started researching that and found that it has been around for years and …

Member Avatar for drjohn
0
226
Member Avatar for tadas.bareikis

Hi I have started learning C and my first problem is very simple. I can't get output from a program! What am i doing wrong? #include <stdio.h> #include <stdlib.h> int main() { int a; int c; c = 0; int i; a = 0; for (i = 0;c = 0;i++) …

Member Avatar for deceptikon
0
112
Member Avatar for Pobunjenik

Hello, I'm Mirza and I'm in the first semester of an IT university. I like to experiment with Java, and occasionally I run into problems. Now, I've been visiting daniweb for quite a while now, and I've always found solutions to my problem, but this particular problem I just can't …

Member Avatar for JamesCherrill
0
433
Member Avatar for sagisgirl

i wanna add date in my form.. so i do with my code like this $sql_updTenant = "UPDATE md_tenant SET modifieddt = '".date('Y-m-d H:i:s')."'"; and in my php.ini, i already change this: ; Defines the default timezone used by the date functions ;date.timezone = to this: ; Defines the default …

Member Avatar for sagisgirl
0
177
Member Avatar for hayatuzair

Hey everyone, I was randomly trying to develop a web browser that works in php. I know this is a really small program if you look into it but I dont seem to get it to work. though I have worked it out, but I cant get it to display …

Member Avatar for NardCake
0
219
Member Avatar for bradly.spicer

<?PHP $time = $_POST['Time'];//The things in the [] can be anything you want, but remember these for later $xp = $_POST['X']; if($time <= 0) $time = 0; if($xp <= 0) $xp = 0; $db_handle = mysql_connect($server, $user_name, $pass_word); $db_found = mysql_select_db($database, $db_handle); if ($db_found) { $SQL = "SELECT * FROM …

Member Avatar for bradly.spicer
0
178
Member Avatar for Thomas7399

Hi, I have a listbox on my form that is bound to my SQL table. I have various functions to that table from my from (add rows, delete rows, edit rows). However, after I do one of these functions, the data in the SQL table updates correctly, but the listbox …

Member Avatar for Begginnerdev
0
113
Member Avatar for 2mhzbrain

WHERE Category = '" + CategorySorter.Text + "' AND DateAdded = '" + DateValue("DateEnd.Text") + "' " thats my query and its not working, if the user input a date(like this 12/25/12) in DateEnd.Text, i want to confirm if it is existing on a database

Member Avatar for AndreRet
0
270
Member Avatar for lewashby

I'M trying to test a function that would be able to determine if it was or was not leap year. I believe my problem lies in the if statement but due to my lack of knowledge concerning shell I don't know what else to do here. #! /bin/bash read -p …

Member Avatar for Watael
0
190
Member Avatar for eyeda

Hye guys, sorry, can anyone let me know why this code is not function in IE,but it doing great in chrome. Thanks in advance! ;) <?php //include("Connection.php"); backup_tables('localhost','root','1234','leave'); /* backup the db OR just a table */ function backup_tables($host,$user,$pass,$name,$tables = '*') { $link = mysql_connect($host,$user,$pass); mysql_select_db($name,$link); //get all of the …

Member Avatar for LastMitch
0
145
Member Avatar for ssfreaky

Hi, I am a site owner with zero php experience. I have accidently deleted one letter from a header script and it caused my site to crash. I need desperate help. It shows Parse error: syntax error, unexpected T_STRING in /home/spark496/public_html/www.sourcetutoring.com/wp-content/themes/directorypress/header.php on line 152. Can any expert please help? This …

Member Avatar for widi05
0
359
Member Avatar for eyeda

Hi guys! Is there anyone can help me to do import and export database from my sql? i don't have any idea how to do it. I don't want to do it manually which is using phpmyadmin. So, i want to make it easy only by click the export button. …

Member Avatar for LastMitch
0
512
Member Avatar for garyjohnson

I am trying to make an array which has a random selection of database results in it. This is what I have so far, <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("photos", $con); $query="SELECT album FROM albumname ORDER BY RAND() LIMIT 9"; $result= …

Member Avatar for garyjohnson
0
3K
Member Avatar for f_atencia

Say I have the following XML: <People> <Group id="1"> <Person FirstName="Bob" Surname="The Builder"/> <Person FirstName="Jane" Surname="Doe"/> </Group> <Group id="2"> <Person FirstName="Billie" Surname="Jean"/> </Group> </People> How can I update Group 1 dynamically by replacing it from an imported xml file (for this sake, we'll store it in a variable called $ImportXML)? …

0
97
Member Avatar for rkumaram

Hi , I am able to compile my program , which simply connect to mysql and prints the table result. But I am unable to compile it with Makefile. Any pointer will be appreciated. My program: [code] #include <mysql.h> #include <stdio.h> main() { MYSQL *conn; MYSQL_RES *res; MYSQL_ROW row; char …

Member Avatar for gut.besserwasser
0
6K
Member Avatar for sagisgirl

hi...im a newbi in php..so i really in need of help.. i got an error like this : Query failed: 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 '' at line 1 SELECT …

Member Avatar for sagisgirl
0
163
Member Avatar for pbnoj

Hi guys, So I have a list of objects, each which belong to a particular subclass. I am trying to calculate a running standard deviation as follows: Label = [] Resistance = [] m = 0 i = 0 j = 0 for row in Reader: if len(row) == 0 …

Member Avatar for woooee
0
212
Member Avatar for SumTingWong59

Hey I am having trouble with a tic tac toe game and I could really use some help. My if statement(line 51) is underlined, says its invalid syntax, and I cant fix it no matter what I do. Here's my code: http://pastebin.com/UtVTz4gg

Member Avatar for woooee
0
89
Member Avatar for Nathaniel10

I have a script in which I would like new code to appear based on the response to a question. I am using 'onChange' to trigger the event. The difficulties I am having are that: 1) The format of the form changes after the event. I would like the new …

Member Avatar for Nathaniel10
0
129
Member Avatar for appointmen

Hello guys , i am new around here.Need help with one script its for movie's web site, i need to add more than one picture in database. The code is: <?php @mysql_connect($host,$user,$password); @mysql_select_db($db); @mysql_query("SET CHARACTER SET cp1251") or die( "Не мога да избера БД"); if(isset($_POST['submit'])){ $kategoriq = htmlspecialchars($_POST['kategoriq']); $seriq = …

Member Avatar for appointmen
0
323
Member Avatar for NoUserNameHere

I'm trying to get the hang of PDO and I can't seem to get this to work. I'm tyring to insert some data into a databse, but nothing shows up when I click submit. What am I doing wrong? <?php require 'connect.php'; if (isset($_POST['username'], $_POST['password'])) { $username = $_POST['username']; $password …

Member Avatar for LastMitch
0
114
Member Avatar for Violet_82

HI all, I am having a little problem with the following program. Here are the files: Player.java: import java.text.DecimalFormat; public class Player { private String name; private double average; public Player(String name, double average) { this.name=name; this.average=average; } public String getName() { return name; } public double getAverage() { return …

Member Avatar for Violet_82
0
191
Member Avatar for sciwizeh

Hello, I have some java code I want to port to C++, and first class in the Heirarchy has me stumped. I'm trying to port a simple parsing framework as an exercise to figure out how it works internally, and almost everything in the framework requires, uses, or is `PubliclyClonable` …

Member Avatar for sciwizeh
0
434
Member Avatar for BrickZ28

Hello< i am having an issue with IF statements displaying the right data. Im selecting from my databse the userlevel an depending on the number access they have it will show verbage as opposed to the number. Easy enough a simple IF statment and bam. SO I test it with …

Member Avatar for BrickZ28
0
145
Member Avatar for VIPER5646

Hi all I have an Access database Table and one of the columns has a date value the column name is closing. I would like to do an order by closing asc the null values are allways on top and I would like it to be at the bottom. I …

Member Avatar for VIPER5646
0
291
Member Avatar for IcyFire

Hi, i'm making a server client piant program that send what is painted on the server to the client(and vice versa). this program is supposed to use instruction based transmission of the image. i have a server client program that sends what is drawn on the server to the client …

Member Avatar for IcyFire
0
306
Member Avatar for sanket044

Hello, i am creating one multiuser project. All data will be stored on server side. But i need to store some settings on client side. So can any one help me which are the ways to locally store data and which is best??? Thank you..

Member Avatar for sanket044
0
2K
Member Avatar for garyjohnson

This is my upload form for html to upload only one pic, <html> <body> <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file"><br> <input type="submit" name="submit" value="Submit"> </form> </body> </html> I want to be able to upload multiple pictures at once. This is my php code for uploading. <?php …

Member Avatar for garyjohnson
0
783
Member Avatar for guilherme.carvalho.9250

Hello to everyone, im having some trouble in setting a position on a table in php. I learn how to display a table in php on school and with some research through the internet, but not how to customize it. Is it possible to display a mysql table from a …

Member Avatar for guilherme.carvalho.9250
0
1K
Member Avatar for happyHacker

I'm in the middle of reading "Windows Internals 6th edition", and after mentioning 32 bit threads running on 64 bit Windows have 3 stacks, one user-mode 32-bit, a 64-bit user-mode, and a kernel-mode stack (along with a 32 bit CONTEXT and a 64 bit CONTEXT "block")--when it proceeds to explain …

Member Avatar for happyHacker
0
462
Member Avatar for 03hasnam

I am unable to execute the editProfile() method in MainMenu class. The purpose of the method is to be able to extract the bean values and display them on the empty textfield. I am not sure if i did it correctly. any recommendations for any changes to editProfile() method. public …

Member Avatar for 03hasnam
0
510
Member Avatar for hwoarang69

how to get part of col name in query. for ex: les say i have these rows in table: id name last address 1 dave da new york 2 rand ra ohio 3 random a new now i want to get rows where address has a word new in it. …

Member Avatar for tiggsy
0
121
Member Avatar for Osaid9

i'm trying to show date in a text field this is what I did java.util.Date date=new java.util.Date(); this.DateObject.setText(date); and its wrong... please help & thank you.

Member Avatar for JamesCherrill
0
171
Member Avatar for Rachna0309

I have datagridview which is populated with 3 columns partno,locality,houseno. Initially my row colour would be say light blue. Now what i want is whenever houseno changes in row,its row colour should be changed to say grey. That means whenever houseno changes,these two colours should be alternately applied to rows …

Member Avatar for Rachna0309
0
280
Member Avatar for marco.lanza.507

Hi Everyone, I have been trying to post a code by I am not able to do it; I might the wrong but I am following all the rules; I don't know what else to do; please help. I will try to copy as follows (it might works) :) #include …

Member Avatar for marco.lanza.507
0
343
Member Avatar for bnitishpai

In my database table, 16 rows are inserted with null values for all columns. How can I delete these rows using SQL statement?

Member Avatar for darkagn
0
154
Member Avatar for mehnihma

I need to update values form one table to another and create values if they are not there How can I do this for all values or form values from one ID to another This is the query but I need to run it for every ID and that is …

Member Avatar for mehnihma
0
257
Member Avatar for GraficRegret

I have adjusted a lot of the code that I posted earlier but nothing seems to work, I put in the code to show all errors and I am not getting any errors returened after I fixed the single minor misstype of adding an extra "(" into the code, i …

Member Avatar for GraficRegret
0
166
Member Avatar for bornie21

Hie guys. I want to create a LAN web based application that allows a user to login and change their current Windows Active Directory password or login name. Much like the Powershell scripts but I was looking to implement using PHP over the LAN. Any ideas?

Member Avatar for diafol
0
157
Member Avatar for nickerst

So I have been working on this project for quite some time and I can't figure out why I keep getting an "Illegal Start of Expression" error. I tried moving the variables above the main method and that only returned the same error but instead of the error occuring at …

Member Avatar for nickerst
0
324
Member Avatar for vikuseth

#include <iostream> class Hello { public: void Test() { std::cout << "Testing" << std::endl; } }; class Hi { public: Hi() :hello(new Hello()) {} ~Hi() { delete hello; } void Testing() const { hello->Test(); } private: Hello * hello; }; int main(int argc, char ** argv) { Hi hi; ; …

Member Avatar for vikuseth
0
289
Member Avatar for IcyFire

I have this paint program and i'm having a very silly problem. I'm trying to set the paint area to west position using border layout but when i do that it doesn't show up when i run the program. if i set it in the center it shows up. everything …

Member Avatar for IcyFire
0
698
Member Avatar for happymadman

Hey, Guys and Gals. For some reason the variable text_list seems to be modified after the variable final has been modified. text_list is a list of text :) Full code is below. Any other hints and tips would be great Thanks a bunch. decode_list = [] key = 0 final …

Member Avatar for woooee
0
136
Member Avatar for zachattack05

In order to show a first run dialog (a window that appears before the main application starts if certain conditions are met) I have decided to modify the Main method and do this: static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (Properties.Settings.Default.FirstRun) { Application.Run(new RunOnce()); } Application.Run(new Main()); } Is this …

Member Avatar for zachattack05
0
141
Member Avatar for GraficRegret

I found a tutorial on how to build a php events calendar and this tutorial uses a mixture of php, Ajax and Javascript to form the calendar, everything works properly and displays well, up to the point of actually pulling up and displaying the events details which are pulled from …

0
99
Member Avatar for Aditya_4

class Emp { int name, emp_no, addrs, ph_no, deprtmnt, post, project; Emp(int a, int b, int c, int d, int e, int f, int g) { name=a; emp_no=b; addrs=c; ph_no=d; deprtmnt=e; post=f; project=g; } Emp(int a, int b, int c, int d) { name=a; emp_no=b; addrs=c; ph_no=d; } Emp(int a, …

Member Avatar for Aditya_4
0
205

The End.