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 is as addresses and names in the text file are not the same length. Code to read the file: <?php $data = file_get_contents("tmp/file1.txt"); //read the file $convert = explode("\n", $data); //create array separate by new line for ($i=0;$i<count($convert);$i++) { echo $convert[$i].', '; //write value by index } ?> The process …

Member Avatar
Member Avatar
+0 forum 6

Hi, Please help me with home work: c# highest and lowest value of 6 inputs.

Member Avatar
Member Avatar
+0 forum 1

Hello, i got this error when i click my button save. Error: .Net SqlClient Data Provider: Conversion failed when converting datetime from character string. please help me... this is my save button code: Private Sub btnSimpan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSimpan.Click Dim check As Integer Dim conn As SqlClient.SqlConnection Dim cmdStudent As New SqlClient.SqlCommand Dim cmdStudent1 As New SqlClient.SqlCommand Dim daStudent As New SqlClient.SqlDataAdapter Dim dsStudent As New DataSet Dim dtStudent As New DataTable If txtKosPerolehan.Text = "" Or cbTarikhJaminan.Text = "" Or txtAksesori.Text = "" Or cbPembekal.Text = "" Then MsgBox("Penuhkan Borang!", MsgBoxStyle.OkOnly) Else If …

Member Avatar
Member Avatar
+0 forum 2

Hi. I have a class called step and in it i have a method `public IEnumerable<string> Execute(IEnumerable<string> input) ` when i trying creating a thread i did it as below List<string> l = new List<string>(); l.Add("a"); l.Add("r"); l.Add("d"); step s = new step(); Thread t3 = new Thread(s.Execute(l)); t3.Start(); give me a error msg "Error 1 The best overloaded method match for 'System.Threading.Thread.Thread(System.Threading.ParameterizedThreadStart)' has some invalid arguments \Program.cs 25 25 PipeFilter " and "Error 2 Argument 1: cannot convert from 'System.Collections.Generic.IEnumerable<string>' to 'System.Threading.ParameterizedThreadStart'Program.cs 25 36 PipeFilter " how to i resoleve this appreciate a reply thanks

Member Avatar
Member Avatar
+0 forum 2

Please help me for my problem in adding and retrieving video from mysql to vb 2008. I don't know the codes for it.

Member Avatar
+0 forum 0

If I install a program that was created by Visual Basic 6.0 (via Package and Deployment Wizard), and install it on my computer, is Visual Basic 6.0 need to run that installed program?

Member Avatar
Member Avatar
+0 forum 1

give site url for checker page ranl on search engine.

Member Avatar
Member Avatar
+0 forum 4

I have used queue but I cant figure out how to write code to display horizontal(bfs) and vertical binary search traversal

Member Avatar
Member Avatar
+0 forum 3

Hello, i need some help here, i want to change Edit,Select,Delete linkbutton in the gridview to be outside the gridview, i have tried to hide the 3 button and make another button outside gridview, but i dont know how to make a link between all the button. this is my code asp code: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div>            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="NDP" DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" style="left: 0%; position: relative; …

Member Avatar
+0 forum 0

How can I manipulate images in C++? Is there any built in function? I googled and found that only bitmap images can be used, but why not jpeg and png and others ?

Member Avatar
Member Avatar
+0 forum 2

I have a form with a textbox and I want that textbox to read from text file ,manipulate information in text file and write it to another text file. read each line and when see -- into line break and continue next line until to file end.this code have problem can you help me??? private void button1_Click(object sender, EventArgs e) { textBox1.Text = openFileDialog1.FileName.ToString(); string[] fileA = System.IO.File.ReadAllLines(@"textBox1.Text"); error it this line why??? string[] fileB={}; int count=0; foreach (string line in fileA) { string str = line; for (int i = 0; i < str.Length; i++) { if (str[i] == …

Member Avatar
Member Avatar
+0 forum 2

hi i want to convert the prefix form to postfix,prefix and infix form but when i input +5*62 it retuns only 2 what is wrong with my code can anybody help to solve this #include<stdio.h> #include<conio.h> #include<stdlib.h> #define Operator 1 #define notOperator 0 #define empty -1 struct node{ char item; struct node* leftchild; struct node* rightchild; }; void formatting(void); void getinput(void); int chkElement(char); void opFunc(char); void varfunc(char); void push(struct node*); struct node* pop(); void dispTree(void); void infix(struct node*); void prefix(struct node*); void postfix(struct node*); char equation[50]; int len,i; struct node* stack[25]; int stackPtr= -1; struct node* root; int main() { …

Member Avatar
Member Avatar
+0 forum 4

Alright, I need a program that has both a selection structure and a repetition structure. Would someone please tell me if I am doing this right. My code gives me the correct output but do I have a selection and repetition structure? #include <iostream> using namespace std; int main () { // variables double incomes = 0.0; double spending = 0.0; int totalIncome = 0; int totalSpending = 0; int subTotal = 0; int grandTotal = 0; int counterIncome = 1; int counterSpending = 1; while (incomes >= 0) { totalIncome += incomes; cout << "Enter week " << counterIncome …

Member Avatar
Member Avatar
+0 forum 4

<% foreach (var dir in new DirectoryInfo("C:/Photos").GetDirectories()) { %> <table cellpadding = "5" border = "5"><tr> <td><img src="FolderIcon1.png" alt = "icon" height = "100" width = "100"/></td> <td> Directory: <%= dir.Name %><br /></td> </tr> <tr> <td> <img src="sparrow34.jpg" alt = "sparrow" height = "50" width = "50"/></td> <% foreach (var file in dir.GetFiles()) { %> <td> File name: <%= file.Name %> </td> <% } %> <% } %></tr> </table> <%int fCount = Directory.GetFiles("C:/Photos", "*.*", SearchOption.AllDirectories).Length; %> <%Response.Write(fCount); %> </div> I have written above code and able to display each folder in a folder column however all the files of particular …

Member Avatar
+0 forum 0

help i'm rather new at this but have some understanding but am having some probs with 1>c:\users\kysinden\documents\visual studio 2008\projects\real\real\test.cpp(8) : error C2144: syntax error : 'int' should be preceded by ';' 1>c:\users\kysinden\documents\visual studio 2008\projects\real\real\test.cpp(9) : error C2447: '{' : missing function header (old-style formal list?) i am makeing an number averageing script with a variable amount of numbers to be averaged. Here is my code #include <set> #include <iostream> using namespace std; double atotal() int main(); { double itotal = 0; double dnumber1 = 0.0; double dnumber2 = 0.0; double dnumber3 = 0.0; double daverage = 0.0; double a = …

Member Avatar
Member Avatar
+0 forum 3

Hello Friends Creating library object. I have a library.txt that contain 20 books and every line in library,txt contain author ,title and loan , my questions is how to create class and object for library script with python. 1. search at title 2. search at author 3. Borrow a book 4. Return a book. 5. Adds a new book. 6. Removes a book. For example when someone borrowed a book we get ”The book is borrowed” I shall be very grateful for your help. class Library: def __init__(self, author, title): self.author = author self.title = title self.borrowed = False def …

Member Avatar
Member Avatar
+0 forum 34

Hi there, I was wondering what the string.split() does. And another question is that I want to loop through the class like Math and find out what functions are defined in it.But, I was not too sure how to that. I tried a couple of things but they unfortunately didn't work. Thank you..

Member Avatar
Member Avatar
+0 forum 2

hello, i am creating client server module.i want username and password from active directory for authentication. first time when i run program it it authenticate users but when i delete user & change password policy after that created new user and run the program then i got error authentication error. what should i do

Member Avatar
Member Avatar
+0 forum 2

Programming just for fun.

Member Avatar
Member Avatar
+0 forum 6

hello, can someone help me, when I put the codes from my book and edited them to use filestream, I encounter an error #include <iostream> #include <fstream> #include <string> using namespace std; struct nodeType { string info; nodeType *link; }; int main() { nodeType *head = NULL; nodeType *newNode; nodeType *p; ifstream reeaad; reeaad.open("meow.tx"); newNode = new nodeType; while(!EOF) { getline(reeaad,newNode->info); newNode->link = NULL; }; p=head; p->link=newNode; nodeType *temp; int counter = 1; temp = head; while(temp!=NULL) { cout<<"node:"<<counter<<" "; cout<<"Info:"<<temp->info<<"\n"; cout<<"---------------\n"; temp = temp ->link; ++counter; }; system("pause"); return 0; };

Member Avatar
Member Avatar
+0 forum 5

What is the difference between java and java script ? No Google Use :)

Member Avatar
Member Avatar
+0 forum 5

I want to create a php file that reads HTML file that is uplaoded daily to a folder on my web server, when ever I open the page it needs to read the HTML file and post only data i want to use, i have created some reader but it always opens the file then it write the eact file as is in my PHP page. The HTML file has too much data in it, I want to use certain lines information only. The data in the HTML file is never the same, it is transactions (from top of page …

Member Avatar
Member Avatar
+0 forum 2

Hi I have a MYSQL DB hosted on a Win 2003 server on my LAN and a Mysql DB on a dedicated (linux) server at our ISP. I would like to dump a few tables to a .sql file and ftp it to the server and then import the .sql file automatically via a cron job. I can do the FTP etc. But I am unable to get the exporting and importing to work, not sure why. I would really appreciate some assistance

Member Avatar
Member Avatar
+0 forum 5

Hello ,,, i'v started learning Game programming with java before 1 week and now am developing a drag and drop game , and am having a trouble with MouseListener and MouseMotionListener / drag and drop methods / i just wrote a simple code i'v seen on web but i had an error while compiling and don't know what is wrong with the code ,, the whole code : public class mouseDragandDrop extends JFrame implements MouseListener , MouseMotionListener { private boolean drag = false ; private JLabel lbl ; public mouseDragandDrop () { try { lbl = new JLabel ("drag & …

Member Avatar
Member Avatar
+0 forum 1

hi, There is a a physical server (window server 2008 r2) which is running as main server and as domain controller. As administrator it automatically gives remote access to the server from out site of the network. Im using the Remote desktop to log in to the server. The static Ip is for example: 98.23.60.100 from my remote desktop client i use these Static Ip to connect to the server and its prompt for the user name and password and its go okay. Question 1: there was a domain name linked to this iP which is something like: mail.serverdomainname.com, that …

Member Avatar
Member Avatar
+0 forum 1

Hello, Please advise how to remove white spaces before and after a sentence only. Example: " This is a sentence. " should be "This is a sentence." Thanks.

Member Avatar
Member Avatar
+0 forum 3

i am doing a project with a group i have to deal with orders by kind then linked to the driver who will be taking the first customer. the driver can be free or back in 10 min. i have started with the order list with the customer, i have never used a priority queue so i am trying to have the queue sort the file. this is an eg of the order file. it is a very big file so this is just piece of it Name, Kind, PickUp, DropOff, TypeOfSerice, Requirements Jacob Adani , urgent, Santa Barbara, Maracas …

Member Avatar
Member Avatar
+0 forum 56

Can any1 help me in differentiating between dynamic and static scoping by using examples ??

Member Avatar
Member Avatar
+0 forum 1

hello im new in java and i have to do simple program and can read from txt file

Member Avatar
Member Avatar
+0 forum 10

I'm creating a custom `ComboBox` that allows the user to select a date; the calendar display is localized making the built-in `DateTimePicker` undesirable (see [here](http://support.microsoft.com/Default.aspx?scid=kb;en-us;889834&x=18&y=19) for more information). I need the UI control to mirror the look and feel or the existing components. Here's what I've tried and the problems I've encountered: * Using a `TextBox` with a drawn `ComboBox` button: I've tried using `ComboBoxRenderer.DrawDropDownButton` but the look and feel does not mirror the existing UI controls. In particular we don't have `Application.EnableVisualStyles()` so the buttons have a Windows 98 look and feel. `ComboBoxRenderer` draws a glossy grey button. * …

Member Avatar
+0 forum 0

The End.