199,113 Archived Topics
Remove Filter ![]() | |
I am not new to OOP I am tidying up a very large site of mine and trying to create a much better structure (more in keeping with the whole point of OOP). I have decided to use mysqli (please don't suggest PDO as I have decided againast it) which … | |
Can you Close or Exit an application from within a Sub or what would be the 'best practise' for Exiting when the app has failed a logic test? My app checks for the existance of various files in a Sub Routine off the Form_Load and writes to a log along … | |
I use 4 radio button with the same name , and with same className, When Ever I try to get the value by using JavaScript it gave an value "Undefind" ,How to over come this???? alert(document.getElementsByName(m1).value); this is used by me to get the value of m1 name radio button … ![]() | |
hi guys, need your help on this. had a form on html and saving data to mysql but it's not working here's the html code: <html> <body> <table width="300" border="0" align="center" cellpadding="0" cellspacing="1"> <tr> <td><form name="form1" method="post" action="insertac.php"> <table width="100%" border="0" cellspacing="1" cellpadding="3"> <tr> <td colspan="3"><strong>Insert Data Into mySQL Database … | |
Hello professionals, can any one tell me how to extract PDF attachments with c#? | |
i have the following situation. how can I change the value in the column in a dataGridView? thanks! | |
Hello, I trying to post a string, but ihave a problem When I post the string in chrome, the string length that i post it is more than the realy string that i send, but in firefox and IE the post is working correctly, what is the reason for this … | |
Hope someone can help he because I'm at a loss. I'm trying to set up a PHP local server on my new machine using ISS7 and Windows 7 I seem to have PHP installed correctly and it's linked with the ISS Manager. All of the necessary Window Features are turned … ![]() | |
i am getting weird result here. if condition at line 25 is satisfied only 4 times while reading cpuinfo but **cores** is modified each time while loop iterates. i am not able to think of anything that may cause this. any help of any sort is appreciated. #include <stdio.h> #include … | |
**I have a fairly simple script, but I'm having trouble sizing up my randomly displayed images. I want them all to have the height of 150px. Any help would be great. Thanks! code below:** <script type="text/javascript"> window.addEventListener?window.addEventListener('load',function() { ray.rand('thisCell'); },false): window.attachEvent('onload',function() { ray.rand('thisCell'); }); // FF : IE1 var ray= … | |
evrything was fine until i inserted 100 to 125 lines in code. i am wondering what kv is doing wrong as it is not even printing that version file was opened.. any sort of help is appreciated. files included in the code are given below for reference. proc/version file: ** … | |
I'm trying to learn Java, pretty easy so far as my previous experiance is with C/C++. I was just curious how to call java classes from different files. That way I don't have to have main as well as all of my classes crammed into one file. I'm sure the … | |
I'm a complete beginner in the programming world, so forgive me for the basic questions. I'm trying to run Peter Norvig's spelling corrector from the Windows XP command line, but am having difficulties. I have a text file of addresses with a number of misspellings. I would like to use … | |
I am trying to make something like a firewall but it isnt a firewall it is just suppose to see all the incomming and outgoing connections of each port. And put the IP address and port into a .txt file. Basicly creating a log of incomming and outgoing connections. Nothing … | |
I use code::blocks as an IDE but now i want to create a .dll file. I have followed this tutorial however it is for VC++. TUTORIAL: http://msdn.microsoft.com/en-US/library/vstudio/ms235636 I am strugeling becuase I am used to creating .dlls in C#. They are so easy. You just create a new library project. … | |
Hey guys, Here's what I have to do: *Write a program that displays the table of Fahrenheit - Celsius temperatures. The formula is : C = (5/9) (F-32) C - Celsius, F- Fahrenheit The range should be: 0 - 200, where as the step should be set to 20. The … | |
Hello everyone, I have a website with admin panel...the admin can upload news and I want the users to be able to submit news like me but after theyr news are reviewed and approved from me how can I do this I will show my upload script from the admin … | |
Hi, I am used to HTML. What is Coldfusion? Why do people use it? What are the circumstances you would use it. Does it require proprietary software? What are the advantages and disadvantages to using it over HTML? Is it compatible with CSS,Javascript, PHP, and MySQL? What are personal opinions … | |
Please I am relatively new to Java and would really appreciate your help. Can anyone please tell me what I am doing wrong. I'm trying to send a string to an oracle and save it's output. My program just hangs when I get to this block of code. try { … | |
Hello I have an application that connects to sql database my application is multithread. When I run the application it loads top 500k data and stores it in #temp1(connection1), i can browse, search and select data, while my thread is running and storing the other 501 to 1m data in … | |
HEllo. If I do this.. <div>value | number</div> <?php $arr = array(10, 7, 2, 4); $i = 0; foreach ($arr as $value) { $i++; echo "<p>" . $value . " | " . $i; } ?> ill get something like number | value 1 | 10 2 | 7 3 … | |
I am currently a final year Business Information Systems student. I have the task of completing a final year project.I am not much of a programmer. I am not sure what project i should tackle. I am thinking of a system whcih automates somthign with finance. If anyone can give … | |
So, what I'm having trouble with is a simple ai that runs from the player. There are walls scattered about the level that the enemy has to get by, but each time he collides with the wall, he gets stuck. I would greatly appreciate some help, here is the relevent … | |
Hi, I want to write my own programming language in C #. Want some good stories and tutorial (preferably video). Waleed Ahmed | |
What i'm trying is sending data from client which is windows application to server which is console application. First i have to start console application and accept connection from client which is windows form and i need to send listbox selected items to console application on button click.This i have … | |
Hello All, I am using a winapp form c# (.net4.0)to login and navigate deep into a webpage, upload a file, download a file. All this works successfully... MOST of the time. Everyonce in a while, when I hit the download button, the system seems to hang. Like a webpage that … | |
**i have this connection** <?php $db_host = 'localhost'; $db_user = 'root'; $db_pass = ''; $db_name = 'databasename'; $conn = mysql_connect($db_host,$db_user,$db_pass) or die(mysql_error()); mysql_select_db($db_name,$conn); mysql_query("SET NAMES 'utf8'"); mysql_query('SET CHARACTER SET utf8'); ?> **but my old connection dosen't work with this code** //connect to database $link = mysqli_connect('localhost','root',''); mysqli_select_db($link,'databasename'); //get all rows … | |
Hello, i'm having some problem when comparing date (from user input) with the date inside database. The format of both dates are the same (YYYY-MM-DD). This is the error it shows > You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version … ![]() | |
![]() | I'm trying to create a function that builds the content of a page and add database info at a specific point in the process. I get this error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\EasyPHP-5.3.8.0\www\test\dukejets\view\pagecreator82812.php on line 20 This is line 20: "\t\t\t … ![]() |
Hello, I am trying to add a few custom modifications to a classifieds theme for Wordpress. It uses custom fields to get all the information in a post. Phone number, location, price, etc. It was designed to send an email to the user, the user clicks a confirmation link which … | |
I have to write a program in java to compute the standard deviation and the mean. I am also to write a test program that will prompt the user to enter 10 numbers and display the mean and standard deviation. I have stared on the program and so far this … | |
Please I'm new to python and I'm trying to understand a line of code. Can someone please explain to me the implications of the addition of the for loop inside brackets with the random integer generator. Thank you for i in range( 0, 50 ) : ran_values = [ random.randint( … | |
I want to build a module to combine multiple text file in a .csv file by using vb.net. My text file data like this: (T1.txt) UnitCode|Qty 001|56 002|45 003|100 004|78 005|67 (T2.txt) UnitCode|Qty 001|78 002|166 003|10 005|12 I want the output like this: (Output.csv) UnitCode,T1,T2 001,56,78 002,45,166 003,100,10 004,78, 005,67,12 … | |
Hello, Im new to VB and therefore i require some guidance in this tricky situation that im stuck in. Basically, what my program does is calculate the mach number of an aircraft when the speed of sound and value of temperature are added into the text box. The problem arises … | |
Hi all, I have a .NET form where I want to connect to a table and then pass each defined (by query) string from the table into a string within the code. I have created a connection to the database already via Data Sources but I'm unsure about the syntax … | |
Here is the c code:- #include<stdio.h> #include<stdlib.h> #include<string.h> int main(int argc,char *argv[]){ if(argc==1){ //default printf("first version\n"); int i,j,k; char line[1024],*str1,*str,str2[1024],ch; FILE *in=fopen("/proc/cpuinfo","r"); i=0; while((fgets(line,1024,in))!=NULL){ // printf("%s",line); str=strtok(line, " :"); if(str!=NULL){ //point 1 if(strcmp(str,"model")==0){ printf("%d %s\n",i,str); //point 2 str=strtok(NULL, " :"); printf("%s\n",str); //printing "name" if(strcmp(str,"name")==0) //point 3 printf("CPU Model:=%s\n",strtok(NULL,":")); } else … | |
![]() | Hi DaniWebbers, I would like to map a string to a Property using the Dictionary class. For example, I want to map "port" to a textbox's Text property, e.g. myDict.Add(tbPort.Text, "port"). How would I go about defining the dictionary? I've tried the following: * Private myDict As Dictionary(Of Property, String) … |
how to rowfilter a row using textbox for date and time or only date ? plsss help i am getting error with this code dv.RowFilter = "Date = '" +textBox1.Text.ToString()+"'"; thanks :) | |
<textarea name="primary_goals[]" rows="5" cols="23" style="height:145px; width:325px;"><?php echo $primary_goals; ?></textarea> textarea value is stored in database primary_goals[] array stores the values enterd in textarea.. how can i display this value again in this text area ![]() | |
Hello Community, I was wondering if it is possible to run a php file every week that checks if a user has activated there account after 7 days they will be deleted. Please help. Thanks in advance. | |
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click Dim cmd As New OleDb.OleDbCommand If Not cnn.State = ConnectionState.Open Then 'open connection if it is not yet open cnn.Open() End If cmd.Connection = cnn 'check whether add new or update If Me.txtReg.Tag & "" = "" Then … | |
**Hi there, I'm new to C++ (bet you guys don't hear that very often!!) and what I'm trying to do, in a console application, is this: 1. Ask for a number 2. If the user input isn't a valid float, get angry and go back to 1. 3. If the … | |
I have a website plus database with details like username, password and database name. Now I want to connect and use this database into another website. I tried to include, for example include('http://domainname.com/connect/db.php'); but unable to run query. How I can do this ? | |
Hi All , This is my code snippet [CODE]typedef struct { char *name; } CELL; typedef struct { CELL *cell; char *name; } INST ; int main () { INST **top_inst_list ; int i,j; char string_name[100]; printf("Enter number of insts in design\n") ; scanf("%d",&i); top_inst_list = (INST **)malloc(sizeof(INST*)*i) ; for … | |
Hello, I am receiving this error while trying to save information in admin page: http://localhost/RustoleumCustomCMS/administrator/%3Cbr%20/%3E%3Cb%3ENotice%3C/Masterlink/cgoods/PHP_SELF%20in%20%3Cb%3EC:%5Cxampp%5Chtdocs%5CRustoleumCustomCMS%5Cadministrator%5Cinput_berita_static.php%3C/b%3E%20on%20line%20%3Cb%3E174%3C/b%3E%3Cbr%20/%3E Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. If … | |
Hi, I am fairly new to VB.NET and i'm just wondering if anyone can help with a problem I am having. I am looking to pass some parameters to a vb.net application fwhen I call the app from another program (written in oracle forms). My question relates to how these … | |
Okay so here's the thing...I came across a code of my classmate that i'm not familiar with...the only thing i know is the printf is the same as cout...right??can someone explain this in iosteam.h form?? #include <stdio.h> void bubble_sort(long [], long); int main() { long array[100], n, c; printf("Enter number … | |
Hi this is a PSEUDOCODE. I don't know if is the right place to ask. Can someone takes a look of my pseudocode? I am not sure if I understood the assignment. Thanks! Equinox Nursery maintains records about all the plants it has in stock. The nursery needs a program … | |
On the jsp page; I have a logic:iterate tag which loops through data from an xml file and displays it within a drop down. How do i take and store the selected option from the drop down into the form-bean for processing. | |
hi guys, I had installed WAMP on my win 7 workstation, the PHP file is not executed or run in IE and firefox but works fine in Google Chrome. any ideas is greatly appreciated. Thanks. |
The End.