199,114 Archived Topics
Remove Filter ![]() | |
I'm trying to find the highest score from 6 scores taken from a text file. The code I have works, but it looks so inefficient. There should be a way to do it with a for loop, for (int i = 0; i < count; i++) if (max > score) … | |
I have this source code below where by I have a gridview and on edit/ add a formview appears as a popup. My problem is that the insert and edit are not working. Any ideas on how to fix this problem?? <cc1:ToolkitScriptManager ID="ScriptManager1" runat="server"></cc1:ToolkitScriptManager> <asp:Panel ID="newpnl" style="display:none;background:#F0F0F0;" runat="server"> <div style="position:absolute; … | |
<form action="index.php" method="post" enctype="multipart/form-data"> File: <input type="file" name="image"><input type="submit" value="Upload"> </form> <?php //connect to db mysql_connect("localhost","root","")or die(mysql_error()); mysql_select_db ("databaseimage")or die (mysql_error()); @$file =$_FILES['image']['tmp_name'];//kjo eshte e lidhur me <input type="file" name="image"> if (!isset($file)) echo ("Please select an image"); else { $image= addslashes(file_get_contents ($_FILES['image'] ['tmp_name'])); $image_name = addslashes($_FILES['image']['name']); $image_size = getimagesize ($_FILES['image'] … | |
I'm new to PHP and trying to populate the contents of a flat file to a dropdown box. Clearly haven't a clue what I am doing, but here is what I have tried so far. The first part is there to confirm that I am actually opening the file and … ![]() | |
Hi guys... I have this page I'm trying to get to work, but no matter what I do it doesn't want to insert a new post into the database. Help? Please? <?php //ansluter till databasen $opendb=mysql_connect("****", "*****", "****") or die(mysql_error()); mysql_select_db("*****") or die(mysql_error()); //skriver information till den angivna tabellen om … | |
Hello everyone,I'm new in MIPS programming, can anyone show me how to write code for these two programs. 1)Write a procedure called order that accepts two arguments. The first argument is the address of the array and the second argument is the index of an array element i. The procedure … | |
Hi I managed to get the tutorial from the below link to work. http://www.blueicestudios.com/chained-select-boxes-using-php-mysql-ajax/comment-page-11/#comment-34199 I would love to know how to edit this script so as to get the first dropdown to populate an already existing dropdown without the loader image and without the hiding of any dropdowns. I would … | |
I need some serious assistence with finding the solution to this problem, it has plagued me for some time now and im just not getting the big picture. I need to move the elements in a 2d array according to the user input, but the way i have figured out … | |
i need help i thought i was doing it right but later when i looked at data it turned out to be something else I have 4 lines of code that i want to convert to single line list comprehension `newLst=[] for each in os.listdir(locationTxt): if os.path.isdir(os.path.join(locationTxt,each)): if each not … | |
Apologies if the title is bit confusing, had to keep it concise. Okay so the xml document looks like this <students> <student sid="S2208"> <fname>Ben</fname> <lname>Doe</lname> <scourses courseid="DSA" mode="full-time"/> <scourses courseid="INT" mode="part-time"/> </student> <students> <lecturers> <lecturer lid="L1101"> <fname>Dohn</fname> <lname>Joe</lname> <lcourses courseid="DSA"/> <lcourses courseid="INT"/> <lcourses courseid="ACT"/> </lecturer> <lecturers> Using the courseid attribute … | |
Good day, i'm new in C.. can you give me some idea in how to program a moving cursor in the output screen and highlight the text... because i will use this in my coming final project in school.. we will make a system in TURBO C.. hoping for reply... … | |
hi php geniuses :) a simple question for u ppl here's my code and i want to upload all files i.e. images, videos, audios, ppt, pdf etc but here ican only upload the images successfully.. when i upload audio file it gives following error. please check my code and suggest … | |
hi php geniuses!! just wanted to ask that is this possible to embed ppt slides onto the webpage without converting the ppt into flash or without using skydrive??? please suggest a simple and clear solution.thanks in advance... | |
Hi guyz, My problem is when i am saving a record in MySQL Database there is an error occured "Incorrect datatime value 3/20/2011 for COLUMN DATE at ROW 1" I used Date as my DataType in MySQL server? Can anyone fix my error ?? | |
Hi All, I have Code on PC1. and Access DB on PC2 . I have shared Folder on PC . And very much able to access from PC1 with full ownership. Now I was trying to connect Msaccess from PC1 using below code. cnn.Provider = "Microsoft.ACe.OLEDB.12.0" cnn.Open "Data Source=\\192.168.0.1\Public\tels.accdb;Persist Security … | |
Which command is used to copy all files having the string chap and any two characters after that to the progs directory? | |
Hello everyone Anybody to help me with this please How can make an app that will check the server/URL if it's Online/offline using visual basic 2010 I know that i can just ping it using the CMD but i want something that will be in the app i'm aiming to … | |
Hi there, I have an array of unsigned chars that hold hex values, I’m interested in values [5] and [6] of the array. Say [5] = 0x5b = 0101 1011 and [6] = 0x7b = 0111 1011 I'm trying to get all of [5] and the first half of [6], … | |
Hello, I was trying to combine some commands but having a little trouble. In a single command I want to call the script dvdcoll2 and accept input from dvdcoll1. Then I want to put stdout into dvdcoll3, and stderr into dvderror. How do I string together four commands in a … | |
I have the following scenario - User clicks on an image to search for a particular brand vehicle. The value of that image must then go the hidden box where I will post the value returned to another form. I just can't seem to get the value returned... My code... … | |
can anyone help me? i got problem count the monthly installment. //class class vehicle { public: char model[20], color[20], brand[20]; float price, deposit, rate, monthly_installment, newprice; int term; public: void calculate_installment(); }; class car:public vehicle { private: float installment, newprice; public: void calculate_installment(); }; //main program #include <iostream> #include <string.h> … | |
Not sure what I am doing wrong but let me try to explain my issue. I have a single combobox on my form that I use to load external settings. If I load, lets say, 100 settings in to this combobox then I clear the combobox via Combobox1.items.clear(), then try … | |
I think I can learn a lot from any answer to the two questions in this post. OK, I’ve got a large object. That object has attributes and does things. Those attributes also do things. MOST of what they do is sit there like a list, int, or np.array and … | |
Hello: I have the following div popup window: <div id='PopUp' style='display: none; position: absolute; height: auto; left: 13px; top: 10px; border: solid black 1px; padding: 10px; background-color: rgb(255,255,225); opacity:.95; text-align: justify; font-size: 12px; width: 70%; z-index:1200;'> <iframe id=\"mate\" frameborder=0 scrolling=yes width=100% src='client_edit/edit_client_data.php?customerid=$customerid' height=\"790\" align=\"left\"></iframe><br /> <div valign=\"top\" style='text-align: right; display: … | |
Hi all, Im having trouble with a program wheree a person starts in the middle of a 7 foot bridge. Heres the description: Someone is standing at the center of a bridge that is 7 ft bridge long. Their stride is exactly one foot. They can’t control the direction they … | |
I have specified the path variable as C:\Python27\Lib\site-packages;C:\Python27\Tools\Scripts. To recall this on MS DOS I used python myScript.py'so the program till reponds error syntax please could you help me. | |
it seems i can't output my username value from my database. All it gives was also a value of "username". So if i'm echoing my variable $users which is holding the rows of my username from my database, it strangely outputs "Welcome, username". I tried also with my password but … | |
Hi there, I want to check whether a file is a link or not. Eg: I have a directory structure as follows: mkdir -p abc/bcd/cde/def touch abc/bcd/cde/def/file cd abc/ ln -s bcd link Now, abc/link/cde/def/file is actually not a file. Its a link Now I want to remove this file … | |
I cant figure out why my second switch stament is not working. Can you please help? I am still new at this still. // Project 8.4. Guesses the number the user enters between 1-100. #include <iostream> #include <ctime> using namespace std; char H,L,Y,N; int UsersNum, YesNo, HighLow, Re_Use; int n … | |
#include<iostream.h> #include<conio.h> #include <stdlib.h> int main() { int *ptr[5]; int a[] = {1,2,3,4,5}; //declaring and integer array char b[] = {'a','b','c','d','e'}; //declaring and Character array *ptr=a; //assign values of integer array to integer pointer array for(int i=0;i<5;i++) //by looping, Print values of array a, pointing to pointer { cout<<"A["<< i+1 … | |
guys, i am working on my final year project,ONLINE RECRUITMENT SITE FOR EDUCATIONAL INSTITUTES, and i am in big trouble , first they accepted my project but now they are saying that WHATS DIFFERENT OR INNOVATIVE IN YOUR WEBSITE ? THERE ARE MANY WEBSITES ON WEB ABOUT ONLINE RECRUITMENT ? … | |
Hey guys i have been assigned a work of designing a online shoe shop. I am stuck on the part of saving the chosen products on a session vaiable (rather an array) can anyone help me out to give me an idea how to proceed. | |
I would like to know how to open any file by using the codes!!! | |
i am trying to do something like this but it gives me error that **cannot convert int to string** , even the field which i am accessing from db is int and i parsed it into int but why ? here is my code: userId = (int)com.Parameters["@ReturnValueUserId"].Value; Response.Write(userId); SqlDataSource1.InsertParameters["@userId"] = … | |
*Hi, Greetings to u all ... I am new to this website as well as in C++. I got a question in c++. I need to remove decimal point from amount (declared as CString) Eg. Amt is 145.76 I need the final output as 014576 and same to be stored … | |
hello! i have one button . i want when i click it it will print preview a microsoft document from my desktop. is it possible? how to do it? thank you~ | |
Hi I'm currently going through some questions, basically studying up one bits for my operating systems unit and my particular weakness is algorithms and 'working out' type questions such as this one below. Consider the following snapshot of the system, with 4 types of resources and 3 processes, P1, P2 … | |
hello! for the newline we have the fuction nl2br() but what about BOLD text.. underline or italic ?! is there a way to convert that rich text in to HTML? [B]bold[/B] into <b> bold </b>... ?? | |
Hi all I have a problem in paging datagrid .. I have a datagrid and i have template columns in it - is that affect on paging ? , so why paging doesn't work . i tried the following code after allowing paging to datagrid: private void DataGrid1_PageIndexChanged(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs … | |
Hi, I am stuck on this two sqldatadapater and sqldatareader,we can display records in listview by using this sqldatadapter and sqldatareader.my question which is more effecient and secured to use?does this two matters in populating data in database? | |
I made this code which outputs . ... ..... ...*****. ....***... .....*..... but its supposed to output . ... ..... .*****. ...***... .....*..... Any ideas what im doing wrong? To output the triangle myChar1 = * myChar2 = . myLen = 3 myChar1 = input("Select first character: ") myChar2 = … | |
the value of length is seven, word in file is hello, chosen_letter can be any that user guesses. chosen_letter is char ofcourse. my problem is when we type in character 'l' for chosen_letter and it only counts it once. also, the if-loop in the second while loop doesnt work. please … | |
I want to display message box. I don't know why it is not working. Instead of "Already Registered..!!" message it displays " Duplicate entry 'test' for key 'nom' " . Thanking you in advanced. $query = " SELECT * FROM Humeur_log WHERE prenom = '".$prenom."' AND nom = '".$nom."' AND … | |
I need help with this program where i need to create a book record program where the program can view, update, add and delete books. Now this is the main menu: MAIN MENU 0. Exit 1. Search for a book 2. List books of a category 3. List books in … | |
This is my Java code at the moment (using netbeans IDE), I have tried to set th value of cell 4,4 to A in the following code, `outputCadence.getModel().setValueAt(items.A[5], 4, 4);` , however this does absolutely nothing, I'm a bit of a noob so I'm not sure if I'm missing something … | |
Please, help me about bisection method in C +? Obtain the local minimize of the function f(x) = X5-5X3-20X+5 on [-3,O] and [0,3] by bisection method >> and run it in a loop help me++++ | |
SYTAX ERROR ON UPDATE STATEMENT, PLZ HELP, I CNT FIGURE IT OUT GUYZ Private Sub SubmitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SubmitButton.Click Try conn.Open() mystring = "UPDATE ClientLogIn SET Password = '" & PasswordTextBox.Text & "' WHERE ClientID = '" & ClientIDTextBox.Text & "' AND Username = … | |
Hello, I'm looking into making an account validator for wordpress which runs off a validator for another server. Shown here: http://www.minecraftwiki.net/wiki/User:Oxguy3/Minecraft.net_API It's running in Wordpress and I just wanted to ask for your opinions on how to do this. The idea I had is that the username they signed up … |
The End.