199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nikoerror

**Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/u377251981/public_html/foll.php on line 69 how to fix this error? please help me... ** <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="pt-br" xml:lang="pt-br"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <style type="text/css" media="all"> @import "style.css"; </style> <script type="text/javascript"> function …

Member Avatar for nikoerror
0
182
Member Avatar for mr_scooby

Hi guys, I am trying to connect to AD and want to be able to enter a group name and return all the members of that group. I have no idea what I am doing or where to start. I imagine that its not a lot of code I am …

Member Avatar for mr_scooby
0
118
Member Avatar for anuj_sharma

I have created an application which puts all the images at a user defined location in a rtf document. The code is working fine and the images are getting inserted. However, if I open the document and add some text manually and save the file, the file size increases dramatically. …

Member Avatar for anuj_sharma
0
644
Member Avatar for vijayram

Hi everybody, I have this error.anybody,plz help me.how to solve this problem. store all the data in database.but view the data in index page. nothing to display. lib/model/doctrine: class PlanbookTable extends Doctrine_Table public function updatePlanbook($data) { if ($data["id"]) { $planbook = Doctrine::getTable("Planbook")->find ($data["id"]); } else { $planbook = new Planbook(); …

Member Avatar for vijayram
0
173
Member Avatar for pbracing33b

So I have a book that help me out tremendously with my logins, but when I try to execute nothing seems to work, so I'm wondering if my query is wrong now, my database is bookmarks, the table name is user with fields of user_id, user_name and password, so with …

Member Avatar for veedeoo
0
224
Member Avatar for haris riaz

suppose i got a matrix 0 1 0 0 2 0 0 0 4 0 5 0 2 1 3 4 4 5 0 0 0 3 2 0 2 Select a matching by choosing a set of zeros so that each row or column has only one selected. It …

Member Avatar for histrungalot
0
163
Member Avatar for khoo_jun

i have problem that the the loop to check if a digit is correct but not at the right place. then print. void feedback( char random[4], char guess[5]) { int i; for(i=0; i<4; i++) { if(guess[i]==random[i]) { printf("#"); } } if((guess[0]==random[1]||guess[0]==random[2]||guess[0]==random[3])&&guess[0]!=random[0]) { printf("*"); } if((guess[1]==random[0]||guess[1]==random[2]||guess[1]==random[3])&&guess[1]!=random[1]) { printf("*"); } if((guess[2]==random[0]||guess[2]==random[1]||guess[2]==random[3])&&guess[2]!=random[2]) { …

Member Avatar for WaltP
0
190
Member Avatar for Verygoodguy

I have a gridview1 that displays customers with their codes. The gridview contains 3 columns: The 1st contains an item tamplate with radiobutton(radioButton1) in it. The 2nd is a bound column that binds with CustomerID column of sql Customers table. The 3rd is a bound column that binds with CustomerFullName …

Member Avatar for hericles
0
362
Member Avatar for lxXTaCoXxl

I get tired of having to google this simple line of code all the time. My problem with memorizing it is that I switch back and forth between C# and C++ all the time, and the way you overload operators in each is different. So once I learn one again, …

0
174
Member Avatar for renzlo

Hi, All, I have a data table that looks like this: USERNAME ICOUNT IAVERAGE DATE_LOGGED LAGX01 1245 1245 05-07-2012 LAGX02 2211 1422 05-07-2012 LAGX03 1698 1112 05-07-2012 LAGX04 4598 1555 05-07-2012 LAGX05 2589 3245 05-07-2012 LAGX06 3321 1155 05-07-2012 LAGX07 3698 3458 05-07-2012 LAGX08 2589 4587 05-07-2012 LAGX09 1598 1142 …

Member Avatar for renzlo
0
381
Member Avatar for king03

Hi guys I need help on how to create a remake of the popular tetris game for my csharp project. I am wondering how I will be able to design the tetris blocks on my own, I mean can I do it in xna? I tried once to use xna …

Member Avatar for lxXTaCoXxl
0
271
Member Avatar for silvercats

I need 15 .but I only have 3. can some one remind me of some? I have put only these questions so far This is just a practise questionnaire . not a real one. 1. What are your color preferences for below mentioned Sections? i. Title bar? ii. Tools bar? …

Member Avatar for silvercats
0
120
Member Avatar for PDB1982

I am trying to figure out how to make a form quicker to fill out for my work, and it involves having a employee enter a patient's name in one text box, and then having that information duplicated in all other name text boxes. Here's what I'm thinking.... function FillName(f) …

Member Avatar for ChrisPadgham
0
291
Member Avatar for digan

Hello everybody, I have an application for the iphone. When I go into a view, it is supposed to play a sound on repeat until I exit the view. This works fine the first time. The second (and subsequent) times the sound is played numerous times overlapping each other (two …

Member Avatar for ChrisPadgham
0
379
Member Avatar for Mike Bishop

Hi All, I have a spash screen on my project, this isn't just for effect but to read data from a file before my main project is started. the issue is that i cant seam to close my splash screen..... here is the code from my splash screen. Private Sub …

Member Avatar for Unhnd_Exception
0
2K
Member Avatar for dinosaur123

Hello again! I am still working on a program, and I am now working on sorting an array. Well, the array is a bunch of strings read from a text file. Some of the strings were turned into integers. I need to take the strings and find a way to …

Member Avatar for dinosaur123
0
271
Member Avatar for hhol1101

Hi everyone, I'm new to python and I have been trying to get this program to word but I don't know how to get the image cards to shuffle randomly and then appear on the graphics screen. Can anyone help me? The question was to create a program that displays …

Member Avatar for TrustyTony
0
2K
Member Avatar for asif49

The following two are methods of joining two tables together but what I want to know is whether the two methods actually have any differences. I tested the two methods on two tables and they didn't give different results but maybe my two tables were just an anomaly. Are these …

Member Avatar for diafol
0
112
Member Avatar for abhishekagrawal

Hi all, I have written a program to find the reciprocal of an input number by using newton rhapson iterative method. Below is the algorithm implementation in C: #include<stdio.h> #include<stdlib.h> #include<math.h> int main() { double guess,newguess,input,error=1.0; printf("Enter the input number"); scanf("%f",&input); printf("Enter the guess for the reciprocal of the input …

Member Avatar for TrustyTony
0
213
Member Avatar for yy886

This is a small php which will read the youtube RSS feed. What I want to do is convert it into object oriented. Using class and function. I am new to object oriented, can some body show me a way how and where to start with? I have read the …

Member Avatar for veedeoo
0
1K
Member Avatar for Bladtman242

I have this annoying problem: I am filling a HashSet out with Road objects, only doing so to avoid duplicate elements. However, the output from lines 81 though 95 shows that the set contains duplicate elements. Sorry for the messy code, this is a pretty ad-hoc sollution, in addition to …

Member Avatar for NormR1
0
3K
Member Avatar for apanimesh061

<?php error_reporting(E_ALL ^ E_NOTICE); set_time_limit(0); $hd = mysql_connect("localhost", "root", "") or die ("Unable to connect"); mysql_select_db ("movie", $hd) or die ("Unable to select database"); $res0 = mysql_query("SELECT * FROM users", $hd) or die ("Unable to run query"); $count_users = mysql_num_rows($res0); $res1 = mysql_query("SELECT * FROM movies", $hd) or die ("Unable …

Member Avatar for diafol
0
172
Member Avatar for tendaishava

i am looking for information source on an algorithm for parametric surfaces design in 3d. i just need advice on how to go about it. the language used for the algorithm is not a matter but rather the idea on how the algorithm is to be is of paramount importance. …

Member Avatar for mike_2000_17
0
286
Member Avatar for shandoosheri

hi i have this variable which looks like this ؛‎ ‎002005 And i want to split it into two halfs three each . What i want to do is to put the first 3 numbers in a new variable and to remove its starting zero padding to get only 2 …

Member Avatar for diafol
0
144
Member Avatar for Torf

I'm doing an actually simple practice problem from the book, but I am still not sure how to correctly do it.. It's just converting pseudo code. 1st part > num SIZE = 5 > > num VALID_ITEM_PRICE [SIZE] = 0.59, 0.99, 4.50, 15.99, 17.50, 39.00 > > stack int validItems …

Member Avatar for NormR1
0
156
Member Avatar for lyrico

Hi all, Can anyone help me or give me an idea on how export data from mysql into multiple excel sheet using php? Below is the code I used to export data from mysql in a single excel sheet. thanks in advance [code] <?php $filename = 'filename.csv'; include 'connection.php'; $date …

Member Avatar for whiteyoh
0
301
Member Avatar for sainigks

hello every one i have created a code to create html table from php. simply user enter column and row no. and submit. this data will create a table for the same. now i want to put some names with this table. like each table column have a name from …

Member Avatar for whiteyoh
0
6K
Member Avatar for mani508

how to restrict size and restrict format of fileupload control in asp.net? how its possible....??

Member Avatar for mani508
0
331
Member Avatar for soham.m17

How can I keep the lines that have been drawn previously after calling repaint() this is my paintComponent public void paintComponent( Graphics g ) { graphics2D = (Graphics2D)g; graphics2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); graphics2D.setPaint(Color.white); graphics2D.fillRect(0, 0, getSize().width, getSize().height); graphics2D.setColor(Color.black); } I've another method public void show_line(line a) { graphics2D=(Graphics2D)this.getGraphics(); for(int i=1;i<a.getLine_segs().size();i++) { Point …

Member Avatar for soham.m17
0
215
Member Avatar for pendo826

import javax.swing.JFrame; public class MainApp { public static void main(String[] args) { new MainApp().start(); } public void start() { CalculatorUI obj = new CalculatorUI(); obj.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); obj.setSize(275,275); obj.setVisible(true); } } import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.JTextField; public class CalculatorUI extends JFrame { //Variables. …

Member Avatar for pendo826
0
163
Member Avatar for mikeshadow

i have a problem, could anyone help me? basically my code is this: if (move_uploaded_file($_FILES['file']['tmp_name'], 'users/' .$_SESSION['ID']. '/' .$res['id'].'.'.$type)){ ?> <h align="center">Upload Successful</h> <?php } but when i use it in the web i get the following error: Warning: move_uploaded_file(users/8/3/) [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: failed to open stream: No such file or …

Member Avatar for veedeoo
0
176
Member Avatar for DeanMSands3

I need GMPXX on MinGW. This is driving me nuts. EDIT: I should mention I've tried using the precompiled MinGW GMP and GMPXX libraries via the **mingw-get**. And they fail. I removed them. I compiled GMP in MSYS with the following line. ./configure --enable-cxx --prefix="/mingw" && make && make install …

Member Avatar for DeanMSands3
0
623
Member Avatar for suhasgh

Hello, i want to create a vector of pointers and delete them,but i am little confused whether my code is OKAY or not. here's my code: vector<Object*> SpriteList; for(i=0;i<10;i++){ Object* tempobj; tempobj=new Object(); SpriteList.push_back(tempobj) } for(int i=0;i < (int) SpriteList.size();i++){ delete SpriteList[i]; SpriteList.erase(SpriteList.begin()+i); } is there any memory Leak??plz help...

Member Avatar for DeanMSands3
0
237
Member Avatar for PF2G

Hi, Daniweb I have this code that works like this: i search for a product and it gives me the name, reference and the image of the product found. My problem is that the image doesn't appear. <?php require_once('Connections/futura.php'); ?> <?PHP $prod=$_GET['q2']; $sql_prod = "SELECT * FROM produtos WHERE nome …

Member Avatar for joehms22
0
131
Member Avatar for athulram

I am using CKEDITOR on my website so that people dont have to write in html to post their articles. But I want to keep the website size as low as possible. Since my website overall is just over 3MB but CKEDITOR has more than 8MB. How can either reduce …

Member Avatar for veedeoo
0
336
Member Avatar for utkarshsahu

I am basically trying to make a TicTacToe game in Netbeans GUI builder. I have nine(3x3) buttons to show a grid for the game and that's where you mark X and O's. I want to make it one player game. I wanted to know how to make an array of …

Member Avatar for utkarshsahu
0
133
Member Avatar for Pamilerin

In sql server , my query brings out more than one row of data SELECT * FROM TABLE 1 WHERE COLUMN LIKE 'PARAMETER' Now i am trying to make it in a dtagrid that the datagrid shows allpossible rows that is supposed to show .This is the code Dim objCommand …

Member Avatar for Pamilerin
0
855
Member Avatar for lambing

Does anyone knows how to make a particular website their default home page when they click the button "Make this site your homepage" using javascript. This sample code works in IE, but other browsers doesn't know this code. [CODE] this.style.behavior = 'url(#default#homepage)'; this.setHomePage('http://localhost/getuptodate/php/getuptodate.php'); [/CODE] Could someone help me in figuring …

Member Avatar for raZEel
0
192
Member Avatar for cali_dotcom

hi, i am about to rewrite an application that was written in zend 1.8. the owner complains that its quite slow so his default reaction is to rewrite it in any other framework of my choosing. the application is sometimes slow because they have not implemented any caching mechanism at …

Member Avatar for mschroeder
0
139
Member Avatar for cppgangster

Dear all, I have been away from c++ for a while and I have just got back and started reading about "c++ concurrency in action". I found an example where the author gives function witch returns thread instance but I can not understand how you can declare a function in …

Member Avatar for deceptikon
0
179
Member Avatar for triumphost

I have the following: typedef union { unsigned Color; struct { unsigned char B, G, R, A; }; } RGB, *PRGB; Then I have: RGB Rgb(XYZ Xyz) { RGB Result; double X = Xyz.X / 100; double Y = Xyz.Y / 100; double Z = Xyz.Z / 100; double Red …

Member Avatar for triumphost
0
954
Member Avatar for valestrom

I was wondering how to **Connect** to a FTP server in the form of it having Address, Username, and Password. Then be able to either edit or upload a file to a specific folder on the server. Because I am designing a website with a current news box on it …

Member Avatar for thines01
0
321
Member Avatar for cyther

can somebody convert this line to c++? thanks fscanf(in, "%s %s" ,student[x].name, student[x].num);

Member Avatar for cyther
0
161
Member Avatar for peter20

Hi, I am trying to make 8-tiles problem in prolog but my code is not running . To be more specific when I type an action then I take false. So the new state is not printed. [CODE] move([0, Y, Z], [Y, 0, Z], right). move([X, 0, Z], [0, X, …

Member Avatar for TrustyTony
0
217
Member Avatar for Taino

List the customer number and name for all customers located in the city of Grove. Your query should ignore case. For example, a customer with the city Grove should be included as should customers whose city is GROVE, grove, GrOvE, and so on. Can someone explain if I am doing …

Member Avatar for JorgeM
0
167
Member Avatar for Buppy

Hi, I have an array with ID values. Let's say it looks like this - $a = array(23,4,56,21,9); What i need is to select rows with those ID's, but in exact same order as in the array. What would be the best way to do that? If i use MySQL …

Member Avatar for vibhaJ
0
90
Member Avatar for anuj_sharma

Hi, I created an application which allows a user to capture screenshots and save them as images at a pre-defined location. Now, I want to insert the saved images to a word document. I am aware of Apache POI, but that is still under development and it seems that you …

Member Avatar for anuj_sharma
0
1K
Member Avatar for anuj_sharma

am trying to add images to a rtf document. I am able to add images to the document but I can't append any images. This means that when the 2nd Image is added, the first image is removed. I think that whenever the code is executed a new rtf document …

Member Avatar for anuj_sharma
0
1K
Member Avatar for zifina

hai all... i need to add google map to my c sharp project...and also be able to find distance between any two locations on the map... i have no clue how to do it.. i dont know how to use the google map api... please help me with any info …

Member Avatar for zifina
0
152
Member Avatar for daemonlies

Hey everybody, New to the java scene and having major issues, it would be appreciated if someone could have a look at my coding and see where i'm going wrong. I have a few 1. When i press the 'start new game' button the random number resets but not the …

Member Avatar for NormR1
0
145

The End.