64,152 Solved Topics
Remove Filter ![]() | |
Hello people, On my site i am using a .htaccess file with a simple rewrite rule: [code] Options +FollowSymLinks RewriteEngine on RewriteRule ^servers/(.*)/ index.php?action=servers&id=$1 [/code] Allowing visitors of my site to use [url]www.example.com/servers/1/[/url] - which will grab and display the correct page from [url]www.example.com/index.php?action=servers&id=1[/url] In the index.php file, there are … | |
Hello, I am having a problem. I am filling a datagridview straight from an oracle sql query. The datagridview is filling properly using this code. [code] Try cmd.CommandText = "SELECT *" & _ "FROM oracle database Dim da As New OracleDataAdapter(cmd) Dim DMdt As New DataTable da.Fill(DMdt) If DMdt.Rows.Count > … | |
Hi All, I have two files to compare. Each has 10 columns with first 4 columns being key index together. The rest of the columns have monetary values. I want to read one file into hash; check for the key value availability in file 2; then compare the values in … | |
Hi, I have a problem with my codes now. I've actually extracted the column of information that I need from a text file. However, now I need to convert the output of the file to something that I specify, but I don't know how to do it. It is actually … | |
Hi everyone, I'm pretty new to Mobile Development. I'm a final year student and this is my first major project that might just get me a job for next year. So I'm very keen on getting it working! Pleeease help :) As far as I understand - I need to … | |
Hi all I have multiple select boxes that have various options such as 'bangles', 'rings', 'earings' etc and I have a div that doesn't display until an option has been selected from one of the select boxes. If the option 'rings' is selected I don't want to display the div … | |
Hi everyone. Could some assist me? I have a link. [code] <a href="index.php?make=<?=$mead_make?>&model=<?=$model?>&veh_id=<?=$vehicle_id?>">Add to Cart</a> [/code] This HREF link is generated by a for loop from a mysql DB. All I want to do is add the veh_id to a array and keep adding them to a array until I … | |
[COLOR="Green"]hi Im just newbie here. I want to ask help from you guys, about on how to use the listview functions in vb.net. I also just starting to study about the vb.net for my object-oriented programming. Please help me in writing the codes for a simple listview. thanks in advance..... … | |
I created a form to calculate sign in time, sign out time, and the elapsed duration. Below is my code. CAn anyone please tell me where i dont get it. Sign in time is OK,Sign out time OK but the worked hrs is not.. Any Help??? Option Explicit Dim signin … | |
I want to center this. [CODE]cout<<a<<" "<<"+ x = "<<b<<endl;[/CODE] a and b are both int. How would I go about this. Most of the information I found on the web is about centering strings, I tried the code but did not have any success. | |
I am trying to solve the problem Present at [url]http://www.codechef.com/problems/INTEST/[/url] I have made a small Python script to do my job :- [CODE]array = [] no_lines = 0 no = 0 j=0 div_no=0 no_lines = input() no = input() temp = no_lines while(no_lines>0) : i=0 i = input() array[j] = … | |
help! dunno how to convert this in python.. 'contains == ???' in python [CODE]if (basket contains "fruits") then try tell application "Document" to tell application "System Events" to tell application process "Document" to click button "Cancel" of sheet 1 of window "Untitled" tell application "Document" to quit saving no end … | |
Hi all, Here is my htaccess code for url rewrite: [CODE] RewriteRule ^(.*)/test.php$ test.php?language=$1 [NC] [/CODE] which will redirect [url]www.domain.com/english/test.php[/url] to [url]www.domain.com/test.php?language=english[/url] It is working fine... But when i have extra variable with that url then it doesn't work. e.g. [url]www.domain.com/english/test.php?name=abc[/url] should work like: [url]www.domain.com/test.php?language=english&name=abc[/url] But it is not working.. … | |
I made a button in pts and now want to use it as a button in a program. Is there any way to change the image of the button to the one i made or make it function like a button ? tkq | |
I have input stream problem where my Console::ReadLine() command gets "eaten" when I try to loop my program back to start. Here is the code [code=c] #include "stdafx.h" using namespace System; int factorization(); int main(array<System::String ^> ^args) { int terminate; do{ terminate = factorization(); }while(terminate == 'y' || terminate == … | |
I need to count characters from a file. But I get an error error C2660: 'getchar' : function does not take 1 arguments. Im new to C please bare with me. Thanks for your help. #include "stdafx.h" #include "stdio.h" #include "stdlib.h" #include "string.h" int _tmain(int argc, _TCHAR* argv[]) { int … | |
Hello, I am currently developing a review site that requires displaying video reviews. I have created a PHP page that successfully retrieves all records from my video database called reviews.php. I have also created a page that a user gets redirected to when he/she selects a video entitled watch.php. The … | |
How do you access a database from a C++ or Windows API program? :-/ I would like to be able to get data from a database as strings or something. I want to use a database so that it is easily changed from MS Access or something similar. Thanks in … | |
Hi there, here is my code and I don't know how to add <br /> to get a return in the email received: [CODE]<?php $to = "myemail@gmail.com"; $subject = "From the website"; $email = $_REQUEST['email'] ; $yname = $_REQUEST['name'] ; $ycompany = $_REQUEST['company'] ; $yphone = $_REQUEST['phone'] ; $ymessage = … | |
i have a couple of should be simple linked list questions one of which is how to make it insert in a sorted fashion i have a way i think should work but it doesnt i can post the code if needed. also i have to delete the last n … | |
Hello everyone, I am having some trouble with a program I'm writing and I can't figure out for the life of me what is going wrong. I'll post the code below but first I will point out the problems I'm having. (Both problems are highlighted in my source code with … | |
Do any of you veterens have expirence with displaying and controling a 3d model with c++ programming code and maybe spicifically with vb6.0? Any literature on the subject you would like to recommend or any key words I could use with searching? How do I go about learning it? Thank … | |
I'm supposed to use a 'top-down' programming style (which is my enemy) for a simple game of Cootie, and I am very new to C++ so there will be errors abound in my program, I'm just working on getting past one error thus far: [CODE=C++]void ApplyRoll(int Roll, int Body, int … | |
I don't know where to start so I just got to ask from the experts :). From my MySQL (database) I got a date formatted mm-dd-yyyy (i.e. 01/01/2010), now from my php page there are 3 dropdown/list menus which are for [B][Month]-[Day]-[Year][/B] and a [B][TextField][/B] then a [B][Submit Button][/B]. When … ![]() | |
I am creating a game in which I import images from files to represent characters, etc. I have created a class called Contents which represents anything that can be placed on a tile of the gameboard. A subclass of Contents (by several levels) is Wizard, to create a wizard character. … | |
Hello all, I'm taking a programming course in python and I have to write a program using certain math functions like pow() and sqrt() and I don't know what to program. Please give me some ideas on programs. I don't need to know how to program them, just what to … | |
Hi, I have a wired problem. I try to build a argv array which will be passed to ssh command. The following line works perfectly: [CODE]argv[n++] = "64.106.11.123";[/CODE] But when I try to get the IP address out of a string which contains it, it will add me a line … | |
When a user Scans a barcode representing a # sign while focus is on the fromComboBox, code is used to scroll through the list. It scrolls through the list fine, but then it moves to the next field on the screen, because the scanner (that is what we use for … | |
$ct is my array: array(4) { ["a"]=> int(1) ["b"]=> int(2) ["z"]=> int(2) ["c"]=> int(1) } I need to put it in a two column database where "item" is col1 and "count" is col2 where the first row has an "a" in col1 and 1 in col2, 2nd row has a … | |
I have just developed my first 'large' application in ASP.net. I have developed many smaller web pages and sites and never really had this issue. In VS everything looks crisp and clean and is layed out perfect via CSS. After uploading the code to my server all my alignments are … | |
[CODE]import java.io.*; class DecToHex { public static void main(String[] args) { Console console=System.console(); System.out.println("Please enter a decimal number"); String input; input=console.readLine(); int dec; dec=Integer.parseInt(input); String hex=""; int remainder; String hexChars="0123456789abcdef"; if(dec==0) hex="0"; while(dec!=0) { remainder=dec%16; hex=hexChars.charAt(remainder)+hex; dec/=16; // what does that mean? } System.out.println(hex); } }[/CODE] what does dec/=16 in … | |
hello can you help me i make a program that will determine palindrome words using array...how can i determine if my words are palindrome... example if i input: radar == radar-->this is palindrome so if i input this notice--->this will print not a palindrome please help me here is my … | |
I was working on a project in my VB.NET Express and suddenly my code that was working fine and starting up as normal gave me this error: {An error occurred creating the form. See Exception.InnerException for details. The error is: Corrupt .resources file. Got an unexpected EndOfStreamException while trying to … | |
There is a Byki language program that I want, but alas, it's only for Windows and Mac. :'( I read somewhere that there is something with Wine that can be done....But I'm a Ubuntu and Linux newb and havn't the faintest idea of how to do something like that. Also, … | |
Select syntext for database search i have a database and a table one colums with items name des items 1 pen,pencile 2 rubber,scale all are in one column with seperated with coma when search from only pen how it is possible to show me row for 1 whole row like … | |
Hello all, I have python 2.6 installed, i can see it in /usr/bin and I can run it in terminal. I cannot however seem to figure out how to open the Idle, or get the program to show in the redhat drop menu. Kinda new to linux (some ubuntu use, … | |
Hi, I think im trying to break c++ again in making it do something it does not want to do. Basically i have a logging class im making which simply takes a string stream and pumps it into a file. But i want 2 different versions one that trys to … | |
Hi all. I need help "binding" to a specific IP address. My program is able to "bind" when using inaddr_any, but I can't seem to bind to a specific IP address using inet_addr("...."). I am basically trying to "bind" a socket to MY home pc's IP address, and a random … | |
Hey everyone I have this huge program which comes with different directories like lib, include, test, modules, services etc. Every directory has a -Makefile -Makefile.am -Makefile.in The root directory has the following files -missing -Makefile -Makefile.in -Makefile.am -configure -configure.ac I added two classes with 2 header files and one of … | |
I keep getting the following syntax error: Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in C:\xampp\xampp\htdocs\xampp\getFriends.php on line 26 I'm hoping some fresh eyeballs on this will help. I've been puzzling through it for the better part of the day and I'll be doggone if I can … | |
Hello. I'm using this constuction to write to file: [CODE]#include <iostream> #include <fstream> using namespace std; int main () { char data [50]; cout << "Enter data\n"; cin >> data; ofstream file("data.txt"); if (!file) { cout << "File opening error"; cin.get(); return 1; } file << data; file.close(); cout << … | |
I am trying to do a program which does simple maths by scanning using provided three items (two number and an operator) then let the program do the calculatin and printout the result. The way i have attempted it so far (below is the code) the value of the operator … | |
Could someone tell me how could setting up index would affect my select statement? I read that it boost performance especially for finding specific values, but how? | |
These are my 2 pages index.php:- [CODE]<?php session_start(); ?> <html> <head> <title>Enter Your Name</title> </head> <body> <form action="hello.php" method="post"> Wat's U'r name : <input type="text" name="name"/> <br/> <input type="submit" value="Next"/> </form> </body> </html>[/CODE] hello.php:- [CODE]<?php session_start() ?> <html> <head> <title>Hey <?php echo $name; ?></title> </head> <body> <?php $_SESSION['name'] = $_POST['name']; … | |
this code shows the second oval only when maximize is pressed otherwise only the one oval is shown and the first oval does not go to the getHeight() where as the one appearing after maximizing repaints correctly [CODE][/CODE][code]import javax.swing.*; import java.awt.Graphics; class drawpanel extends JComponent implements Runnable { int i=10,startx; … | |
Hi, this is going to be a very broad question and any info or suggestions are welcome! I am writing an application which uses a Mon-Sunday approach with times slots from 9.30am till 7.30pm. These time slots can be filled in with data (a single string). Currently this data is … | |
Hello. I'm writing DOS program with Visual C++ 6 and i want to log date and time to file. I'm new at programming so please tell me all #include <> and full syntax :) Also I tried time() but i recieved error: error C2064: term does not evaluate to a … | |
Hello I am writing a class Test. I considered a field “int age” to see how long each instance of this class has been created. In other words i want to know the age of each instantiated object of this class. I assumed i should use the Timer class. I … | |
I am interested in Current threads, such as : rare program :s [url]http://www.daniweb.com/forums/thread300723.html[/url] how to create 2D array of enumeration values [url]http://www.daniweb.com/forums/thread300738.html[/url] which have a common goal: to store the names of Enums objects in a 2D array of String. For example, we have a pack of porker cards defined … | |
Hi , I have 5 quries, each query showing expense of different category. like Lease,Diesel,Security,Electricity, Maintenance. 3 quries using 6 tables and 2 quries using 2 tables means 6 tables used in total. Now I want To Show Expense Using one query so I can Get complete Sum of Expenses. … |
The End.