64,152 Solved Topics
Remove Filter ![]() | |
Hi, i have this string: [CODE]$link = "http://www.first-link.comhttp://www.second-link.comhttp://www.third-link.com"[/CODE] i want to exract it to an array like this: [CODE]array[0] = http://www.first-link.com array[1] = http://www.second-link.com array[2] = http://www.third-link.com[/CODE] i wrote: [CODE]print_r (explode("href",$link));[/CODE] but now all the string is in array[0] only. i keep getting [CODE]Array ( [0] => http://www.first-link.com ) Array … ![]() | |
Hi, I'm having some issues with my homework. It is a polymorphism homework. IFrom the console it takes two string (title and author/performer) a char (format for records) and a call number (int). Currently it compiles fine with some warning for strcpy. I have used the same data and sometimes … | |
Hi, I have a problem with fread,i wrote that program and in the input file only "Hello Word". the out put of the program only prints "Hell" and when I increase the elements in fread to 2 it outputs "Hello Wo". so for each element in fread it reads 4 … | |
I have a list of numbers in a 2d array. I need a random number without repeating. The number zero cannot be shuffle. [CODE] int **map; int * list; void randomize(){ for ( int x=0;x<Width;x++) { for( int y = 0; y < Height; y++) { map[x][y]=list[x*y]; //add code } … | |
I hope that you folks can help? I have ten IP cameras strategically located around my property. I capture video from these cameras with no problems. The cameras have the ability to pan and tilt, if I send commands to them. I can send something like the following to the … | |
![]() | I want to create a digital clock in Java can any one help me out i am having problems updating the second variable |
hi masters... i want to get jobs in printer queue... i didn't have idea to do this. please help me. any help will be appreciated. thanks before. | |
Hi ! I have a C source code of Knight' Tour like [CODE] #include <stdio.h> #include <winbgim.h> #include <stdlib.h> #include <conio.h> #define N 8 void alternatif_bul(int,int); void alt_say_hesapla(); int yeni_konum_bul(); void alt_dizi_sifirla(); int board[N][N]={0}; //satranç tahtası int alt_x[8]={0}; //gidilebilecek alternatif karelerin X konumlarini tutuyor int alt_y[8]={0}; //gidilebilecek alternatif karelerin Y … | |
Hi, Is there ever a situation where the programmer needs to be concerned about the copying of a vtable pointer or can I happily assume that the C++ language will handle that detail correctly without my intervention? | |
Hi I have a PHP page with the following JavaScript and HTML Form, but when I click on the Continue button nothing happens. The action="this_page.php" means that when the Continue button was pressed, prior to adding the Validation bit, would run itself as there is quiet a bit of PHP … | |
Hello guys, i need your help about how to clear value from ajax selected value, the code i use from thread daved83 about AJAX dropdown list. i have modified a little for that code, the code is like below [CODE]<tr> <td style="vertical-align:top;" rowspan="5" width="130px">Shipment by<br/><span style="font-size:10px">(select nearest city <br/>if not … | |
Hey guys using Linux(C) using POSIX API system calls read,write, open etc. I can open,read,write to a file and copy its contents to an output file. How would I go about copying more than one file to an output file using related system calls only. I currently have: [code=c]filein = … | |
Hi. Could you tell me - what is wrong here - [CODE] public class MAP { public string MAP(string FilePath) { FileStream fs; try { fs = new FileStream(FilePath, FileMode.Open); } catch (FileNotFoundException exp) { return exp.Message; } catch { return "Не удаётся открыть файл"; } return "all right!"; } … | |
Hello friends .. I wanted a feedback form for my small site... Its pure HTML and i dont know anything about PHP .. I got a script which mails the form contents to the admin.. Here is the code [CODE] mail( "$webmaster_email", "Feedback Form Results", $comments, "From: $email_address" ); [/CODE] … | |
Hi I have a problem with vc++ (vs 2010 ultimate) debugger. I my code I use a path like this "madia/img.bmp". If I click "Start debugging" or "Start without debugging" the program doesn't load the file but if I enter the Debug folder and than double-click the exe file than … | |
Hi everyone! I know using "system" in c++ is not the best way to develop, however, I need to use it for some specific reason. I have read that it is advisable using before system(NULL) to check if there is a shell available. My question are: When is not going … | |
Hello, I'm experimenting with creating a web page using VB 6.0 DHTML and have run into problem. I have a page started with text and now I want to add some buttons or elements. The book I've been using says I can just double-click on the element, or pick the … | |
any ideas why this does not load? thanks for any assistance [CODE]<html> <head> <script type="text/javascript" src="coomang.js"></script> <title>JS COOKIE MANAGER</title> <link rel="stylesheet" type="text/css" href="coomang.css"> </link> <script type="text/javascript" > function loadcontent() { var x= "<div class="general">"; x += " <div style="width: 150px; position: fixed;">CREATE COOKIE:</div>"; x += " <div style="position: relative; left:170px">"; … | |
[CODE] import java.io.*; import java.io.IOException; public class ReadWriteFile{ static File f1 = new File("C:\\source.txt"); static File f2 = new File("C:\\dest.txt"); public String readFile() throws IOException { String msg = ""; FileReader fr = new FileReader(f1); BufferedReader br = new BufferedReader(fr); msg = br.readLine(); System.out.println(msg); fr.close(); return msg; } public void … | |
I want to bring data from certain cells in an Excel workbook into a datatable. The Excel is 97 - 2003 and is in \Box_zero.xls. The code snippet below gives an error "Could not find installable ISAM". From what I see in the literature, this error often means that there … | |
I have a form that contains a Form_Keydown subroutine and a textbox. I am using a bluetooth numeric pad for input, so there is no mouse involved. The first keypress should display the contents of a corresponding array contents (e.g. pressing 4 should display the array's fourth element). The textbox … | |
I'm having this problem regarding my Backup code. I get an error saying "Permission Denied". Here's my code: [CODE] Public Sub DBBackup() Dim fsys As New FileSystemObject Dim myfile As File Dim isTrue As String Dim isFalse As String Set myfile = fsys.GetFile(App.Path & "\Database.mdb") 'Create Backup folder if not … | |
i want to find all occurrence of a string: "coords"" within another, but i only can found the first and the last ( stripos() and strripos() ) [CODE]<body> <img src="page.jpg" border="0" usemap="#fghf" /> <map name="fghf" id="fghf"> <area shape="rect" coords="10,71,258,236" href="#" alt="some_alt" title="some_title" /> <area shape="rect" coords="258,72,506,237" href="#" alt="some_alt" title="some_title" /> … | |
I was fooling around with some Date classes when I came upon the following anomaly. [CODE=JAVA] import java.text.DateFormat; import java.text.ParseException; public class Class { public static void main(String[] args) { DateFormat df = DateFormat.getInstance(); try { System.out.println(df.parse("12/20/10 1:40 AM")); } catch(ParseException pe) { pe.printStackTrace(); } } } [/CODE] This compiles … | |
Hi all, 1. I want to know how to add a data grid in vb 6 form? 2. And how to fetch all records in data grid please help Thanks in advance for help. | |
hello ive problem which is every time i click search(by name) n then the next thing i click save, (after save and update my data), the button previous,next,first,last doenst work, the save button function also doesnt work. but when i click search(the name), n then the next i click the … | |
I’m trying to automatically save an excel file to pdf file using visual basic. So, I will manually open the excel, upon opening the excel file, it will run code to calculate a daily totalizer (this I have functioning) as soon as this code finishes, I want the excel file … | |
Hi, I have this set of coding when i use it when i am in ms access 97 but not ms access 2007. this is a set of coding for login form of ms access. Whenever i log in with the correct userid and password, it always promt me "wrong … | |
Hello, I am getting a below error while accessing excel second time [I]run time error 1004 method sheets of object_global failed in vb6[/I] When i run the code at first time to open a excel and take a copy of the sheet, it works fine however when i run the … | |
Hi there I'm looking for a way to add filters in my windows form application. I have a menu strip with item called 'Filters'. Under that items there are items called 'Jobs Pending, Jobs Outstanding, Etc.....' Take for example 'Jobs Pending'. How do I filter from my database in sql … | |
Hi, i have a problem in downloading pdf files that is when i click the download button it just download a text file contains unreadable and unrecognizable words and numbers , so can any one help me to solve this problem my code to download a pdf file is : … | |
Hi All, Just thought I would give some thing back to this site as its helped me before with varoius problems anyway I wrote a UDF to enable users to run Macro`s in excel here is the function below [CODE] Private Sub RunExcelMacros(ByVal Path As String, ByVal MacroName As String) … | |
Hello everyone, I have a database with a list of characters and I would like to display which characters are currently logged in on a webpage I have. My database looks like this: [CODE]`characters` (`account`, `name`, `online`) VALUES (6, 'Frod', 1);[/CODE] I hope that makes sense. So if 'online' = … | |
hi, I have a problem with the below code. It gives error [COLOR="Red"]Public member 'resolveExternal' on type 'DOMDocumentClass' not found.[/COLOR] at the palce i mark in green. Please help me to solve this..... [CODE]Public Sub ReadIndXML(ByVal LoopID As Integer) Dim strXMLPath As String '= "" Dim xmlRoot As MSXML.IXMLDOMElement Dim … | |
hi everyone! )) As I understand it - to a class B inherit fields and methods of class A must describe them in this order - public class A [ICODE]{ public method34() { int m = 34; } public class B { private int my_m; public method1() { int m … | |
I am having problems finding out how to remove everything from a List. [CODE=C#] //Creating new List List<Number> ThisList = new List<Number>(); [/CODE] Once it is populated and I have got it to display how do i remove all the contents within the list so i can use it to … | |
Hi, I have a c# form in which I retrieve data from Access DB. I have Two DateTimePickers so I could choose data between dates. My problems is when I try to retreive data between 19/10/2010 and 12/12/2010 it gives me me data beyond 12/12/2010 but when I try to … | |
Hi,I am trying to scan a string to char *name inside struct data but it gives me segmentation fault. please help thanks. [ICODE]#include <stdio.h> #include <stdlib.h> #include <math.h> #include <ctype.h> #include <string.h> struct data { char *name; }; typedef struct data data; int main(void) { data first; data *fp; fp=&first; … | |
Lets say I have a JPanel and an object called ball inside of it, instead of creating gets so the JPanel can draw the ball image I would like the ball object to draw itself on the JPanel. Is it possible? Thanks :D. | |
Hello there. I'm new in python thats why i hope for one quick explanation. I'm making this program just for fun tho i dunno how to really use raw_input in loop. [CODE]from random import * ime_f = raw_input("Vnesi ime fanta: "); priimek_f = raw_input("Vnesi priimek fanta: "); ime_z = raw_input("Vnesi … | |
First of all, Is it actually possible for a keyboard to be able to accept input from multiple separate keys at the same time? For instance, If I was to make a simple game like pong, and set an up and down key for each player, could both players press … | |
This app will execute and exit right after the process is complete. It will log different things using the logging module. For some reason everytime, no matter if the app execution is a success or a failure, it will tell me an error has occred, and see the log file … | |
Hi all, I was wondering if someone could help me with this bit of coding. I have set two veriables d1 and d2 to pick a random int of 1 to 10: which I need for in loop but when I run it the same number appear How do I … | |
Hi all...could anyone please tell me how when working with arrays you could use a forach loop to output the number of a certain item... for instance...if i wanted to find out the number of 5's in an array...could i use a foreach loop to find that out? Thanks | |
Hey im new around here so if i get something wrong tell me :D I have this code [CODE]$txt = str_replace("#", "<a href=user.php?user=$txt></a>", $txt); [/CODE] I want it to when a user tags someone using # it goes to the user.php?user=WHATEVER#WAS. Its just like twitter is this possible and simple? | |
Hey, I'm new to Python and wondering about the following bit of code. It tells me that the module random has no attribute randint. I've looked at the documentation and such and I think I'm doing it correctly, but obviously something's wrong. Any ideas? Thanks! [code] import random int1=random.randint(1, 6) … | |
Afternoon All, I have ran into a problem that i cant get my head around, I have the following code(see below) this all works fine if there is a imgID ='5' but if there isn't a record in the sql table with the imgID 5 then i get the following … | |
I'm trying to pick up the latest record for 6 groups, and I'm using the following Select statement: [CODE]SELECT * FROM newproducts LEFT JOIN (suppliers, newsrchGrps) ON (suppliers.supplierName = newproducts.supplierName AND newsrchGrps.groupCode = newproducts.groupCode) GROUP BY newproducts.groupCode ORDER BY newproducts.updated DESC LIMIT 6[/CODE] which does pick up a total of … | |
Hello, I am currently passing some HTML through to preg_match and I want to access all the HTML between two tags, however as the same tags may be repeated afterwards my current expression isn't working. For example, my expression at the moment is [code]<li>(.*)</li>[/code] But as the HTML is like … | |
Hi ppl I need to edit a listviewItem to change name so i use "beginedit()", but then i need to send the new name. The problem is, there is not way to see when edit is finished to send the new name. So, any idea of how could i do … |
The End.