199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for a_salted_peanut

Hi all I apologies again in advance for the seemingly stupid question. I have tried googling this once but can't see to get the answer i'm looking for. Basically i have a form which can query the database depending upon what the user has selected. The trouble is if multiple …

Member Avatar for sleign
0
198
Member Avatar for Layerphp

Hi all I want to display image uploaded from a form in a div size of "width=235px and height=61px" with image good quality also(i mean not shrinked or stretched) **using php**. I'm uploading a image of size "width=452px and height=507px". I have tried the codes i found on internet but …

Member Avatar for veedeoo
0
211
Member Avatar for Dani

I have the following queries (as examples): ~~~ sql SELECT articles.* FROM articles WHERE articles.forumid IN (2,8,118,9,61,58,34,114,112,113,125,124,4,134,42,14,71,181) ORDER BY lastpost DESC LIMIT 0, 30 ~~~ ~~~ sql SELECT articles.* FROM articles WHERE articles.forumid IN (2,8,118,9,61,58,34,114,112,113,125,124,4,134,42,14,71,181) AND NOT deleted ORDER BY lastpost DESC LIMIT 0, 30 ~~~ ~~~ sql SELECT articles.*, …

Member Avatar for Dani
0
285
Member Avatar for coroll

Hi all, I have given a assignment to implement patterm matching algorithms and to do a experimental analysis on number of comparisons, real time taken and CPU time taken for each algorithm. I have done all except CPU time calculation. Plz can anyone guide me how to do this...

Member Avatar for coroll
0
5K
Member Avatar for mbhanley

Need help with code i am trying to acheive upload of videos but when they are uploaded the file names need to be changed to have hyphens in replace of white space and still keep the exstensions. its proving difficult because once uploaded ffmpeg needs to read the output as …

Member Avatar for mbhanley
0
466
Member Avatar for makehaste

I'm working on a program that demonstrates polymorphism. It asks the user to create an elementary, high school, or college student. Once a student is created, it is stored in an array list. When prompted, the program is suppose to print out each of the student's information. How do I …

0
126
Member Avatar for sibbs06

Is it possible for me to use this code but change the date to a date from my database? // NOTE: the month entered must be one less than current month. ie; 0=January, 11=December // NOTE: the hour is in 24 hour format. 0=12am, 15=3pm etc // format: dateFuture1 = …

Member Avatar for shylonz
0
235
Member Avatar for moroccanplaya

can anyone tell me how should i go about hiding messages in whitespaces in the end of a text for example | = whitespace hell my name is bob|| i work at home ||||

Member Avatar for ZZucker
0
204
Member Avatar for Jorox03

I am trying to modify some code that was written in lecture to develop a program that simulates rgrep. The aim of the project is to search a directory's files for a string and output the line it occured on. The problem I'm having is I'm not sure what to …

Member Avatar for Jorox03
0
394
Member Avatar for rob211

Hi! I have several 55 x 55 px png-pictures, which need to be rotated by 0, 90, 180 or 270°. I tried the following but in that cases the pictures were not on their correct positions anymore. Thanks. // Import the basic graphics classes. import java.awt.*; import javax.swing.*; /** * …

Member Avatar for rob211
0
138
Member Avatar for Miss Scarlet

Hi folks, I'm kind of stressed out right now about this class I'm taking, PHP and MySQL...for beginners :) Anyways, he has us read the Murach PHP and MySQL, and then afterwords we are to write code for an assignment. This week I had to create two files: book.php and …

Member Avatar for Miss Scarlet
0
202
Member Avatar for harintfs

Dear friends, I am using shared linux hosting php5 enabled and also supports php4, I am using some .php files for my site, Now I want to edit my php ini, Whether I need to edit php5.ini or or php.ini. I do not know which type of php files I …

Member Avatar for veedeoo
0
224
Member Avatar for RickCJ7

How do I call a PHP string from within javascript? This is parts of my code but it isn't working... Thanks! <?php $URLString='MySite.html'; ?> <html> <body> <script language="JavaScript" type="text/JavaScript"> var popUpWin=0; function popUpWindow(URLStr) { if(popUpWin) { if(!popUpWin.closed) popUpWin.close(); } popUpWin = window.open(URLStr); } </script> <script language="javascript"> popUpWindow(<?php $URLString ?>); </script> …

Member Avatar for RickCJ7
0
139
Member Avatar for Gazzmonkey

This basic client server program compiles fine in eclipse IDE but I keep getting a zero back from server!!! I'm new to all this client server stuff by the way. package echo3; import java.io.*; import java.net.*; class Client { public static void main(String argv[]) throws Exception { int outgoingdata = …

Member Avatar for Gazzmonkey
0
240
Member Avatar for T0pAz

How to convert this on CSharp? const char* data = "\x2D\x90\x01\x00\x00"; int version = 100; // is this 1.0? void* testAddress = (void*)0x4F77BB; if (memcmp(testAddress, data, 5))

Member Avatar for skatamatic
0
79
Member Avatar for rugged1529

I'm trying to seem if(t3.alive) is not ever entered. It successfully goes through t1 and t2 if statment but skips over three. I've tried the do while, while (like seen). I would think if t3 is still alive the loop would still go then once it's not, its out but …

Member Avatar for skatamatic
0
3K
Member Avatar for paoi00

i used this codes to show the records but this doesnt works .. but when use the query ("Select * from Schedulings") it works .. it shows the all records. but i want to show the records that satisfy this query.. ("Select * from Schedulings where YearLevels = '" & …

Member Avatar for Begginnerdev
0
112
Member Avatar for triumphost

I have the following code which tracks the mouse movements on a control and if the mouse hovers it will beep. I want it to draw specific images on Hover and when it leaves, draw a different image. How can I accomplish this? I subclassed the buttons to figure out …

0
83
Member Avatar for blivori

have various classes representing various types of program-genres (comedy, drama etc). I have a text file filled with '-' seperated values that get read by a class called Processing and puts them into a LinkedList. I have another class GUI_g that creates the GUI. It has 3 JTables. One for …

Member Avatar for Majestics
0
265
Member Avatar for stereomatching

I would like to study the source codes of openCV and reimplement them by the boost generic image library, I hope the algorithms developed by GIL could be integrated with Qt seamlessly. There are many libraries of image processing and I don't need to implement them again if I only …

Member Avatar for stereomatching
0
165
Member Avatar for next_tech

Hey Guys, I am working on a gui and I've got a two part question. I've got a jlist and a couple of buttons to add and remove components from the list. I've got everything working except for the keyListener. When the cursor is on the jList (hasFocus I assume?) …

Member Avatar for Philippe.Lahaie
0
144
Member Avatar for tnavy99

Hey Everyone, I am including my current code. Can anyone give me advice on my middle function declaration? I rewrote this a few times and am now going on 12 hours spent on this one function alone! I am trying to just get it to display the last 10 lines …

Member Avatar for tnavy99
0
172
Member Avatar for venkateshyeluri

Hi, I am using an asp.net web application in which I want to retrevie database table names into my dropdown list box. I have wrote code for this there are no errors but I dont get any table name to my DDL box. Kindly help, Thank you. MySqlConnection connect = …

Member Avatar for Mitja Bonca
0
1K
Member Avatar for zacharysr

I want to auto load new data into my php page, my homepage is getting to long with statuses, so when people go to the home page i want it to only show ten, then when they scroll to the bottom of the page, it loads the next ten, and …

Member Avatar for diafol
0
463
Member Avatar for jhedonghae

i have here a code for my enlistment module..this code is for the available slot. for example i have set 10 as available slot and when i enlist a student 10 will become 9 and so on..my problem is when it reach zero because i can still enlist but the …

Member Avatar for jhedonghae
0
116
Member Avatar for RazorRamon

Ok I need help. I have a couple hundred databases, which are different cities, that I am trying to connect with one query. each city has the same Sports table in it. I want to put the 100 most recent results on one page . The code below gets the …

Member Avatar for Biiim
0
1K
Member Avatar for paoi00

hi.. i want to compare two tables ..in enlistment table will count the number of students that enlisted to the YearLEvel and section selected by user.. then i want to limit that by means of calling it from the table of Schedulings (AvailableSlots Table) here's my code but it doesnt …

Member Avatar for paoi00
0
110
Member Avatar for harinath_2007

Hi folks.. I'm in search of desktop nofication api's apart from the basic(default) one that java already provides. Can anyone direct me to some good links . Its better if it is free of cost. I found [this](http://blog.swingfx.ch/twinkle-100) nice one but its not free.

Member Avatar for JamesCherrill
0
84
Member Avatar for Buppy

Hi, I have a lot of files i need to read with PHP script. All of them has the ANSI encoding type and, unfortunately, they contain special characters. Since my page is in UTF8, i need to convert the file content to UTF8 on the fly while reading them. What's …

Member Avatar for diafol
0
101
Member Avatar for OldDeveloper01

I have this block of code below which is to control questions which are to be displayed from the array. I am having problem with the the 3rd line of code, an i am not entirely sure what the problem is. rnd1, rnd2 are both double. Eclipse is telling me …

Member Avatar for m4ster_r0shi
0
246
Member Avatar for buzzykerbox

Hi i'm doing a project for college using jquery, i'd like to dynamically update a section when a link button is clicked without reloading the page, the content fades out and the new content fades in, but when i click on a link the content fades out but the new …

0
112
Member Avatar for lianpiau

When I select few records from datagridview and insert into access database. First selected record will last insert into database and last selected records will insert first. I got give a number to each record. For example, I got 3 items. When I select this 3 items and insert to …

Member Avatar for Mitja Bonca
0
153
Member Avatar for NoIdea.Net

I am trying to get TenderTyp, TypeCode, AuthorizationCode and then all the info from: <arts:TenderCreditDebit> <arts:IssuerIdentificationNumber>999=99</arts:IssuerIdentificationNumber> <arts:ExpirationDate>1970-01</arts:ExpirationDate> <arts:ReconcilliationCode>19</arts:ReconcilliationCode> <arts:PrimaryAccountNumber>OTk5OTk5KioqKioqMDM1MQ==</arts:PrimaryAccountNumber> </arts:TenderCreditDebit> Which is buried in the XML shown below.... I seem to get so close the correct element but just cannot get the correct value! Could anyone help please? Thanks <?xml …

Member Avatar for thines01
0
145
Member Avatar for crzycm16

Thanks to you guys, i now understand much better this whole thing, but i now have a problem where, after submit, i get the mysql error, "Column count doesn't match value count at row 1" my form code is [CODE=php]<?php // MySQL connection variables $host="server"; $username="Vetsform"; $password="saerverpassxduhsjdkasjdlcc"; $db_name="Vetsform"; $tbl_name="vetform1"; // …

Member Avatar for diafol
0
8K
Member Avatar for easterbunny

Hi i got a problem with this code( attached below ) the fuction that receves the bidimensional array doesn't seem to work.I've tryed to cout in main() and it works.WHY???? The program doesn't show me any error whatsoever. #include<iostream> #include<string> #include<fstream> using namespace std; void afisare(int h[3][3],int nrEle){ for(int i …

Member Avatar for easterbunny
0
863
Member Avatar for sinnebril

Hi there! I have run into a new problem, this time with the re.findall() module. The objective of this code is to iterate over rows in a Excel sheet and print them in a other Excel sheet with a separation of column between the species name and the gene name. …

Member Avatar for sinnebril
0
204
Member Avatar for cresenia1988

I'm currently doing an assignment and I would like to seek for help. I'm suppose to do a creation system where Option1: I would create a binary file(outfile.dat) from infile.txt. //below is the infile.txt F Indonesian Michael Chen F France Alain Pierre S Tan Eng Soon S Lee Ang Heng …

Member Avatar for mrnutty
0
196
Member Avatar for dyingatmidnight

Hello everyone. So I've been dabbling with mod_rewrite and I've run into a snag. I'm taking www.example.com/index.php?id=news and mapping it to www.example.com/news Now my problem is that I already have a news directory in my file structure and it's defaulting to the index file found there. What I'm trying to …

Member Avatar for dyingatmidnight
0
143
Member Avatar for glen999

please help i'm stuck on something for a project i'm doing i need to display the numbers 1 to 9 randomly but they cannot be repeated! the code i have so far is this: #include <iostream> #include <ctime> #include <cstdlib> using namespace std; int main() { srand((unsigned)time(0)); int random_integer; int …

Member Avatar for deceptikon
0
160
Member Avatar for K33p3r

Good day, I have a college project in which I need to create a program which simulates an Erlang(k) variable. I am not talking about the Erlang language, it's about a standard Gamma(0,1,k), k ϵ N+. I appreciate if someone can help me out or give me advice on how …

Member Avatar for m4ster_r0shi
0
359
Member Avatar for synking

I am trying to setup a navigtion link section on my home page. what i have is a table called section in mysql and this is the way it is setup up. [CODE]+----+-----------+----------+ | ID | name | parentid | +----+-----------+----------+ | 2 | News | 0 | | 3 …

Member Avatar for updatepanel
0
2K
Member Avatar for xav.vijay

Hello All I am having an odd issue with mysqldb connection from python to a database. The issue is, when I run the query directly or via a sql client like navicat or toad, I get the required value, but this does not happen via python/mysqldb combo. This is the …

Member Avatar for TrustyTony
0
627
Member Avatar for zachattack05

So I'm working on this CheckListBox and would like to override the Add() method which adds a new item to the checklistbox, but, the method is not a CheckListBox method, it's a method in the CheckListBox's ObjectCollection. So, two questions: 1. Can this method be overriden from within a control …

Member Avatar for darkagn
0
147
Member Avatar for Bun2014

~~~ vb Private Sub Item_TypeComboBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Item_TypeComboBox.SelectedIndexChanged 'auto increment for each type of items If Item_TypeComboBox.SelectedItem = "Bages" Then ItemIDTextBox.Text = Format("B" & (BagsIDTextBox.Text), "0000") ElseIf Item_TypeComboBox.SelectedItem = "Accessories" Then ItemIDTextBox.Text = Format("A" & (BagsIDTextBox.Text), "0000") ElseIf Item_TypeComboBox.SelectedItem = "Cloth" Then ItemIDTextBox.Text = …

Member Avatar for TrustyTony
0
201
Member Avatar for cardin94

I'm trying to create a Select Distinct query, but i'm getting stuck with either an empty combobox either a filled combobox that displays all the doubles. or a message "System.Data.DataViewManagerListItemTypeDescriptor" I have a form (form5) with 1 combobox and 1 datagrid. The datagrid loads 5 collumns "ID", "firm", "Fname", "mname", …

Member Avatar for cardin94
0
156
Member Avatar for sheelap

anyone tell me a detail of database connectivity in vb.net with sql server and oracle.i already tried it on my laptop.but it shows errors.1 year back i successfully did the connectivity.but now i forgotton how it do?even i could not able to coonect ms-access with vb.it always shows error.any one …

Member Avatar for poojavb
0
1K
Member Avatar for RageAndSin

Basically I'm trying to get the post data from my form page to link back to my php page and it won't post for whatever reason. I've been scrutinizing my code and looking online at other posts but have had no luck. My html form: <form id="form1" name="form1" method="post" action="anthonyBook.php"> …

Member Avatar for Biiim
0
2K
Member Avatar for Quinncunx

Just a heads up this is a school project. I have been tasked with building a login system for the "mock" company that we have been using on my college course for assignments ect. I have built the regisration, login, logout, user management pages, however I cannot make the activation …

Member Avatar for pritaeas
0
216
Member Avatar for Falcon25

Hi guys, I think this is a rather simple question but my brain has just decided to forget everything. So any help would be much appreciated. I'm using a Windows form project. I have three classes and all I want to do is use a List declared and initialised in …

Member Avatar for Falcon25
0
123
Member Avatar for crankyslap

Whenever I run a script twice at the same time, it's as if the second instance simply outputs what the first did. The second instance also does not detect any files the first one made etc. First instance started at 14:37:59 outputs: Started at: 2012-04-12 14:37:59 OK Second instance started …

Member Avatar for crankyslap
0
128

The End.