199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for MasterGberry

Ok, I have asked this b4, and I don't think I have gotten a straight forward answer, I really need this answered, because what I am doing is "legal", but i am 100% it does not make logical sense. This it the original C# code [CODE] var version = reader.ReadUInt32(); …

Member Avatar for MasterGberry
0
1K
Member Avatar for crazycat503

i am really tired of Joomla...it is not complicated but very unflexible for me. I have an already functional database that is working just fine. 1. registration field: i have a custom registration field that works excellent and meets my requirements. Its hard to edit and expand with Joomla's registration …

Member Avatar for chrishea
0
127
Member Avatar for Fouly

Hi all, I'd like to open a file dialog using win32 project ...I need a simple code example that uses FileOpen...I used <commdlg.h> ...::GetOpenFileName or ::GetSaveFileName but i can't get them to work :S ... Thanks in Advance,

Member Avatar for Quatrus
0
13K
Member Avatar for sasi_88

hi, i have two combo boxes one for country and another for state both populated from data base dynamically. [CODE] <%@page import="java.sql.*"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <select name="ctry"> <% String city=""; Statement pstm; ResultSet rs; try{ Class.forName("oracle.jdbc.driver.OracleDriver"); Connection connect =DriverManager.getConnection("jdbc:oracle:thin:@172.17.0.14:1521:develop","devuser","devuser"); pstm = connect.createStatement(); rs …

Member Avatar for brynFlew
0
206
Member Avatar for Anirudh.

Write a program to calculate the number of words,tokens,keywords,userdefined functions,system function for your java program. PS:you are supposed to make use of scanner class

Member Avatar for jon.kiparsky
0
104
Member Avatar for chandaboy

My code is this: <?php //Start session session_start(); //Check whether the session variable SESS_MEMBER_ID is present or not if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) == '')) { header("location: access-denied.php"); exit(); } ?> and I am facing this warning, when I login succcessfully: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already …

Member Avatar for Plyswthsqurles
0
108
Member Avatar for litchi

Hi, Is MD5 still secure enough to use for the storing of passwords in MySQL? Or is there a better/more secure way? I did google quite a bit, but all the posts I found were old (2004-2008)

Member Avatar for Plyswthsqurles
0
93
Member Avatar for lf.gene

Hi all, i wonder is it possible to display my images from database into table with 4 rows and 4 column? How can i do that? [CODE] $dbConn = mysqli_connect(DBSERVER, DBUSER, DBPASS, DBNAME) or die(mysqli_connect_error()); $sql = "select * from products"; $result = mysqli_query($dbConn, $sql) or die(mysqli_error($dbConn)); echo "<table border …

Member Avatar for lf.gene
0
211
Member Avatar for Crutoy

Hi another exercise which im having problems with. In this challenge im given a four digit integer and encrypt each digit as follows. Replace each digit by the sum of that digit plus seven mod 10. Then swap 1st and 3rd digit places and 2nd with 4th. Heres what i …

Member Avatar for Crutoy
0
88
Member Avatar for Dwiliam

Hi all, I have a proplem when embed shell into C code by Sytem() command. There is my code: [COLOR="Green"]char acCommand[512]; acCommand[0] = '\0'; sprintf(acCommand,"sed 's/\<UDN\>\<\/UDN>/\<UDN\>%s\<\/UDN\>\/g' %s > %s", initParam.UDN, "/tmp/web/dmr.xml", "/tmp/web/dmr.xml.tmp"); printf("[%s]", acCommand); system(acCommand);[/COLOR] and below is output after compiling: sed 's/<UDN></UDN>/<UDN>uuid:b346ee95-93b3-4922-a132-cf72762b9318</UDN>/g' /tmp/web/dmr.xml > /tmp/web/dmr.xml.tmp] [COLOR="Red"]sed: bad option in …

Member Avatar for Dwiliam
0
220
Member Avatar for jhudielpeco

Please help me on my project. I used this for my log in form. The registration form worked well and its easy for me. There are many errors almost 3. The errors are on the first 3 statements. line 1: syntax error (missing operator) in query expression 'ID Number = …

Member Avatar for jhai_salvador
0
126
Member Avatar for mIXpRo

hii, this is my .h ,file : [CODE] /* * sortedlist.h * * Created on: Jan 16, 2011 * Author: saeed hardan */ #ifndef SORTEDLIST_H_ #define SORTEDLIST_H_ #include <iostream> #include <functional> namespace mtm { template< typename T, typename Compare = std::less<T> > class SortedList { private: struct ListNode { ListNode …

Member Avatar for mIXpRo
0
193
Member Avatar for boshu

I got an array of email addresses: [CODE]@emails = ("sam\@email.com", "john\@email.com", "jenifer\@email.com");[/CODE] There are 20 txt files wherefrom email addresses are being parsed. The parsed email addresses should be added to the @emails array only if they are not in it. Example txt file contents: =========================== Zip_Name: [email]jenni@email.com[/email] Zip_Name: [email]sam@email.com[/email] …

Member Avatar for boshu
0
176
Member Avatar for snipermann

Hello I have a problem with reading the coordinates of points which are extracted from (..txt ) file.I have read the file with ifstream but I don't know how to use the information then. Thanks in advance the point are in File as followed : u:1.2000 v:4.5400 u:2.5450 v:6.4500

Member Avatar for jonsca
0
373
Member Avatar for jlivvers

Hi, I have a windows form application that is designed to monitor payments made within agreed timescales. Once a timescale has passed any payments that are outstanding will get assigned as arrears. What I need to decide is the best way to handle the task that checks if the due …

Member Avatar for mcriscolo
0
231
Member Avatar for EMT

I have created a dll and I want to use its functions in my other projects using Visual Studio 2008.Kindly Help...:icon_sad:

Member Avatar for EMT
0
146
Member Avatar for mahdi68

Hi i try show layout like image 1 (textView and editText in same line) but my out put shown like image 2 ! i try with this code : [CODE]<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="5px" > <TextView android:id="@+id/label" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="URL:" android:layout_alignBaseline="@+id/entry" android:layout_alignParentLeft="true"/> /> <EditText android:id="@+id/entry" android:layout_width="fill_parent" …

Member Avatar for shibby
0
160
Member Avatar for Jayson83

Does anyone know how to send a message to another computer in my companys network using visual studio 2008...I would like to be able to list all the computer names on the network and select certain ones and send them a message that would pop up on their screen PLEASE …

Member Avatar for kvprajapati
0
369
Member Avatar for pmark019

How can I read multiple line inputs? I want to create a program that will ask a user for a program code and it will count all the reserve words used in the program. Every time I copy and paste a code for the input, it only reads the first …

Member Avatar for JamesCherrill
0
220
Member Avatar for florisvd

Hello everybody, I'm making a scoreboard with uart and 7-segment multiplexing and I've got a problem. When I receive code from the UART, multiplexing doesn't work any more. And when I'm multiplexing with timer1, the UART_receive doesn't work any more. Please look at my code below and help me. Best …

Member Avatar for Banfa
0
101
Member Avatar for rmsagar

This is the contents of the file, of which I want to insert multiple lines after </module-data> if the process-type=Remote. Could you please help !! [CODE] --------------------------FILE------------------------------------------ <process-type="Local"> <module-data> </module-data> <process-type="Remote"> <module-data> </module-data> --------------------------FILE------------------------------------------ [/CODE]

Member Avatar for rmsagar
0
106
Member Avatar for mr-antony

hi guys, i`m new to the data base systems i currently work in a school and i have been asked to design a database for all the computer items in school the problem i have is because i no very little about how to setup and make a database i …

Member Avatar for mr-antony
0
104
Member Avatar for frogboy77

[CODE]bool is_prime(int a) { if(a==1){return false;} if(a<4){return true;} if(a%2==0){return false;} if(a<9){return true;} if(a%3==0){return false;} int i; for(i=5;(i*i)<=a;i+=6) { if(a%i==0){return false;} if(a%(i+2)==0){return false;} } return true; } [/CODE] critique welcome.

Member Avatar for frogboy77
0
120
Member Avatar for cheekycroak

Hi Everyone, After wonderful long Google searches for almost many days, am still unable to achieve what I want to do.Name the URLS that I would have tried and all in vain,perhaps this is due to lack of coding knowledge that is encompassed within me to accept my defeat. [B]Synopsis:[/B] …

Member Avatar for cheekycroak
0
254
Member Avatar for derozza

I experiencing problem in executing query on between date command. I got wrong result. [CODE]SELECT approval_date FROM itemdetail WHERE approval_date BETWEEN '01/01/2011' AND '15/01/2011'[/CODE] My Record in Mysql Database: |Approval Date| 05/01/2011 10/12/2010 12/12/2010 15/12/2010 10/01/2011 |Result| Like above Need result |Approval Date| 05/01/2011 10/10/2011 Anyone could help me. how …

Member Avatar for smantscheff
0
107
Member Avatar for basma.lm

hi, i'm using visual csharp 2008 express edition which doesn't contain the Report viewer control. i downloaded Microsoft Report Viewer Redistributable 2008, i install it and i try to add it to the toolbar by clicking on( Tools/ choose toolbox items) but i can't find it in the list of …

Member Avatar for kickingbird
0
126
Member Avatar for neosonic

Hi all, Please give me some inputs about my situation, because I know that you have more experience than me. I have a program that is written in vb6, which is near to the completion. I would like to start selling the program at the beginning of next year. My …

Member Avatar for AndreRet
0
229
Member Avatar for gingank

Ho guys i got question need to ask about the if else statement: Can i write like this IF CUST= "A" OR CUST = "B" OR CUST = "C" THEN CUST = "A , B ,C " Then statement i pal is if i key either A , B or …

Member Avatar for AndreRet
0
206
Member Avatar for kruxena

Hi guys, can you pls help me what is the vb code in retrieving my data in the database? my code is this. [CODE] Dim SandLine As String SandLine = txt1S.Text & "," & txt2S.Text & "," & txt3S.Text _ & "," & txt4S.Text & "," & txt5S.Text & "," …

Member Avatar for kruxena
0
134
Member Avatar for wailoon88

[CODE]import java.awt.BorderLayout; import java.awt.Cursor; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.io.BufferedReader; import java.io.FileWriter; import java.io.InputStreamReader; import java.io.PrintWriter; import java.io.FileReader; import java.net.URL; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashSet; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.io.FileReader; import java.util.*; …

Member Avatar for peter_budo
0
245
Member Avatar for macaela

Hi i have a while loop which displaying data from the database but i am trying to style but it doesnt seem to be workin help please. xml script [CODE]<?php // PHP file that renders perfect Dynamic XML for MySQL Database result sets // Script written by Adam Khoury @ …

Member Avatar for hielo
0
130
Member Avatar for fabzster

Hi I have a db that has the following Data for example: PolicyNumber, StoreId, ConsultantName,ClientName, ClientSurname I would like to have a report that will give me a list of policies done for that day seperated by store printed to PDF. So Basically Store - 12CEL 24Hr001 Bob Joe Soap …

Member Avatar for fabzster
0
1K
Member Avatar for javanerd21

please do inspect my code please, any error? in my net bean, its show the overall of the coding was red color. here is the code : [CODE] <%-- Document : updateAssignment Created on : Jan 18, 2011, 2:09:56 PM Author : Khalid Bin Dris 2008401558 --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> …

0
131
Member Avatar for Mr_PoP

main.cpp [CODE] #include "includes.h" #include "LOGMSGs.h" int main() { LOGMSG("TEST"); getch(); return 0; } [/CODE] MYSQLcon.cpp [CODE] #include "LOGMSGs.h" int Mysql() { MYSQL *con, mysql; mysql_init(&mysql); const char * host="localhost"; const char * user="test"; const char * pass="test"; const char * db="NewServer"; con = mysql_real_connect(&mysql,host,user,pass,db,NULL,NULL,NULL); if (con == NULL) { …

Member Avatar for Mr_PoP
0
113
Member Avatar for puritha

Hi I am very beginner in phpfox developing. Anyone knows how to integrate photobucket([url]http://photobucket.com/[/url]) to phpfox web site. There is a module for flickr and its working properly. Same like i need to add photobucket as well. Are there any modules ?? Thanks Akila

Member Avatar for chrishea
0
691
Member Avatar for sshaham1

How do websites like facebook and formspring dynamically make links for their new users? for example, if i sign up on formspring and my username is USA1992, the link to my profile is formspring.me/USA1992 how do websites do that?

Member Avatar for steelshark
0
70
Member Avatar for editorawais

I am using wordpress Blog when i want to update new post there is error like that " Warning: Cannot modify header information - headers already sent by (output started at /home/techabso/public_html/wp-content/plugins/add-to-any/services.php:2) in /home/techabso/public_html/wp-includes/classes.php on line 1601 " Nothing is uploading im totally in trouble.. Please help me..

Member Avatar for hapon
0
152
Member Avatar for Joe34

Okay let's say I open the url, [url]http://www.nothing.com/[/url] using php's fopen function. then I do this, [CODE] <?php $S = sss $url = "http://www.nothing.com/" . $S . "&ql=1"; $open = fopen($url,"r"); while(! feof($open)) { echo fgets($open). "<br />"; } ?> [/CODE] That above returns all of the page I'm looking …

Member Avatar for chrishea
0
188
Member Avatar for EddyLLC

Using the following code I have a questions. .Fields(intFldCntr) = 2.66666666666667 yet after loading it into arrWhite(intIndex), arrWhite(intIndex) = 3. I'm working to get some weighted averages so I want the actual number. How can I prevent it from being rounded when I load it into the array? Thanks. Dim …

Member Avatar for ChrisPadgham
0
106
Member Avatar for Aequitas1

Good evening. I've recently had an assignment to create a doubly linked list that is self contained. This means that the entire list is contained in a single class - the class acts as both the list and the node. I've completed everything and have gotten to my final task …

Member Avatar for Aequitas1
0
4K
Member Avatar for phpDave

Hello, for a while now I have been studying file uploads. I have 2 scripts, 1 creates a folder for a user and store the image in it. The other resizes the image and stores it inside another folder. What I would like to do is combine both scripts in …

Member Avatar for phpDave
0
144
Member Avatar for vicky.vignesh

Hi...I am new to struts2...Have any tell me how to pass struts action class variable into java script

Member Avatar for Airshow
0
510
Member Avatar for iwanttolearnc

hello there guys. im quite confused regarding the use of pyserial classes. ive been reading up on the pyserial documentation. i followed an example and used the code below [CODE]import serial ser = serial.Serial (0 , baudrate = 57600 , timeout = 1) #open serial port (1) - 1 line …

Member Avatar for iwanttolearnc
0
173
Member Avatar for lashatt2

I want that mysql data will be in one row but it doesn't, in my case data echoes in a right down side :( [URL="http://lashatt.comoj.com/php+mysql.php"]http://lashatt.comoj.com/php+mysql.php[/URL] [IMG]http://lashatt.comoj.com/mysqlproblem.JPG[/IMG] [CODE=php]<?php $user="a7247794_a724779"; $password=""; $database="a7247794_testdb"; mysql_connect("mysql5.000webhost.com",$user,$password); @mysql_select_db($database) or die( "Unable to select database"); if (isset($_POST['saxeli'])) echo "saxeli {$_POST['saxeli']}"; $a = $_POST['saxeli']; $query = "INSERT INTO …

Member Avatar for aixlu
0
143
Member Avatar for mbarandao

Hello: I have two input boxes on a form which receive the first and last name of a user. I want to be able to use charAt() to get the first letter in each box and pass it a third box on the same form. is this doable? May I …

Member Avatar for Airshow
0
252
Member Avatar for Xcelled194

Hi, I'm writing a web crawling program for my personal site, and I'm looking at using regex to extract the URLs. However, I have both absolute and relative URLs, and I want to match URLs only on my site (mysite.com). So it would match: [CODE]/index.php image1.jpg page1.html Http://mysite.com/ Http://mysite.com/page1.html Http://Wiki.mysite.com/ …

Member Avatar for Xcelled194
0
107
Member Avatar for Mr_PoP

logmsg.h [CODE] void LOGMSG(string logmsg,...)//... { stringstream name; name<<"test "<<TM.years()<<"-"<<TM.month()<<"-"<<TM.day()<<".log"; ofstream log; log.open(name.str(), ios::out | ios::app); log <<TM.hour()<<":"<<TM.mint()<<":"<<TM.sec()<<" Message: "<< logmsg<<endl; } [/CODE] main.cpp [CODE] int main() { int a = 100; LOGMSG("type test!!",a,"times"); }[/CODE] but it's only wtite into the file "type test!!" while i want it to type …

Member Avatar for Mr_PoP
0
111
Member Avatar for xtianenikkian

i have a student maintenance form in my program im using this code to update the database Adodc1.Recordset.Update Adodc1.Recordset!StudName = txtStudName.Text Adodc1.Recordset!StudId = txtStudId.Text Adodc1.Recordset!Course = cboCourse.Text Adodc1.Recordset!Section = cboSection.Text Adodc1.Recordset!first_day = cbo1day.Text Adodc1.Recordset!FDlogin = cbo1.Text Adodc1.Recordset!FDlogout = cbo11.Text Adodc1.Recordset!second_day = cbo2day.Text Adodc1.Recordset!SDlogin = cbo2.Text Adodc1.Recordset!SDlogout = cbo22.Text Adodc1.Recordset!third_day = …

Member Avatar for xtianenikkian
0
221
Member Avatar for tim8w

I have the folloing code using OleDB to manipulate an Access database: [CODE] Dim adpMasterRecipe As OleDb.OleDbDataAdapter Dim dsMasterRecipe As New System.Data.DataSet adpMasterRecipe = New OleDb.OleDbDataAdapter("SELECT * FROM tblMasterRecipe WHERE MasterID = @MasterID", My.Settings.RecipesConnectionString) adpMasterRecipe.SelectCommand.Parameters.AddWithValue("@MasterID", iRecipeNumber) adpMasterRecipe.Fill(dsMasterRecipe) If dsMasterRecipe.Tables(0).Rows.Count > 0 Then dsMasterRecipe.Tables(0).Rows(0).Delete() dsMasterRecipe.AcceptChanges() adpMasterRecipe.Update(dsMasterRecipe) End If [/CODE] The problem …

Member Avatar for Unhnd_Exception
0
398
Member Avatar for tripleD

I'm working on a file organizer of sorts. The user can drag icons from the desktop into a list view, and drag items out of the list view to remove them. Dragging icons from the desktop to the list was straightforward, it's the other part that's giving me trouble. What …

Member Avatar for tripleD
0
807

The End.