64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Carrots

Hi, I have a web site. On index.php I have a HTML link to admin/admincp.php By simply adding a htaccess file to the directory 'admin', will the admin directory and it's contents be fully protected? I only want it to be possible for me to access mysite.com/admin/admincp.php, because I am …

Member Avatar for Carrots
0
143
Member Avatar for fawkman

Hi Guys I am working on a php page that allows the user to upload files to thei proile. I managed to fina an open source upload class. Currently I have the code uploading the file to an images folder on the web server and that file is renamed to …

Member Avatar for fawkman
0
129
Member Avatar for pyguy420

Im trying to write a code for a colour picker, so a user can pick 4 different colours and then it would return them so i can use them in a different par tof the program, but its not working properly and i can work out why. any ideas? [CODE]def …

Member Avatar for woooee
0
114
Member Avatar for handyman_uk

Hi everyone i am looking for some help with a little java script i am no programmer so i need alot of help i have a marquee tag on my page that slides in some text from right to left once and the stops and remains on the screen have …

Member Avatar for handyman_uk
0
121
Member Avatar for imclumsy

Hi I am new to javascript and I am trying to get rid of an object expected error. Here is the line I'm getting an error at [code] <td></td><td></td><td align="center">To print this quote click <a href="/broker/OfferSummary.asp?QuoteKey=<%=vQuoteKey%>" target="blank" onChange="enablePRINT()" checked = "checked"> HERE.</a></td> [/code] here is the function enablePRINT() [code] function …

Member Avatar for imclumsy
0
115
Member Avatar for spxChrome

I been at this for to long so I will give somebody else a shot at this. I have a text box that has a string in it that I will use for a SQL statement. Under the text box I have two trackbar controls. I want to be able …

Member Avatar for spxChrome
0
105
Member Avatar for ryno365

Hello daniweb. Recently, I did a c# project that my boss wants an installer for. Having looked at a tutorial, I threw together an installer that gets the job done. However, since the project I am working on is going to be a windows service (root is windows\system32), I'm trying …

0
60
Member Avatar for BobFX

I have a very basic problem, which answer is not covered in the 1200 pages of the C++ book I'm using to teach myself. Consider this simple code: [code]#include "stdafx.h" using namespace System; class EventListener { long mRef; public: EventListener() { mRef = 0; } }; int main(array<System::String ^> ^args) …

Member Avatar for BobFX
0
131
Member Avatar for veledrom

Hi, Why this code doesn't work? All I want to do is removing all the white spaces. JavaScript [code] function validateForm(){ var postcode1 = (document.form1.textPostcode1.value).replace(/^\s*|\s*$/g, ""); if (postcode1 == "") { alert ("ERROR"); } else { alert ("CORRECT"); } } [/code] HTML [code] <form name="form1" action="save.php" method="POST" onSubmit="return validateForm()"> POSTCODE: …

Member Avatar for veledrom
0
76
Member Avatar for Mitja Bonca

I would like to know if is possible to click on every single cell in a listView seperately, like in a datagridview? If I set a full row selection to false I am only able to select the cell in the 1st column. The point or this thread is, that …

Member Avatar for MrSpigot
0
143
Member Avatar for pangdo

1. I have few data in "MyData.txt" : 9 7 4 4 6 5 9 1 3 4 7 6 5 4 1 4 8 6 4 8 5 I only can copy the data into the code like this : [CODE] #include <iostream> #include <fstream> using namespace std; int …

Member Avatar for jonsca
0
114
Member Avatar for GReddy4u

If a mod comes across this thread feel free to delete it, I've re-posted it in the html forum since it has more to do with html, although it does deal with js as well. joshsonunionsquare dot com/index1.php I just added a 3rd button on the main section titled 'Photos' …

0
80
Member Avatar for TonyG_cyprus

[B]Hi guys[/B] I'm fairly new to php but learning fast. Here's my problem. I have the code below in a website I made for my local pub, it works fine, but is ther a way to dynamically add another row to the table when the number of records displayed is …

Member Avatar for TonyG_cyprus
0
131
Member Avatar for zeeven

Hi there guys... Been working all week for the database connection of VC# with SQLite. I got an error everytime i try to open the database... No matter how i tried the [B]SQLiteConnection.Open()[/B] command still returns an error... I installed the required ADO.NET and the required SQLite Database... [I] here's …

Member Avatar for zeeven
0
1K
Member Avatar for ayesha789

[CODE=php]<strong><p align="center">Air Conditioner Data Update</p></strong><br> <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="onm"; // Database name $tbl_name="sims_ac"; // Table name // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); $a=$_REQUEST['a']; //Its getting value from previoes page echo …

Member Avatar for hemgoyal_1990
0
218
Member Avatar for alvinwong

Hi, I am using Dev-C++ 4.9.9.2 with g++ compiler. I recently made a DLL in c++ that shows a window using Windows API. I discovered that the text shown inside are large and bold, which aren't looking very good. I want to change this, so I used the following code …

Member Avatar for alvinwong
0
1K
Member Avatar for Teethous

Hey there guys, I am having a problem with with my ReadFile constructor. First of all the class that I am placing the constructor in is in a different package. I have imported the package to the class that I am placing the constructor But I still get an error …

Member Avatar for BestJewSinceJC
0
118
Member Avatar for tqmd1

Dear Experts I have two textboxes I want textbox1 to accept any character except 0 (zero) When user enter 0 then it must not go to next control I want textbox2 only accpet character "Y" or "N" Please help

Member Avatar for Stevoni
0
117
Member Avatar for kobalt

Hello All, I am desperate for help. I have spent the last 2 days staring at this code and not getting anywhere (please see attached project files). The project requires a number sequence to be output as a text file. Starting number is input by user (number is in sequence …

Member Avatar for kobalt
0
104
Member Avatar for grib

Had a moment to sit down and plow through a chapter, and as usual, wound up stuck. My compiler is giving me a string of [inlinecode]undefined reference to SALES::[all my function names][/inlinecode] in my main function. It's entirely possible that there are problems within the function definitions, but right now …

Member Avatar for grib
0
270
Member Avatar for MrJNV

Hi. I have this assignment and have absolutely hit a wall here. I will give the assignment details, then say what the issue is: Consider a collection of songs in an MP3 library where each song is characterized by artistName, songTitle, album, playTime (in seconds), musicCategory, and albumProducer – hence, …

Member Avatar for jonsca
0
157
Member Avatar for Gixxer98226

well kind of... I want to check to for updates on a webpage/website but only refresh if it finds a change from the page currently loaded in the webbrowser control on the form. More or less refresh in the background and only actually display the refresh if it finds a …

Member Avatar for Gixxer98226
0
114
Member Avatar for Omermintz

hi :D! i had this idea were i wanted to create a program that starts an action by a user command on a different pc or any web device like a mobile phone or an i phone. i thought of the idea of hosting a web site that had just …

Member Avatar for Omermintz
0
95
Member Avatar for TotoTitus

Hello everyone, i'm fresh new here, and i already have a question regarding...well, C#. I've made a Forms Application in which the user submits an image (bmp,png,jpg or gif), and the image suffers some byte-level modifications (obviously, i'm using the LockBits() method). Now, after the modifications are done, the user …

Member Avatar for TotoTitus
0
10K
Member Avatar for matthewl

hello I am trying to create an robot and I have been having a problem parsing the full string from the conf. As example the IRCServer, botnick, botname parameter does not contain the all the data. as the output shows: [code=output] ##################### # Ablaze Bot # ##################### Loading conf file: …

Member Avatar for matthewl
0
139
Member Avatar for dennis.d.elston

HI everyone, I am new the world of C and am having some problems with a class assignment. Can anyone help? [CODE] #include <stdio.h> #include <math.h> #include <string.h> #define Max_sites 10 /* maximum number of sites allowed */ typedef struct { int site_id_num[4]; /* id number of the site */ …

Member Avatar for dennis.d.elston
0
111
Member Avatar for Dmennite

using Windows 7 and calling: [CODE]OpenFileDialog LogoLoad = new OpenFileDialog(); LogoLoad.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures); LogoLoad.Filter = "Image Files|*.jpg;*.gif;*.bmp;*.png;*.jpeg|All Files|*.*"; LogoLoad.Title = "Load Dealer Logo"; LogoLoad.FilterIndex = 1; LogoLoad.RestoreDirectory = true; if (LogoLoad.ShowDialog() == DialogResult.OK) { filenname = Path.GetFileName(LogoLoad.FileName); path = Path.GetDirectoryName(LogoLoad.FileName); extension = Path.GetExtension(LogoLoad.FileName);[/CODE] Problem is picturebox1.ImageLocation comes up as Null …

Member Avatar for sknake
0
96
Member Avatar for Geekitygeek

Hey guys, I'm trying to design a custom control to extend a datagridview. The customer control is basically made up of two datagridviews, one will host the extra features, the second will offer all the usual methods/events of a regular datagridview. What i want to know is, can i automatically …

Member Avatar for sknake
0
195
Member Avatar for Moonrise_state

Hi, I have a program that finds out if people are "compatible". The problem I have is that Java seems to be blatantly telling me that 130-130 is greater than 25 [CODE]public boolean checkMatch(Female other){ if (this.getA()<26&&other.getA()-this.getA()>1){ return false; }else if(this.getH()-other.getH()>25||this.getH()-other.getH()<-25){ return false; }else if(this.getP().equals(other.getP())&&this.getS().equals(other.getS())&&this.getD().equals(other.getD())){ return true; }else{ return false; …

Member Avatar for Moonrise_state
0
144
Member Avatar for dw8081

i have 2 database & need some code to solve this problem. table 1 (food_place) : fp_id | fp_name 1 | McD 2 | Burger King 3 | Pizza Hut -------------------------------------------- table 2 (promo) : p_id | p_name | p_pid 1 | Disc.10% | 1 2 | Free f. fries …

Member Avatar for dw8081
0
114
Member Avatar for xylude

I am having trouble getting my if/elses to do what they should. It's probably something dumb that I'm overlooking. Can anyone help? [code] if(isset($_POST['homePageReg_submit'])) { $db = new connectDB(); $db->username = ""; $db->password = ""; $db->hostName = ""; $db->dbName = ""; $db->connect(); $rf_username = $_POST['homePageReg_username']; $rf_email = $_POST['homePageReg_email']; $rf_validateEmail = …

Member Avatar for ShawnCplus
0
85
Member Avatar for fatalblade

hi , I have my python code but I couldn't solve it. here my sample loop: [CODE= python]import os import sys whileloop = True while(whileloop): initial_drive = "C:\\" inputline = input(initial_drive) <<< PROBLEM... if inputline == "exit": whileloop = False elif inputline == "about": print("no input") elif inputline == "": …

Member Avatar for fatalblade
0
170
Member Avatar for dan_ord

Hi, I would like to add discount to an order, but the tricky bit for me is the following: **Example** 1 photo = £15.00 But for every 3 photos i want to subtract £3 and for every 3 photos after that another £3 off the total order So 3 photos …

Member Avatar for kireol
0
85
Member Avatar for rfrei

I am trying to send a command to the external command line (cmd.exe) from the Windows form application that I'm writing in VB.NET (using VS2008). I can only access the external program thru the command line (its not my program) and I must do so from a form app. I …

Member Avatar for thecoat
0
2K
Member Avatar for StaticX

Hi i am wondering if its possible to do the following,say i have 2 integer pointers containing numbers,and i want to add them together to a third integer pointer,is this possible?

Member Avatar for necrolin
0
105
Member Avatar for Kligham

Hi, I'm wondering what you all have got out there. I know you have the following: \t => tab \n => new line What do you have more? Anyone got a link to a webpage or a word that I could search for in google to get a list for …

Member Avatar for Kligham
0
114
Member Avatar for bunkus

I have written code to use the automatic CD-Burn routine inside WinXP and above. But I cannot start the CD Writing Wizard by python code. Has anybody any idea how to do it? This is my code so far: [CODE]#!/usr/bin/env python # -*- coding: utf-8 -*- import os, sys import …

Member Avatar for bunkus
0
279
Member Avatar for hondros

Okay, I am in the middle of creating a rather large console RPG. It'll include ability to equip armor, weapons, interacting with NPC's, battles, saving/loading characters, etc. I don't want to save all of my classes and functions in the same file, for easier readability. I have a few questions: …

Member Avatar for vegaseat
0
91
Member Avatar for ayesha789

This code is not getting values when I press update. Its showing the values from Db in fields. But at the time of update whrere I SET Values it gets null values. I am using name of input as acmake[] and then using for loop but its not working. [CODE=php]<strong>Update …

Member Avatar for cwarn23
0
179
Member Avatar for Mitja Bonca

How can I put a progress bar inside this code: (I was trying to use PerformStep method for counting rows in data table, and put this code, but no luck: [URL="How can I put a progress bar inside this code: (I was trying to use PerformStep method for counting rows …

Member Avatar for DdoubleD
0
205
Member Avatar for chupinette

Hello all :) Well, im trying to display a list of categories from values fetched from my database. I have a class called CategoryList which has the function initialise as below: GetCategory actually uses PDOStatement::FetchAll [CODE] public function init() { $this->mCategory = Catalog::GetCategory(); print_r($this->mCategory); } [/CODE] Then i have my …

Member Avatar for chupinette
0
82
Member Avatar for Afupi

This is one of the two action listeners I have for two text fields. The exceptions to ensure the proper datatypes used is working. And the exception to make sure that int pos is within the array's range is working. The problem I am having is getting the out of …

Member Avatar for javaAddict
0
139
Member Avatar for kanuri1

hi iam using calender along with javascript in asp.net. here the problen is iam getting in mm/dd/yyyy format ,,,,,but i wants dd/mm/yyyy format so please give me the code, here my code of calender (datepicker) as below [CODE]Imports System.Text Namespace VbNetTest Partial Class DatePicker Inherits System.Web.UI.Page #Region " Web Form …

Member Avatar for mshravs
0
101
Member Avatar for moerpheus

Hi guys, I use wamp for development, i kinda use it for multiple projects development! I have one problem, one site cannot remove session (cant destroy sessions) i dnt know why!... When I log out from other sites in my server can destroy all session variables (I can understand that!) …

Member Avatar for moerpheus
0
82
Member Avatar for G_Waddell

Hi I've written a printing application which is working perfectly when I debugg and step through but does not print anything when running a debugg with no breaks / step through. I suspect I need to use something like Do Events to get the application to print out. However when …

Member Avatar for G_Waddell
0
109
Member Avatar for avirag

I have an application in which reads the system date and if I increase the system date by 1year ,then the application expires and stops working....... I have a javascript file in which functions for this expiration period..... Kindly tell me how can I modify this code so that no …

Member Avatar for avirag
0
161
Member Avatar for himit

I am trying to transform 1 XML document to another using XSLT. I want to call the value from my source XML to the element in my result XML as the value of an attribute. Source code- <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="test.xsl"?> <catalog> <cd> <title>Empire Burlesque</title> <artist>Bob Dylan</artist> <country>USA</country> …

Member Avatar for himit
0
168
Member Avatar for P00dle

I've made a gui that has a couple of panes on a frame. Initially only one frame is visible, but as you fill in options and press buttons, the others become visible. The problem I have is that the first pane should be in the top left corner when the …

Member Avatar for P00dle
0
105
Member Avatar for MAV_DevWantaB

Salutations All,,, Just looking for some input on this C program..:?: I believe it is working correctly but I think I have my Understanding of bits backWards....... :hair: AnyWho - The program should input a value from user and call the reversebit function to print the bits in both original …

Member Avatar for MAV_DevWantaB
0
219
Member Avatar for Stefano Mtangoo

Please help me to setup my development enviroment on Mandriva 2010. I used to MINGW and Codeblocks then Codelite. So I would be happy to have some IDE full bundled with GCC. I have googled but nope, nothing comes. Iam posting at codeblocks forum too :)

Member Avatar for ItecKid
0
102

The End.