199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for branding4you

Hi I read a text file using PHP, the file gets uplaoded, and what I want to do is read the file take some information out of it and post it to mysql. Problem is that when reading the file it removes the spaces, I cannot count where the data …

Member Avatar for branding4you
0
363
Member Avatar for Webville312

Hello, I want to submit multiple records into a mysql database, and I have hit a snag. I am developing a web application that displays student records, and upon displaying student records per class, I want to be able to add marks for beginning of term, mid term and end …

Member Avatar for Webville312
0
1K
Member Avatar for Koji01

String Compare and File Handling mixing together... I am practicing my self to combine functions together like this. so get this, is it possible to search record from the File using File Handling(fscanf) and compare it from the User's input and display it...check out my program. content of **2003.txt** 1234 …

Member Avatar for Koji01
0
634
Member Avatar for Michael27

I have 1 picturebox loaded with an image, what i'm trying to do is every time i click on loaded image the same picture loads into empty picturebox. Now for 1 picturebox is easy, all i do is picturebox1.Image = img; I'm trying to make an event that will load …

Member Avatar for Michael27
0
445
Member Avatar for ponnu

vb6 code to check if record doesnt exist,then insert new record.server is ms access 2010.So when i used the Dlookup function If IsNull(DLookup("[empid]", "[employee]", "[empid]= & txtemplid.text")) Then I got error like "function or subfunction not defined .is it due to issues with referencs .how can i fix this error …

Member Avatar for ponnu
0
2K
Member Avatar for riahc3

Hey I want to do something like this: <script language="javascript"> function calculatesha() { var name = document.getElementById("firstname").value; var last = document.getElementById("lastname").value; var complete = name+last; var hash = <?php echo(sha1(?>complete<?php));?>; } </script> I hope the code is understood even if it is wrong. Thanks.

Member Avatar for riahc3
0
311
Member Avatar for hhm_pro992
Member Avatar for mh.cool992
0
195
Member Avatar for Mike Askew

This will sound like a homework assignment, it sort of is, but isn't. Anyway! I have created a simple address book application with a CSV backend. This utilises a Person class to store the contacts details and an AddressBook class storing the list of Person. Within the code we have …

Member Avatar for Mike Askew
0
107
Member Avatar for mh.cool992

Hello! I am makeing inventry program for my SHOP, When Button1 clicked, listview all items will UPDATE, listview coloum 3(QUANTITY) will SUBTRACT from ms access quantity. Please help me........ Private Sub ButtonAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click Try Call OpenConnection() Dim v1 As Integer Dim v2 …

Member Avatar for mh.cool992
0
750
Member Avatar for sai.ayilavarapu

Hi i need some help with updating changes to multiple rows in the GridView. I was able to add multiple rows simultaneosuly when i click the 'save' button however when i'm trying to update multiple rows i'm getting a problem. Is there is a specific way to that? thanks using …

Member Avatar for ChrisHunter
0
260
Member Avatar for RonKevin

Error: Declaration Syntax error on function input Note: using turbo c++ 4.5 compiler #include "iostream.h" #include "conio.h" #include "stdlib.h" #include "cstring.h" #include "fstream.h" #include "time.h" #include "stdio.h" time_t now=time(0);char*dt=ctime(&now); int ch,dn=0; struct BuyerInfo { char id[5]; string fn; string mn; string ln; string ad; } info[100]; struct grocery { char …

Member Avatar for RonKevin
0
156
Member Avatar for HunainHafeez

check the image or chk Hot Jobs section in this link: http://www.bayrozgar.com/ i am working in asp.net and want to put exactly same thing whitin my website, and all text fields + images should b from database, sql i have all entries in database for advertisement section, but i want …

Member Avatar for HunainHafeez
0
97
Member Avatar for chao.lee.927

To display system clock time in LCD format I just want to display system clock time in LCD format, also want the time to be displayed with the format of hh:mm:ss ,my code is as following ,but when I run it ,it is out of my expectaions ,so anyone can …

Member Avatar for chao.lee.927
0
394
Member Avatar for mionazraelmiranda

hi! i'm having a hard time figuring out how to add two values(numbers) retrieved from a table. They should be added and displayed. how can i do this? here's the code snippet: require('connect.php'); $result = mysql_query("SELECT * FROM `order` where date = '$date' "); while ($row = mysql_fetch_array($result)){ echo "The …

Member Avatar for mionazraelmiranda
0
190
Member Avatar for Airshow

Tablesorter (currently v2.0.5) includes an "update" method. This method keeps a Tablesorter object up to date with dynamic changes made to its table(s). Like other Tablesorter methods "update" is implemented in the form of a custom event. A typical method call would be $table.trigger("update"); , where $table is a jQuery …

Member Avatar for punknroll
0
822
Member Avatar for saifali.malik.33

<script> function get_input(id) { var value_id = id.split('_',2); var index = value_id[1]; var input_id = 'input_'+value_id[1]; var value = document.getElementById(id); var input = document.getElementById(input_id); var num = <?php echo $_SESSION['max_num']; ?>; var i= 0; while( i< num) { if(i==index) { // alert(index); //alert(i); // alert(input_id); $("#"+input_id).css({"display":"block" , "width":"106px" , "height":"20px"}); …

Member Avatar for stultuske
0
145
Member Avatar for lianpiau

my record got OrderFormNo and CashBillNo.(one to one insert) if 1st record OrderFormNo is 123 and CashBillNo is ABC, if 2nd record also same OrderFormNo, the CashBill must be same. As a result, I want detect if got same OrderFormNo in database but different CashBillNo, will not insert to database.

Member Avatar for debasisdas
0
225
Member Avatar for ghenaw

Hi I'm trying to send a request to a my webservice using curl $content = '<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://www.travelledia.it/XHI" xmlns:ns1="http://localhost/test/soap2/" xmlns:enc="http://www.w3.org/2003/05/soap-encoding"> <env:Header/> <env:Body> <ns1:OTA_HotelAvailRQ> <AvailRequestSegments> <AvailRequestSegment AvailReqType = "Room" ResponseType = "RateInfoDetails"> <HotelSearchCriteria> <Criterion> <HotelRef HotelCode="5095">xxx</HotelRef> </Criterion> </HotelSearchCriteria> </AvailRequestSegment> </AvailRequestSegments> </ns1:OTA_HotelAvailRQ> </env:Body> </env:Envelope>'; // Assign headers $headers = array("Content-type: …

Member Avatar for ghenaw
0
859
Member Avatar for iamshahz

I have php script that was writtin in 2009, it was working fine on my server even 1 year ago. i have upoloaded same script on server now, main page is seems to working ok and i can do anything in backend. is it due to php4 - php5 or …

Member Avatar for diafol
0
140
Member Avatar for chandbasha

Hi, pls can any one tell me how to configure zf2 on wamp. I have downloaded zf2 minimal package. But there is no zf.bat,zf.php,zf.sh files. And i am getting fatal error as Zend/Application.php not found. Pls can any one explain in detail.......... Thanks in advance

Member Avatar for hareshramani
0
219
Member Avatar for hfiza.amirah

hello all, please help me, how to make email broadcast in our website? ar u can help me to share it`s php source code? i need reference for my homework... please thanks before

Member Avatar for broj1
0
262
Member Avatar for DangleSauce19

My code works for numbers that dont have a remainder of 10 or above, but whenever I get one with a remainder 10 or above it prints out the number, not the letter. Please help #include <iostream> #include <fstream> using namespace std; const int maxstack = 51; class stack_type { …

Member Avatar for WaltP
0
2K
Member Avatar for smith32

Hi, I'm working on a quick sort for double linked list. All work except the first item. I don't know what is wrong. Can u plz help me find the error? Here is my code. dlist_t* quick_sort(dlist_t* list) { dlnode_t *tnode = NULL, *first = NULL, *last = NULL; first …

Member Avatar for smith32
0
246
Member Avatar for zychos

I am getting the following errors when i gcc my code: 44) unixs1 $ gcc whoisserver.c whoisserver.c: In function `main': whoisserver.c:59: warning: passing arg 2 of `bind' from incompatible pointer type whoisserver.c:71: warning: passing arg 2 of `accept' from incompatible pointer type Undefined first referenced symbol in file bind /var/tmp//ccSx8OhK.o …

Member Avatar for zychos
0
192
Member Avatar for mahdiyazdani

hi every body i want to show in each row 4 items from my db and go to another row (++row) in each row 4 items until end of items of db instead of in each row 1 item please help me here is the code <?php $sql=mysql_query("SELECT * FROM …

Member Avatar for Bachu
0
274
Member Avatar for albert.antwi.90
Member Avatar for albert.antwi.90
Member Avatar for RonKevin

here...theres something wrong it doesnt read all of the file and displays some annoying numbers..i think my code now is right but it isnt when i run the program..whats wrong with it? #include<iostream.h> #include<cstring.h> #include<fstream.h> struct grocery { int barcode; string prodname; string category; float price; } ; int main() …

Member Avatar for WaltP
0
158
Member Avatar for Ubunterooster

"Line 53: error: too few arguments to function 'void printResult(int, double, double, double)'" I have an "error" with my code (or so my compiler informs me) at line 53: "void printResult" I don't see how it's possible to need more aguments in that function. Any clue on how I should …

Member Avatar for Ubunterooster
0
315
Member Avatar for Vish0203

Hi, I wrote the following program for stacks using linked list! But, the display function doesn't seem to work! can anyone point out the errors in this? Thankyou! #include <iostream> #include <cstdlib> #include <iomanip> using namespace std; template <class T> class stack { T data; stack<T> *top; stack<T> *next; public: …

Member Avatar for umesh314
0
146
Member Avatar for mike.severini.3

I have an assignment where I have to produce a rectangle or square based off of input values. For example; the user inputs height = 3 and width = 3 *** *** *** But I also need to make a hollowed out box, so it's like this height = 4 …

Member Avatar for mike.severini.3
0
145
Member Avatar for shanenin

I am just back messing around a bit with programming. I am trying to clear out the mental cobwebs. I thought any non empty string evaluates to True. but according to my code, it does not apear so word = 'abc' if word is True: print 'yes' else: print 'no' …

Member Avatar for Gribouillis
0
112
Member Avatar for Kaiser.432

**Hello! every one...** I am looking for a good topic for my project. I want to make a project based on Database management and datafile handling. I need a topic which is usefull for the school or office etc. If anyone has a good topic based on these requirements please …

Member Avatar for rubberman
0
126
Member Avatar for uLp.aArOn

I Want to make my program search and delete.. Iam Using MS ACCESS 2010 Public Class main Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click AddProd.Show() Me.Close() End Sub Private Sub TblInventoryBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Me.Validate() Me.TblInventoryBindingSource.EndEdit() Me.TableAdapterManager.UpdateAll(Me.InventoryDataSet) End Sub Private Sub …

Member Avatar for jireh
0
290
Member Avatar for joseph.henriquez

public String roll() { Random generate = new Random(); int diceRoll; int firstNum; int secondNum; boolean winner = false; for (int x=1; x<=3; x++) { firstNum = generate.nextInt(6)+1; secondNum = generate.nextInt(6)+1; diceRoll = firstNum + secondNum; System.out.println("Roll number " + x + " was " + diceRoll); if(userNum == diceRoll) …

Member Avatar for Taywin
0
154
Member Avatar for revertedlogic

I am just starting out with java and I have to make a decision based text game. I keep getting some errors and I feel like I am missing an else or some curly braces somewhere, any help? import java.util.*; public class TextGame { Scanner scan = new Scanner(System.in); int …

Member Avatar for Taywin
0
248
Member Avatar for echo off

I have this to find the path: [CODE] System.IO.FileInfo path = new FileInfo(com.Substring(5)); string fullpath = path.FullName; [/CODE] But that returns the path of the console app + whatever i type. (e.g. C:\users\RILEY\Desktop\....\....\....\+(com.substring(5))) What I want to happen is when i enter: ./$ cat log.txt The console app writes what …

Member Avatar for gabrielko
0
262
Member Avatar for doa.sdude

<ns:Address> <ns:StreetNumber>XXXXX</ns:StreetNumber> <ns:CityName>XXXXXX</ns:CityName> <ns:StateProvNamePA</ns:StateProvName> <ns:ZIP>XXXX</ns:ZIP> <ns:AddressID> <ns:ID SystemCode="CODE">10</ns:ID> </ns:AddressID> </ns:Address> <ns:Address> <ns:StreetNumber>XXXXX</ns:StreetNumber> <ns:CityName>XXXXXX</ns:CityName> <ns:StateProvNamePA</ns:StateProvName> <ns:ZIP>XXXX</ns:ZIP> <ns:AddressID> <ns:ID SystemCode="CODE">10</ns:ID> </ns:AddressID> </ns:Address> <ns:Address> <ns:StreetNumber>XXXXX</ns:StreetNumber> <ns:CityName>XXXXXX</ns:CityName> <ns:StateProvNamePA</ns:StateProvName> <ns:ZIP>XXXX</ns:ZIP> <ns:AddressID> <ns:ID SystemCode="CODE">10</ns:ID> </ns:AddressID> </ns:Address> <ns:Address> <ns:StreetNumber>XXXXX</ns:StreetNumber> <ns:CityName>XXXXXX</ns:CityName> <ns:StateProvNamePA</ns:StateProvName> <ns:ZIP>XXXX</ns:ZIP> <ns:AddressID> <ns:ID SystemCode="CODE">10</ns:ID> </ns:AddressID> </ns:Address> I am tryting to Spilt a File into number of …

Member Avatar for L7Sqr
0
254
Member Avatar for Lilith24

The turotials online all say to access elements in javascript with document.getElementById(id). But I found I could negate this step and just type in id.attribute. I wanted to know why I didn't actually have to document.getElementById(id) my HTML attributes. Any ideas? <!DOCTYPE html> <html> <body> <p id="p1">Hello World!</p> <p id="p2">Hello …

Member Avatar for Troy III
0
390
Member Avatar for noahjonesnoah

Hi all, I have a question about comparing the contents of characters in arrays to see if they are the same. When I try and do something like this: char output_1[5]; char output_2[5]; int i; for (i = 0; i < 5; i++) { if (table_1[i][0] == table_x1[i]) { output_1[i] …

Member Avatar for noahjonesnoah
0
135
Member Avatar for dinhunzvi

is it possible to etract palin text from a pdf file? if possible, can i please have the code

Member Avatar for mike_2000_17
0
213
Member Avatar for HunainHafeez

i stored few ads details in sql database & made connection between my asp.net website and sql database , now i want to update my page automatically with ads after every few days, mean if i have 50 ads details in my DB and i only show 10 ads per …

Member Avatar for HunainHafeez
0
118
Member Avatar for Ja14

There is a lot more that is supposed to go with this. For now, I'm just trying to implement a class that uses a vector. Class is called ItemList, it's the header file. Main creates the object and attempts to add to the vector. Compiler doesn't recognize "list" as a …

Member Avatar for deceptikon
0
4K
Member Avatar for kischi

Hi, I'm trying to implement some php code that I have in one document into another document. However when I do that I get this error: Parse error: syntax error, unexpected $end in /home/www/wearecrunch.dk/gammelsjuf/ajax/class/phUploader.php on line 470 I think it has something to do with where I'm placing the code, …

Member Avatar for kischi
0
450
Member Avatar for krystosan

class gui(): def selCon(self): print selection def create(self): inst=gui() cmds.button(l="Connect to Selected",command='inst.selCon()') I keep getting error saying name 'inst' is not defined # dont understand when method is in the same class and when I am making a call clicking the button i get this error message

Member Avatar for vegaseat
0
287
Member Avatar for nitin1

actually , I am working on a project and i need to sort the co-ordinates in the increasing y value. input: 1 2 3 4 5 6 6 6 7 8 4 5 like this, and i need to sort them in the increasing y value. my approach: i think …

Member Avatar for nitin1
0
115
Member Avatar for jaynew

Hi, i was having problem with a question i encountered. It was to create a life path program using python. However, i have no idea where to start. It says first to input the data for day, month and year. then it said to convert each day/month/year to a single …

Member Avatar for jaynew
0
119
Member Avatar for mahdiyazdani

hi everybody i got this page form some template that shows items in the page with pagination system but i want to keep this method without any pagination i dont want to spilit number of items i just wanna see all of the items that it read from db in …

Member Avatar for mahdiyazdani
0
369
Member Avatar for hiyatran

I figure out how to write all the entries from my database onto a text file. header("Content-Type: text/plain"); header("Content-Disposition: Attachment; filename=test.txt"); header("Pragma: no-cache"); exit; How do I modify the text file?? Each entries (or row) have 5 elements in it and there are multiple entries in my database. How do …

Member Avatar for LastMitch
0
147
Member Avatar for shanki himanshu

Since in XOR linked list current pointer store the XOR of addresses of previous and next node. my question is how do we XOR two pointers?

Member Avatar for deceptikon
0
140

The End.