199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sirlink99

I have an issue reading from a database. here is the php code after I have connected to the database [CODE] echo ("Connected to MySQL"); echo ("<hr /><br />"); mysql_select_db("test"); echo ("Connected to database"); echo ("<hr /><br />"); $sql = mysql_query ("SELECT * FROM 'Product'"); while ($row = mysql_fetch_array($sql)){ echo …

Member Avatar for sirlink99
0
98
Member Avatar for g1skyfire

The following code worked for me but I wanted to re-do it to learn how to make a Object Array. The first set of code is the working code, the 2nd is my attempt at it. Thanks for checking this out: [CODE]public void AddPrices() { string[] cb = new string[11]; …

Member Avatar for thines01
0
234
Member Avatar for Nfurman

Hello! I've got trivial problem and have no time to re-read manuals. I need to construct a function in SQL2005 which selects from DB and returns datatable. Something like this: [CODE] create function GetAllStudents() returns Table as begin ( select StudentID,StudentName,StudentFamilyName,Birthday,HisClass from Students ) return DataTable [/CODE] I need it …

Member Avatar for noamwegner
0
112
Member Avatar for natehome

im working on a tron game with pygame and i cant figure out how to make my tail that the player's car makes disappear after somany pixels. i want the tail to start shortening itself after like 500 pixels. if you can, can you post the full code edited (im …

Member Avatar for natehome
0
1K
Member Avatar for PF2G

Hi, I have a registration form and several codes for validation but i can't join them. regsitration form: [CODE] <?PHP include 'topo.php'; ?> <!-- content --> <div class="indent"> <h2> Inscrição </h2> <form action="envia.php" method="post" onsubmit="return validar()" > <fieldset> <legend> ALUNO </legend> <br/> <div class="field"><label>Username*: </label><input type="text" size="30" name = "username"/></div> …

Member Avatar for hericles
0
259
Member Avatar for Zalo83

Hello experts, I'm currently trying to make program that sends commands to my home security system. I have it connected to my computer trough the COM port, this feature allow me to control my system by sending hex ASCII codes. I hope that someone could help me make a function …

Member Avatar for Zalo83
0
268
Member Avatar for postonoh

Sample webpage [CODE]<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"> </asp:Content> <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> <h2> Welcome to ASP.NET! </h2> <p> To learn more about ASP.NET visit <a href="http://www.asp.net" title="ASP.NET Website">www.asp.net</a>. </p> <table style="width:100%;"> <tr> <th colspan="2" align="left" scope="row">My goal is to: <p> <asp:CheckBoxList …

Member Avatar for postonoh
0
120
Member Avatar for Yamadron

Hello.. I am creating Contact Book Application.. and I am now having a problem while writing this information to an XML File... I get "[COLOR="Red"]Root Element is Missing[/COLOR]" that crashes the application while using XmlDocument.Load to load a Stream Simply it should save all the changes when closing the form... …

Member Avatar for CeilingSpy
0
1K
Member Avatar for slowly_but_sure

[B]I was trying to create an application implementing the Douglas Peucker algorithm in VB.NET. I already finished coding the program and tried to compile it but when I try to draw on the form, it is not working. My source code is below, I just want to ask if there …

Member Avatar for slowly_but_sure
0
702
Member Avatar for surakesh

<< This is my python code >> << (Step 1) - I am registering the class of this python file for this PythonUtil class by executing this code in the pythonwin.exe interpreter >> class PythonUtil: _public_methods_ = ['funct’] _reg_progid_ = "PythonUtil.Utilities" _reg_clsid_ = "{73B6791B-C161-4F26-9402-D4AE4BC602AB}" def funct(self, val, item=None): print “hi” …

Member Avatar for thines01
0
332
Member Avatar for dalip_007

hi guys i am working on a site where people can add a button to add a search listing to their favorite item using cookie in php. then they can get this list of cookies to email to their friend, now is there a way to do this? I mean …

Member Avatar for HITMANOF44th
0
272
Member Avatar for Dani

I am using Mac OS X with the built in configuration of Apache. I am taking a web dev class where we're writing perl scripts ... so far I've been able to get my CGI scripts to run via mod_perl. Now, I'm trying to install CGI::Session via CPAN and it's …

Member Avatar for thomasgutierrez
0
348
Member Avatar for major_lost

I want to first say THANK YOU to all of you programmers for your help. You truly live steady to the core of IT and are an inspiration to us newbies! I have a simple utility that starts and stops a timer on a VB4 form. I record the time …

Member Avatar for ChrisPadgham
0
122
Member Avatar for s0bigg

I am currently using a script to run RSS feeds and dump all data into a MySQL. Every time I run it, it creates a duplicate entry into a database. Is there any way, I can just program a script to only get new feeds? I have some feeds subscribed …

Member Avatar for HITMANOF44th
0
190
Member Avatar for Sadun89

I have root folder called "My Root". Its content some other file like message.txt and image.jpg.I made a zip file using 7zip in different methods. [B]I want to know what are the different between those methods..[/B] [U]First Method[/U] I select & right click on image.jpg into image.zip and drag other …

Member Avatar for Sadun89
0
110
Member Avatar for bhagawatshinde

Hi , is this correct query for access database.. [CODE] string findrecord = "SELECT s.test_no, COUNT(s.test_no) AS totalQ,(SELECT COUNT(s.que_id) AS CorrectS FROM Testmark AS t INNER JOIN StartTest AS s ON s.test_no = t.test_no AND s.que_id = t.que_id AND t.ans = s.ans and t.test_no = '" + GlobalMember.TestNumber + "') …

Member Avatar for thines01
0
152
Member Avatar for BenzZz

As the title says... When I initially go onto the log in form i created, the password field appears to have 5 characters in even though i have not typed anything into it? It's not a major problem as everything works fine however i would like to get rid of …

Member Avatar for broj1
0
158
Member Avatar for datanetw

Hi Guys my name is tejas m having the same problem i am trying to compile a billing project but it wont simply work gives Unhandled exception in SPBS.EXE(Program Name) (CRAXDRT.DLL) Access Violation 0xc some zeros and 5 i am posting the complete code of frmreports can anyone help me …

Member Avatar for hkdani
0
392
Member Avatar for pseudorandom21

I've been fiddling with some boost spirit stuff, and my code seems to start infinitely looping somewhere in the standard library stuff. Any ideas what's wrong? The qi::phrase_parse works very well, but the karma gets me. [code] #include <iostream> #include <string> #include <vector> #include <algorithm> //#include <boost/spirit.hpp> #include <boost/spirit/include/qi.hpp> #include …

Member Avatar for mike_2000_17
0
191
Member Avatar for Vasthor

Hi guys, again, coming to this forum for asking some confirmation of my knowledge confusion. firstly, let's take a look on the code:- [CODE] #include <iostream> using std::cout; using std::endl; int main() { // main process const int value_1 = 1000; const int *pointer_1 = &value_1; const int **pointer_2 = …

Member Avatar for Narue
0
2K
Member Avatar for deanus

Hi, I've just learned that Java's 'protected' access specifier has a different effect than that in C++. So is there a way to make a member of a base class visible to its inheritors but not globally? Dean

Member Avatar for deanus
0
108
Member Avatar for OmniX

Due to the compability between PHP and MYSQL I am hoping someone has a solution to my problem :( I wish to reset the auto increment field and get them "redone" as such. Problem being: When I delete a row it leaves an incorrect auto increment, as a total as …

Member Avatar for iffy85
0
760
Member Avatar for influenceuk

Hi i have been asked to create a sample app which pulls data from a txt file. Then outputs it in another txt document depending on certain arguments. Write a console application called 'program.exe' that takes four arguments: 1. Input File 2. Output File 3. Log File 4. Product Codes …

Member Avatar for thines01
0
195
Member Avatar for mohamedgpaly

Hello I need help with Programming system protection Bcod license for a particular script The method used: [url]http://www.daniweb.com/web-development/php/threads/278022[/url] But it did not work at all and there are mistakes I want to help in the patch or in the creation of the license code, for example, in this way [CODE] …

Member Avatar for chrishea
0
96
Member Avatar for jabeen123

I want to print only year of date store in table example if 2001-12-29 stored in db table so print only number. [CODE]<?php include_once("connect.php"); if($search=mysql_query("SELECT year( Date_Of_Admission ) FROM student_enroll where Seat_Number='$_POST[seat]'")) { //echo "<br/>"; echo "<table border='1'> <tr> <th>Seat Number</th> <th>Batch</th> </tr>"; while($row=mysql_fetch_array($search)) { echo "<tr>"; echo "<tr>"; echo …

Member Avatar for HITMANOF44th
0
91
Member Avatar for peter20

Hi, I don't know anything about generics interface in java but I would like to make threads with name qorker (qorker<Someqork> qorker = new Someqorkqorker<Someqork>()) which has three states INIT, WORKING and END. And I want this thread to call a web service like [URL="http://www.w3schools.com/webservices/tempconvert.asmx"]Web Service/tempconvert.asmx[/URL] I don't know where …

Member Avatar for peter20
0
181
Member Avatar for amir1990

Hi, i have this code: s = "hi john' re.serach(r'j\w+h', s).group() and up to here there is no problem but i want to put the letter h in a str variable l = "h" re.search(r'j\w+'l, s).group() but when i do this i receive an error??

Member Avatar for amir1990
0
82
Member Avatar for tqmd1

Dear Coders I have following codes [CODE]<html> <head> <body> <center> <script language="JavaScript"> function checkpostal(){ var re=/^\D{A-Z}$/ if (myform.myinput.value.search(re)==-1) { alert("Good") }else{ alert("Bad") } } </script> <form name="myform"> <input type="text" name="myinput" size=15> <input type="button" onClick="checkpostal()" value="check"> </form> </center> </body> </html> [/CODE] With Onclick, I want to test input through regular expression …

Member Avatar for hielo
0
170
Member Avatar for bipies

Hi everubody! I have a huge issue with dates and encoding in my database. Two weeks ago I restored a database from an Xcloner copy to my site, since then all problems are there. My site language is Spanish, and I was using in Wordpress define('DB_CHARSET', 'UTF8'); Since then if …

Member Avatar for fobos
0
195
Member Avatar for awaresefere

hi i want to write a text in any line inside a rich text box how can i do that ?am now able to append to existing one or insert to the beginning of the rich text box but i want to write to any line inside the text box.

Member Avatar for lxXTaCoXxl
0
1K
Member Avatar for sirlink99

I made a test database to store items in a database, but I keep getting an error when trying to import from a txt file. Here is my txt file [CODE] 1,Lánc 2,Fa 3,Csavar 4,Lakat [/CODE] How could I fix this problem? Also is there a reason I need to …

Member Avatar for sirlink99
0
819
Member Avatar for winecoding

I am trying to use a Weka method, crossValidateModel, which is posted in the last. It looks like that the fifth parameter is referred to as varargs parameter. I tried the example usage given in Weka page, such as [CODE]eval.crossValidateModel(cls, data, folds, rand);[/CODE] It works just fine on one system,(eclipse+Ubuntu); …

Member Avatar for ~s.o.s~
0
213
Member Avatar for srdva59

hi, i looking for a WYSIWYG HTML that work in the browser. I have found this [url]http://phphtmledit.com/[/url] that work like i need but i looking for a alternative that cost less or opensource any one know something like this? thanks for your help :)

Member Avatar for pritaeas
0
137
Member Avatar for AquaNut

Hi Y'all, I have a RTB which I import with a set of 7 or 9 didit numbers, 7 for Staff and 9 for Students. e.g. Staff numbers 0628189 0628191 0629991 0629850 0804930 and depending on what is selected in a list box ('Student' or 'Staff') will generate a string …

Member Avatar for AquaNut
0
483
Member Avatar for SasseMan

Hi! I'm writing a unit test where arbitrary objects have to be created without knowing anything about the objects (with some exceptions). I use reflection to create objects and set their fields to random values etc... I'm almost there but I've come to an issue I can't find a solution …

Member Avatar for SasseMan
0
187
Member Avatar for 3435

[B]Hello everyone!![/B] I am new to Linux forum and have a question related to typecasting in C related to offset of structures.I have a piece of code and having a problem with this: [CODE]void fun(struct c *p) { int offset; struct b *address; offset=(char *)&((struct c *)(&((struct a*)0)->y)->j)-(char *)((struct a …

Member Avatar for Trentacle
0
184
Member Avatar for sidyusuf

hi frnds , i have a combobox containing countries name and their codes like INDIA:CNT001 then i have a textbox that store the code of country i.e CNT001(fetching from database) Now i want to match that code with the combobox code so that the combobox is set to that item …

Member Avatar for NewUserVB.Net
0
604
Member Avatar for NewUserVB.Net

Goodmorning everybody, here i am wanting to make a Login System that uses Usercontrol. I have a label left and right i have a panel. in this panel i want to add usercontrol for all users that has one account in the application. this are some examples (Windos XP Login) …

Member Avatar for codeorder
0
175
Member Avatar for sanityhien

Hello I'm new with AJAX and I'm trying to read an XML file with Javascript. It's supposed to display an alert message but it's not. What's wrong with my code? Thanks! :) HTML [CODE]<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>XML Exercise</title> <script type="text/javascript" src="xmlExercise.js"></script> </head> <body onLoad="getData()"> </body> </html>[/CODE] Javascript …

Member Avatar for Troy III
0
304
Member Avatar for NewUserVB.Net

Good Day everybody, I am wanting to make a program in VB.NET that has many files.doc in a specific folder. This program has on top a textbox(txtSearch) with a button(btnSearch) under that this has two listbox(lstOption, lstResult), that are floating a left, one richtextbox(rtbDoc) that is floating a right. I …

Member Avatar for codeorder
0
685
Member Avatar for shibu2all

Hello Members, Can anyone please help me out with the concept of INSERTION AND DELETION OF ELEMENTS IN ARRAY.. I have understood the logic behind this, but i am facing problem with the coding thing.. i am not able to get it properly.. can anyone here pls help me out....

Member Avatar for mridul.ahuja
0
159
Member Avatar for Jake.20

We're having a problem on computing the grade average [CODE]Dim hwTotal, swTotal, quizzes, project, midTerm, totalAverage, Finals, Attendance As Double[/CODE] [CODE]hwTotal = Val(hw1.Text) + Val(hw2.Text) + Val(hw3.Text) + Val(hw4.Text) + Val(hw5.Text) / 50 * 100 * 0.1 swTotal = Val(sw1.Text) + Val(sw2.Text) + Val(sw3.Text) + Val(hw4.Text) + Val(hw5.Text) / 50 …

Member Avatar for codeorder
0
155
Member Avatar for jayjey

I don't understand what is wrong with this. This is the line with the error: `}while(playAgian());` Thank you :) #include <iostream> #include <string> class Ice { public: void hit(int playerLoco, int iceStrenth, int loco1, int loco2, int loco3); int strenth; class Loco { public: int location; bool hit; }; }; …

Member Avatar for gevorg1808
0
200
Member Avatar for chris99

I'm using windows 7, hoping to use Tkinter to open an internet window when a button is clicked that goes to a specific page in google chrome. Is this possible? [CODE]class App: def __init__(self, master): frame = Frame(master) frame.pack() self.button = Button(frame, text="Rejuvenation", command=self.info) self.button.pack() def info(self): pass #Will go …

Member Avatar for inuasha
0
267
Member Avatar for inuasha

How would I find the amount of characters in a string and then use that to print a certain amount of some character that you choose. For example: [CODE=Python] a = 'string' # this holds 6 characters print '*' * # amount of characters in string [/CODE]

Member Avatar for inuasha
0
247
Member Avatar for srdva59

hi, i have two databases and each one have diferent fields names and tables and i want a creat a map for each field and each table and export to a database to the other i have tested the mysql migration but i can´t choose a diferent table in the …

Member Avatar for diafol
0
89
Member Avatar for atikah8890

Hi. I need to retrieve and list out the records from 'expenses' according to the date (eg. January 2011). I used substring to get the month (01 for January, 02 for February, etc.) and year. My date format is DD/MM/YYYY. I've tried echoing out $sql2 and the values obtained are …

Member Avatar for atikah8890
0
241
Member Avatar for lxXTaCoXxl

I'm trying to save and load objects from my form. Like say I have a listbox and a checked list box, I want to save the contents of these boxes to a file, NOT TEXT but through bytes (the right way). How do I do it? I need help. Any …

Member Avatar for kamilacbe
0
87
Member Avatar for deeptiarora

Hi can we create an exe file in vb.net and used it anywhere we want without using any .net framework. deepti

Member Avatar for studsSW
0
453
Member Avatar for sasidharnet

Classes Like Threads,Streams,Runtime and some of awt not serializable. Please tell me the Reason. This is asked in my interview. I said, classes which have native code will not be serializable. Is it correct? Please give detail note.

Member Avatar for stultuske
0
507

The End.