199,114 Archived Topics
Remove Filter ![]() | |
Recently i was Writing a Preg replace Function in PHP Here is the Code below [CODE]$suchmuster = "/".$textlinksname."/i"; $replace = "<a href='".$textlinksurl."' target='_blank'>".$textlinksname."</a>"; $body = preg_replace($suchmuster,$replace,$body,200);[/CODE] Since the variable $body contains links begins with http:// when it replaces the matched text in URL it becomes a problem Similarly for the … | |
Hello friends, I have a gridview which has 4 columns. In the first column i have Name. In the second i have School Name ( This is a Drop down list which is Disabled on Page Load) In the third i have Template filed wherein i have put an Button … | |
i m developing website in C#.net but my exception message is not displaying in alert box how can i disply my exception in text box in try catch any body pls tell me | |
[CODE]<script language=\"javascript\" type=\"text/javascript\" src=\"datetimepicker.js\"></script> print "<script language=\"javascript\" type=\"text/javascript\" src=\"datetimepicker2.js\">"; print "</script>"; [/CODE] [CODE]print "<input name=\"EffStartDT\" type=\"text\" size=\"25\" value=\"".trim($_POST['EffStartDT'])."\"><a href=\"javascript:NewCal('EffStartDT','ddmmyyyy','true','24')\"><img src=\"cal.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"Pick a date\"></a>"; print "<input name=\"EffEndDT\" type=\"text\" size=\"25\" value=\"".trim($_POST['EffEndDT'])."\"><a href=\"javascript:NewCal2('EffEndDT','ddmmyyyy','true','24')\"><img src=\"cal.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"Pick a date\"></a>"; [/CODE] I want to create two date time pickers for … | |
Hi folks, please help. My php script combine different fetch records and I use the jQuery pagination as the kind of menu. (jPagine from [URL="http://www.phpixel.fr/jpagine/"]http://www.phpixel.fr/jpagine/[/URL] I need change page numbers to words. I know the total number of pages. I tried use array in javascript but without success ... Many … | |
hi all, i need to disable the back button if the url address is login.php. so i am having the code for restricting the back button. so if in url the address is login.php then the browser back button should not work. here is my code for restrcting back button. … | |
Hi, I am writing a program that receives a binary data stream over serial. The size of the bytes I read fluctuates between 1 and 4 bytes. I want to read the specified number of bytes, and return an UInt32 with the binary data. I have tested around with the … | |
I'm running Eclipse for Java. I created a DOM version of an XML file. Now I want to change an attribute of an element in the file. I called a method that called a method in the class that controls the DOM, and I got a dialog box saying "JDI … | |
Im trying to write c# form validation for a xaml-form. The only two things that seem to work are the lines of code that clears the text- and passwordboxes and displays the messagebox. Are my regex-examples wrong, or do I need to work with some kind of while-statement(s)? [code=c] //start … | |
Hi, I need to make a pairs between array elements. For eg if the sored array I have is [CODE]1 1 1 2 1 4 1 6 2 3 2 5 2 8 2 9 3 7 3 10[/CODE] then I need to pair every element of the 2nd column … | |
I creating a 2d computer game, and I want to put enemies that in that appear at random coordinates. The problem is i'm not sure entirely how to do it. I have the "enemy" in a array of 30,and then i want to put these 30 enemies on a map, … | |
Please any one reply me................ ![]() | |
I have a table in SQL sever .How to create a dynamic dropdownlist using the entries in that table in such a manner that i am able to use the corresponding values to that entry that are given in the table? | |
Hello All, I'm trying to modify some code for an auction site but my lack of PHP knowledge is preventing me from doing so. I bought an "Essential Guide To CSS, AJAX,& PHP" book and have been doing the PHP exercises at the W3 site, but it seems that it'll … | |
These are the steps in registering a new user. 1. A new user is registered (provide name, address, email etc.) 2. An email is sent to the email he/she provided, which contains his login information. the problem now is the emial code. I've never done this before so I don't … ![]() | |
I dont really know specifically what im searching for, which is why i haven't just found this via searching the web. Have you guys come accross or know of any sort of quiz questions like where it gives you a for loop which isn't in the normal format and then … | |
hi all, i had a logout page wer i am destroying the session value. so now i am logging out from a page and if i click browser back button it is going back to that page, so i placed a code in that page[CODE]<?php if(!isset($_SESSION['username'])) header("Location:http://10.70.2.142/Project/login.php"); ob_end_flush(); ?>[/CODE] it … | |
hie all, i needed to make a code in simple turbo c for ethernet packet injection as well as data reception. I tried the code in windows but its not working. possibly due to linux based commands. plz help me.. | |
how to pass two parameters using a dataenvironment. I have a table salary record in which there are two coloumns date and unit, i want to pass these parameters at run time. | |
Hi every one!! I have a java program and i don't know how to delete a record from an array of objects using JOptionPane | |
can someone help me setting up a log in form that can be found here in dani.. whenever you clicked the login link a box will appear wherein in thix box you can input your username and password? | |
hey, please can anyone help me to add new row or a column to the table whenever a user clicks on the add button? thanx in advance | |
Hi , I dont have any basic knowledge in servlet program in java.Now i am using Redhat os. Please any one tell some steps how to execute the servlet program. Thank you, Prem. | |
hi friends, i want calculating values in two text box , result display in another text box and this result will be stored in database. if anybody know this say to me.. ![]() | |
Hey, Here is the situation: I have a gallery of images that are being displayed with javascript that requires the image files to be saved as img1, img2, img3, etc. I am currently trying to write the php code that keeps track of the number of image files and allows … ![]() | |
So, I am new here and have a few questions about using the "this" keyword in Javascript. I am new to javascript but have much experience with C++. First question, is the "this" keyword just like using self? Secondly, if it is like self, and I use it in say … ![]() | |
Alright, let's try this again. I've started over from scratch and we have got the basic functions working. Everything so far has checked out, but I am still trying to get it to pull the right credentials. I can get it to pull one of the rows out of the … | |
Hello all, I need a bit of help with this program, I need to make my code create a complete binary tree using an array. As well as create a driver class that displays the tree graphically Here is what I have so far with my code Tree Code: [CODE]import … | |
I need to submit a project in vb & sql I have a project in vb & access which I have to convert to vb & sql secondly I have basic idea of sql data connection. but unfortunately I have done my sql class long back & lost the notes … | |
Alright guys, bear with me, im a noob when it come to PHP. When a user clicks I am currently redirecting users the following way: [code] echo '<li class="edit"><a href=updateInfoForm.html?id='.$siteInfoId.'><img src ="images/edit.png" class="editImg" height="23" width="23"/></a></li>'; [/code] The problem is I would rather not have this data in the URL, I … | |
I can do this in Objective-C: [CODE]newNotewUTF8 = (NSString *)CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)oldNote, NULL, (CFStringRef)@"!*'\"();:@&=+$,/?%#[]% ", kCFStringEncodingUTF8 ); [/CODE] Ex: oldNote looks like this: This is a note newNotewUTF8 comes out like this: This%20is%20a%20note And it works out fine. I can receive the above Note in a url: "http://www.siteurl.com/input.php?note=This%20is%20a%20note" in my PHP … | |
Pressing the enter key of the following page (created by JSP) submit page more than once. Both alert popup boxes appear as expected: alert('i ' + i + ' elem[i].checked ' + elem[i].checked); alert('alarmgroup ' + alarmgroup + ' rowsPerPage ' + rowsPerPage); appear. However, then this alert appear again, … | |
I am getting an error message that is quite new to me. I normally can call methods without incident but this time, I saw a new error message. This code is sample coding I am using to see how to fix three of my issues. First Class [CODE] public class … | |
I believe that ofstream is for writing into a file and ifstream is for reading from a file. I am trying to write into a file by taking commandline input from the user which is the accept_data() function and and then display all the data from the file that the … | |
Hey Guys, Before I start working on this I figured I would see if any of you knew the best place for information on building a Digg style function. I am not talking about the Digg button, I am talking about the "Submit a New Link" function that diggs through … | |
I am writing a script to rename and reorganize the mp3 on my iPod. For those who don't know, if you drag and drop your music from the iPod to a computer, there is a crazy F## folder structure and all the names are 4 random characters. I want to … | |
Hey Everyone, I have a blog that has three content/picture boxes on each page at the top. Below these boxes is the actual text content. Well what I want to do is create a script that will scroll smoothly down just right after those three boxes. This may sound confusing … | |
Hi, I have a slot game written in flash actionscript 1.0 , all the data is inside the .fla file. This game communicates with a PHP file and gets some data from it,and updates a database based on the wins or loses of the player.(in the php file,the credit of … ![]() | |
I'm trying to just use a normal stack and have it pop the numbers in the order stacks normally go but it just keeps popping 28 (or at least from output thats what i see) it should just be pretty straight forward but .... [CODE] #include <iostream> #include <stack> using … | |
hi guys!! i am wrting a program for a small arithemtic game,it displays two numbers and ask user to enter the sum of these two numbers,the program runs fine but i want to add a countdown timer,i mean time limit for user to answer all 10 questions within 30 seconds.i … | |
Hey all, I am pretty new to C and am trying to make a basic HTTP server to learn more about sockets. I managed to get the sockets working fine, and sent some data to the browser when I hardcoded the data. However I am now trying to read from … | |
Hello. I have a file, with some HTML in it. I would like to make a shell/bash script that moves ALL of the content of that file into ANOTHER HTML file at a CERTAIN line number... Does anyone have any suggestions? If not possible at a certain line, then at … | |
I am looking for something that I can edit the code of a page online. I want something like [URL="http://notepad-plus.sourceforge.net/uk/site.htm"]Notepad++[/URL] but in the browser. I preferably want something with similar features of Notepad++ like tag highlighting, colored code. Stuff like that. Does someone know of anything like that? It also … | |
we were tasked to come up with a peer 2 peer chat program using serial ports using only nasm and C language. can anyone give me an idea on how i can do it? or references that can help me figure out what to do. i'd really appreciate you're help … | |
It is posible in a linked list implementation,the nod to hold more then one information ? for exemplei want the node to hold a person`s name,adress,country,etc.... | |
Hi, I would need to create unique filenames appended by the iteration number. For eg. [CODE]for( i=0;i<iterations;i++){ ofstream outfile("iterfile"+"i"); // i.e filename should be iterfile0 for 1st iteration. } [/CODE] I need to cast "i" from int to char so I tried [CODE]ofstream outfile("iterfile"+(char)i)[/CODE] but it did not work. How … | |
I am having issues with the following script. I don't see anything wrong here. Very basic but it is giving me a headache. Any suggestions are welcome. I am running version 5.1.37 and the error is: Error Code : 1064 You have an error in your SQL syntax; check the … | |
Hello, I have a question: [CODE] Algorithm DFS(Vertex V) mark[V] := 1; print[V]; for each (edge (V, W)) do if mark[W] = 0; DFS(W); [/CODE] I would like to realize this recursive procedure (depth-first search), but in my graph representation (with adjacency lists) I use two different classes, one for … | |
I have some ad code in a smarty .tpl file that I want to refresh every 10 seconds so it will load a new ad. My ads are getting plenty of views but I want people to multilple ads in one page view instead of when the whole page is … | |
I really need help in some parts of my minesweeper code using Tkinter. I don´t have much experience in python and I am facing two major problems that I just can´t solve. The first one is that, as I generate buttons dynamically, they all have the same name and receive … |
The End.