199,114 Archived Topics
Remove Filter ![]() | |
I have a field that looks like SKU: [url]www.cool.com[/url] the code that spits that out is [CODE]<tr> <td><b>SKU:</b></td> <td><?php echo $product_info['sku']; ?></td> </tr>[/CODE] the [url]www.cool.com[/url] is what I entered in for sku: but what comes out on the page is not a clickable link. What I would like to have … | |
Hello everyone, I am creating a webapp of employees. Now each employees has fields such as loginId, firstName, lastName, email, last review date, last reviewer, last review type and I can go on and on. My question is each employee has ONLY last review. So what is the best way … | |
Hello, I was wondering how I could dynamically generate an image via Java/Javascript. Here is what I need: There will be a tiny sprite-like image in the middle. What I want is to have a partial circle around the sprite appear. It will have a drop-down with 3 options, each … | |
Hi. I'm trying to make a two-dimensional array full of descriptions. As if they were map tiles for a text-based RPG. There's a point class that holds your coordinates and I use the Get_X and Get_Y functions to put into the map so it can read them. I'm just starting … | |
I use SwiftMailer in my PHP script to send emails upon HTML form submission. On the test server it all works fine. On the production server (different host) it gives me this error message: [QUOTE]Parse error: syntax error, unexpected T_CLASS in /home/alkal5/public_html/html/swift-mailer/lib/classes/Swift.php on line 18[/QUOTE] What could it be? Thank … | |
I use SwiftMailer in my PHP script to send emails upon HTML form submission. On the test server it all works fine. On the production server (different host) it gives me this error message: [QUOTE]Parse error: syntax error, unexpected T_CLASS in /home/alkal5/public_html/html/swift-mailer/lib/classes/Swift.php on line 18[/QUOTE] The two machines use different … | |
[code]class count { public static void main(String args[]) { int a=0; int i; int l=0; int b=0; int c=0; for(i=1;i<=1000;i++) c=i/10; if(i%10==0) { l=l+1; } else if(c%10==0) { l=l+1; } System.out.println("no of zeros in this string is:"+l); }}[/code] this is my code...to calculate number of zero from 1 to 1000,,,,but … | |
I was testing out a networking script of mine, and it worked fine locally. It is basically a replica of a very bare bones multiplayer game network, where multiple clients connect to a master server, each client can say anything that it wants, and the server redirects that message to … | |
I have the statement [CODE]fn = sys.argv[1] [/CODE] catching the filename at the command line when the user starts my program. The problem comes when a user uses a path with a space in it such as; 'C:\Documents and Settings\user\My Documents'. The argument parser sees ''C:\Documents' as the first paramenter, … | |
Hi, I am Iorgobus and i need some help with php captchas. Because spammers are more an more, I want to put on my site a php captcha script to stop they. If you have any recomandations where I found a good Captcha PHP script, free or not free ,please … | |
Hi, I have a little problem. I need to write a function that will be given a number (with unknown number of digits) and it will search the number for similar neighboring digits. I must say that I'm not allowed to use arrays (unfortunately). I thought of disassembling the number … | |
I have WAMP server installed, and have clicked "Start all services." However it does not let me run Php scripts in my browser (ie7). Even the scripts clled from the wamp menu to not execute. I have uninstalled then reinstalled a new download to no avail. Suggestions anyone? Ralph | |
Hullo. I made a small webserver just to flex my winsock muscle, but it only works for small files like html files. Once I have processed the request to get the path of the file, I send the result like this: [code] ifstream fin; fin.open(URL, ios_base::binary | ios_base::in); if (!fin.good() … | |
Hi there, Im working on this page - [URL="http://www.rjt-online.com/photos_titletest.php"]http://www.rjt-online.com/photos_titletest.php[/URL] When you click the Filter By buttons it alters the content of the iframe below it. This works fine in ALL browsers. However, when you click the browser "back" button it should return to the previous clicked Filter By button (and … | |
[CODE]try { File realFile = new File(file); boolean rename = realFile.renameTo(new File("C:\\Dummy Files 2\\" + file)); if (rename) { System.out.println(file + " was moved succesfully"); boolean delete = realFile.delete(); if (delete) { System.out.println(realFile.getAbsolutePath() + " was deleted"); } else { System.out.println(realFile.getAbsolutePath() + " could not be deleted"); } } else … | |
Hi there, I have some questions regarding insert update and select queries in VS 2008. When writing select update and insert queries where should I write them. Is it in a class in visual studio or is it in the database as a stored procedure or something else. At the … | |
Hi Everyone, I was working with DataGridView tool in Visual Studio. I have managed to display data from my database in DataGridView. Now I have to Select some certain rows and store them in such a way, so that I can Use a loop on them and process each row … | |
I want to upload a text file to a access database, but the string does not work. I guess the problem is with the quote marks or something of the sort. The string is as follows: rs.Open "SELECT * FROM [" & Me.Text1.Text & "] ", objConnection, adOpenStatic, adLockOptimistic, adCmdText … | |
[CODE]Private Sub Command1_Click() Dim cn As ADODB.Connection Dim rs As ADODB.Recordset Set cn = New ADODB.Connection Set rs = New ADODB.Recordset On Error GoTo myerror cn.Provider = "Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\Main.mdb;Persist Security Info=true;Password=123456789" cn.CursorLocation = adUseClient cn.Open rs.Open "SELECT * FROM BA_Data", cn, adOpenKeyset, adLockOptimistic, 0 MsgBox "Total … | |
// find new size nNewArraySize = StrNewSizeForCharReplace(pszString, pszFindString, pszReplaceString); // nNewArry size is 1063 // alllocate memory pszTemp= (unsigned char*)malloc(nNewArraySize + 1); // add 1063 character in to pszTEmp // 1063 nLength = strlen(pszTEmp) // length is 1063 free(pszTemp); // Heap memory exception How can remove this exception | |
Hi team, I'm having some issues getting the results of my query to output on a data grid. I'm using an sql query to get the data from access, which is working fine, but then I want to output it onto a datagrid. My code is as follows just for … | |
can anyone tell me how to generate a chart using asp.net C# from database MS Access..which we do something like in Excel.. | |
I have one link in my webpage where user can call to other skype user. [CODE] <a href="skype:skype_username?call">Call me</a> [/CODE] But when user have not skype installed in their pc one notification popup is coming. Is there any way in any manner i can detect is skype is installed or … | |
Hello, i m newbie could you plz tell me Which Software and Other things are require to make a J2ME Mobile Application? | |
hi everybody i dont now whats wrong whith this code below when i run it debug show an error with con.open() [CODE]Dim con As New System.Data.SqlClient.SqlConnection con.ConnectionString = "Server=iraq\\sqlexpress ; Database=stats ; Trusted_Connection=True ;" Dim com As New System.Data.SqlClient.SqlCommand com.CommandText = "insert into users values('" & TextBox1.Text & "','" & … | |
Hi, Im having problems when using the header("Location: filename?args") function to act as a swf file. It works with firefox but not with Internet Explorer. [CODE] <object id="flashfile_obj" type="application/x-shockwave-flash" data="get_file.php?name=<?=urlencode("test.swf?&test_to_swf=1")?>" width="900" height="500"> <param name="movie" value="get_file.php?name=<?=urlencode("test.swf?&test_to_swf=1")?>"/> <param name="quality" value="high" /> <param name="wmode" value="transparent" /> <param name="base" value="_dir" /> </object> [/CODE] The … | |
Ok, i am quite new to php and i am trying to create an application that allow two clients to access a server simultaneously. i have manged to write the code below but i keep getting errors and i think its probably because i have two form actions on the … | |
This is my code for multiple file upload. When the user clicks on attach more files link $max_no_img should be incremented but i am not able to figure out how to do it. <!doctype html public "-//w3c//dtd html 3.2//en"> <html> <head> <title></title> <script type="text/javascript"> function increment(){ max_no_img++; return max_no_img; } … | |
why doesn't this work? [CODE]int main() { fstream file; char output[100], pasword[100]; int a; const string x("Yes"); const string y("No"); string z; char b; cout << "\nEnter correct password to continue: \n" << endl; cin.getline(output, 15); if(output == "file.txt") { cout << "Change password? Type Yes or No. \n" << … | |
Hello friends, We have create one report in crystal report that prints the user terms and condition. In the report, for 2 section, we have added sub-reports that displays the mutliple records for the selected terms and condition. Every thing is working on the screen i.e. records are getting displayed … | |
Hey, I have an API that can move windows. If I put the x co-ordinate higher that the horizontal resolution of the screen, it will move to the next monitor. I do not have multiple monitors, so I cannot test this myself. Would I use something like: [CODE] Screen[] screens … | |
Hey, I have tried Google, but no avail. I have an XML file, say <Items> <item> <id>1</id> <name>test</name> </item> <item> <id>2</id> <name>othertest</name> </item> </Items> I have a function Add(int id, string name). How would I read through every <item>, get the id and name, and call the add function. Thanks | |
Hello everyone, After I publish my C# VS2005 application (to be installed from CD-ROM), the crystal reports in it will not load, but if I run the application from debug, everything works fine. Does anybody know what's going on? Thanks a lot. Best regards, JC | |
Hello So, recently I obtained a horrid assignment from lé boss, and I have yet to figure out how to do this. The idea is to select the ID(db_medlem) of all customers that have purchased for over 1000, in the year 2010. (I know its a funny syntax, but its … | |
//I am just practing java in vacation.So i tried to create JFrame with Events Handling //But getting error .Also i want to know that when i click submit button the new frame //appear and the old frame must get disappear .PLS help import java.awt.*; import java.awt.event.*; import javax.swing.*; public class … | |
Okay, now that I consider myself to have decently mastered Python/Tkinter (or at least I'm no longer a complete noob), I'm turning my attention to the web. I'd love to be able to program applications that can be run easily via web sites (especially quick experiments). The easiest thing for … | |
Hello everybody: This is my first thread in here. I readed a lot of good problems and solutions in this webpage. Right now im having troubles with one form submit in IE. Here's the thing. I'm trying to generate a PDF in PHP, i'm using mPDF to show the html … | |
[code]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class fahrenheitPanel extends JFrame { { } private JLabel JLCelsius, JLFahrenheit; private JTextField JTFahrenheit,JTCelsius; private JButton Convert; private ConvertButtonHandler cHandler; public fahrenheitPanel() {//the constructor JLCelsius=new JLabel("fahrenheit",SwingConstants.LEFT);//creating the JLabels for celsius JLFahrenheit=new JLabel("Celsius",SwingConstants.LEFT);//creating the JLabels for fahrenheit JTFahrenheit=new JTextField("0");//crealting the textfield for fahrenheit JTCelsius=new … | |
I have to read the co-ordinates of a 3D object from the txt file and store it in an array. But I need to store it in a JAR file so that I can view the final product in my visualizer (Jmol). How do I get about in doing that? | |
I am creating a update member page. I would like the page to auto retrieve the information he or she originally used while registering on my site and display them into the individual textboxes of the update profile page, this is to prevent the hassle to rekey in every individual … | |
Hi, How can i restrict the user to input only numbers. I have done the following coding for[B] VB[/B] [CODE]private void textBox1_TextChanged(object sender, EventArgs e) { if (!char.IsNumber(e.KeyChar)) { e.Handled = true; } }[/CODE] But now i used it in C# it is not showing the [B](e.keychar)[/B] property. I have … | |
Ok I have been working on this for a long time and I am just plain stuck. What I am developing is an online application for a school to keep track of missing assignments that students have. I have a table that lists the students first name, last name, homeroom, … ![]() | |
Hi all, Still struggling a bit with PHP here. I wrote a script a while back that performs a display of various files from a folder. In this script, I have a piece of code that determines whether or not the signed in user is an admin or a user. … | |
Hi there, I'm new to this forum and am trying to find answers to a few issues I've been having. I'm building a website for my music (I'm a novice with web design so bear with me) and I'm having trouble with this page - [URL="http://www.rjt-online.com/photos.php"]www.rjt-online.com/photos.php[/URL] As you can see, … | |
Hello all, My question is how would you query (insert into table) a variables that can vary from few to many in quantity depending on the user input. The code looks like this. [CODE] $chkbox = $_POST['chk']; $imp=$_POST['imp']; $step= $_POST['step']; $start=$_POST['start']; $finish = $_POST['finish']; $duration = $_POST['dur']; $status= $_POST['status']; foreach($imp … | |
Hello, I am writing a OpenGL program, but I can't get the mouse to do what I want. The code looks like this [code] main() [INDENT]init OpenGL stuff display function1[/INDENT] Function1 [INDENT]Start graphCalculation[/INDENT] graphCalculation [INDENT]plot graph in OpenGL[/INDENT] [/code] What I've tried to do, is to add a "zoom" function, … | |
guys i am new to php and all what i know is html .so please tell me how to create a commenting box that allow people to comment on my website or my post . | |
Hi Everyone. Can some please assist me. I'm trying to create a login script. This is what I've done so far. This works if user's input is correct. But when the user input is incorrect I get a blank screen. I think my problem lies in the $SQLPASS statments. Any … | |
I'm trying to move a file to a different directory using .renameTo() This isn't working, as the file is still in the original dir after the code has completed, and there is a copy of the file in the target directory. I tried deleting the original file, which doesn't work. … | |
hi i am doing one project in asp.net in which i have one link button . I have one ppt file. i have to open that ppt file in same aspx page when i click on that link button. so anybudy can help me. Thanks in Advance. |
The End.