199,114 Archived Topics
Remove Filter ![]() | |
Hi group, After reviewing notes, I think I understand how to write the code to save data in the SQL Server. With that said, I want to understand the best way to arrange the data and upload it. My project is creating an order. I'll have the usual part number, … | |
I was wondering if it was possible to create a temporary variable in C# that will be destroyed at the end of the function so I can use that variable name elsewhere in another function. Can anybody help me out? | |
Hi, I am having a problem overriding methods in a subclass when they contain private methods from the master class. The is the master: package blabla; public class Person { private String firstName; private String secondName; private String familyName; public Person() { firstName = ""; secondName = ""; familyName = … | |
I have a warning that I can;t get rid of: Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated. I am pretty sure it is becasue I have not dimentioned the variable but how do you dimention an IO.memorystream. … | |
I have the following code which is in a class called customerModel. How do I call this method to another method inside another class called customerController? I am abit new to this and have been trying for ages but have had no luck. Please help thank you. public class customerModel{ … | |
I am trying this example from Byte of Python, Chapter 10. I can't seem to get this zip to work. I am not sure if the syntax for windows is written correctly or not. I have tried running from interpreter and as a script and both return Backup FAILED. Anyone … | |
**Reading two files?** I will be very grateful to get help about this script. Apython script which can be used to have a convenient format to print the bill in a store. Your script is reading two files: The first one is containing a list of lines and each line … | |
Hello all, I am working on a project and i need to basically copy a directory and its files to another location. I have figured out that xcopy comes in handy for what i want to do.but somehow when incorporated into my C code, it does not work. The code … | |
Hi Guys... Putting together a Tiny little app which shows VPN Details for use 'In-House' but for some strange reason my DataSet won't fill? Can anyone spot the mistake? :S private void Form1_Load(object sender, EventArgs e) { //XML Load of Document. This loads the XML Document and the value of … | |
Hi All, I have 5 product tables(product_table_1,product_table_2 and so on), category table and sub category table I need to get number of products mapped for each category. i.e count of products accross categories. Below are the table structure and the query which i have written, I need to optimize the … | |
Cek the following codes. It suppose to copy and paste the pictures - to folder photos/ . Yet, I haven't seen the message: "sucess copy file to photos" appears. only, "Data telah tersimpan" or "Successfully saving data to database". //Save Picture if (isset($_REQUEST['ok'])){ if (empty($_REQUEST['id'])) { $sqlstr = "INSERT INTO … | |
Hello Guys, I hav a Code For My Report in Daily .I don't know why there is nothing show the records. even though the Error not Popup. This is My code guys. Help Me Guys Dim rsReport1 As New ADODB.Recordset rsReport1.Open "Select purchase_date, BarCode, Price, ProductName, Quantity, TotalPrice From Dailyrecord … | |
Hello Community, I need help using the ftp_nlist command, what i'm trying to do is look in a directory but the directory is two separate string (eg. "New folder") and it is saying there is nothing in there but there is i'm sure the problem is because the two separate … | |
What exactly does it mean when an algorithm has a run time of Omega(nlgn) or Theta(n^2), etc. From what I can tell, Big O is used to show the worst case(?) while Omega is best(?) and Theta is either(in between O and Omega?. I'm having a hard time understanding this … | |
Hi All, I am hoping someone can help me with this and/or point me in the right direction. I am developing a quiz application and have run into a problem when the question being pulled from the database is a true/false question it produces an error, straight multiple choice questions … | |
i installed codeblocks on windows8 but when i compile one of c program error message mingw32-g++.exe: Internal error: Aborted (program collect2) the same problem happened on devc either what will l do | |
hi Guys Good day.. i have this two array that i want to combine: 1st array: when using print_r($productItems) Here is the result: Array ( [0] => Array ( [item_id] => 13 [quantity] => 4 ) [1] => Array ( [item_id] => 15 [quantity] => 1 ) [2] => Array … | |
Why does the following line of code generate error as " pasting / and / doesnot generate a valid preprocessing token"? Can someone please help #define comment /##/ int main() { comment printf("hello"); return 0; } | |
Hey guys, I have a silly issue that is bothering me. I am trying to read an unknown amount of lines from an input file and basically stop when I reach the EOF. I probably does'nt matter but the assignment is to create a simple lexical analyzer/scanner for a mini-subset … | |
How many bytes of memory is allocated when you declare: double* p1[10]; | |
Hello i have index.php file in root directory redirecting to a page. It's working perfect on my localhost but not the webserver. Also link to the root folder on the webserver lists files excluding the index.php Please i need help with this | |
Hey Lads, I Have a problem involving my save method , basically i want it to actually save a file which is of type JTable UnFortunetly its not , a Push in the right direction would be great. save.addMouseListener(new MouseAdapter(){ public void mouseClicked(MouseEvent e){ JFileChooser fc = new JFileChooser(); int … | |
hi i'm trying to connect a midlet running on my emulator (jwtk 2.5.2) to an apache tomcat server which has the servlet code. when i run the emulator instead of displaying the name i posted in the midlet code after connecting to the server, the screen displays the servlet code. … | |
Hi, I have a form in which there are 11 textboxes and two button controls(Just example) ,I want the tab key control to be in the textbox1 when the form loads ,and then If I press Tab Key from keyboard then it will be on second number textbox and so … | |
Basically, I am wanting to get the last userID which is submitted when the user enters their details and clicks the submit button. I have searched the internet and have made changes but still don't understand where i'm going wrong. I used the MAX statement to show the last user … | |
Hi, I seek your help as m stuck with an issue. I am uploading a css style file in a folder and need to provide the link to that css file in my aspx page. That is simple, but the twist is, the file name can be anything. That file … | |
hello guys, unfortunly my website got hacked few hours ago, and after investigations I found the was a c99.php file on my server so i deleted it and stopped any upload proccess and change back my chmod to default I want to ask how to prevent php files from being … | |
I am writing some jquery script that will run across a large amount of completely different web pages (different domains too) and it will surround certain words on the page with html tags to style them up - make them more noticeable etc. Here's some sample code I've written... $('body').ready(function() … | |
I am having trouble accessing an edgelist of a vertex(which is another object of vertex linked to it). Any ideas how? like for example i have Edge.cs, Vertex.cs, DirecGraph.cs In the DirectGraph.cs IDictionary < String, Vertex> dic = new IDictionary< String, Vertex>(); .. ... // Then add a vertex type … | |
Hi i'm having a slight issue with loading variable into another page without refreshing first page. So here's the deal. I have two windows(pages), when i click a button(agents) in the parent window a child window opens with a list of agents from mysql database. Here are the parent and … | |
I have a question,,, I create 1 form, and in this form I add 5 control checkbox, namely: Checkbox1 = cek1 Checkbox2 = cek2 Checkbox3 = cek3 Checkbox4 = cek4 Checkbox5 = cek5 I want to ask, 1. how to count the number of checkboxes are checked.? 2. how to … | |
Hi, I want to make this field "Hidden" and want to select by default last option "Both". ho w i can do this? <input id="memberRoleIntlSeller" value="supplier" name="userrole" style="border: 0px none ;" onclick="document.getElementById('userrole-error').style.display='none';changesubmitbtnname('yes');" type="radio" <? if($_REQUEST['userrole']=="supplier"){?>checked="checked"<? }else{echo "";} ?> /> <font class="normal"> <?=$suppliers_title?> </font></div> <div class="buyOrSellBox"> <input id="memberRoleIntlBuyer" value="buyer" onclick="document.getElementById('userrole-error').style.display='none';changesubmitbtnname('yes');" name="userrole" … | |
So having an error when I select my button in the gridview. Was told to use the gridview row command which I have, keep getting an error about the App_Data subdirectory. protected void gvUnlock_RowCommand(object sender, GridViewCommandEventArgs e) { String userName = e.CommandArgument.ToString(); MembershipUser usr = Membership.GetUser("userName"); if ((usr != null) … | |
Hi Every One, I Was Wondering If Anyone Could help me With This Problem Or Not... I Just Need A Simple Program, With The Least Amount Of Using Arrays, And Loops... And My Main Problem While Writing It Is When I Want To command The Program To Act Like a … | |
class variables have a niche to fill: ***visibility to a class and its instances, and to no one else. Typically, this means being visible in class-method definitions and instancemethod definitions, and sometimes at the top level of the class definition.*** I understood that. But didn't find any example of the … | |
i wanna send a username and password securely from php page(Apache server) to the Java api (Tomcat server). That api should verify them and open the api in the browser. How can i achieve it guys??? I tried to use webservice but the response from the api is sent to … | |
html body mysql result: <? $sqlcomments = "SELECT * from sellercomments where Status=1 and SellerID=".$_REQUEST['SellerID']. " order by AddedDate desc"; $resultcomments= mysql_query($sqlcomments); if (@mysql_num_rows($resultcomments)!=0){ ?> <br> <? while($row_comments = @mysql_fetch_array($resultcomments)) { ?> <div align="right"><img src="../<?=$row_sellerdetails['AboutUsImage']?>" width="40" height="40" border="0"></div> <?=$row_comments['CommentBy']?>] to <a href="index.php?SellerID=<?=$_REQUEST['SellerID']?>"> <?=$row_sellerdetails['idName']?></a> <span style="color:#000000"><?=$row_comments['Comment']?></span> <br> <? } } ?> … | |
I am trying delete data from table, the form method is post. The url http://localhost/RustoleumCustomCMS2/administrator/input_image.php?mode=delete&id=0 (passing mode = delete and id = 0). I wonder why nothing happen. It suppose to delete a row in the database. include('../includes/koneksi.php'); $id = isset($_POST['id']) ? $_POST['id'] : ''; $judul = isset($_POST['judul']) ? $_POST['judul'] … | |
I am trying to get each elemnt of a text file with 13 integers in one line, each seperated by a space, into each slot of an array, any idea how to do this? | |
Hello! I need to create a project using C#. I must think about something linked with the word puzzle. If anyone has any ideas i am here to see them. Please help me! Thanks in advance! | |
What should i specialize in ( Network admistrator Vs database administrator)? | |
And the microprocessor? I want to know exactly how this all works. Wikipedia claims that an instruction set architecture determines the data, registers, addressing modes, memory, etc. It also claims that it dictates the opcodes on a microprocessor. Wikipedia says "Microarchitecture" is the way a given ISA is implemented on … | |
Hi guys Good day, this codes works perfectly for me. <?php // This block grabs the whole list for viewing $product_list = ""; $sql = mysql_query("SELECT * FROM product ORDER BY date_added DESC"); $productCount = mysql_num_rows($sql); // count the output amount if ($productCount > 0) { while($row = mysql_fetch_array($sql)){ $id … | |
In the following program I declared "long" for a, but still getting incorrect negative output after the 1860th term (all are supposed to be positive). What is the cause? int main() { for (int i=1; i<=2000; i++) { long a=i*i*i/2-3*i*i/2+3*i-1; cout << setw(3) << i << "\t" << setw(8) << … | |
Base on my understand a mediator is a central authority that varies the interaction between objects in the same group. So can I classify the code below as a mediator? package com.mediator; public class BaseMediator { public void store(){ System.out.println("store"); } public void retrieve(){ System.out.println("retrieve"); } } package com.mediator; public … | |
Flash game is ok in IE but in Google Chrome or Firefox the game opens up in a specified window size but the game itself which is flash, is a small image at top left within the window size. for example like placing a postage stamp on top left hand … | |
hi, I have two sql strings being executed at the same time one of which is an update statement and the other a save statement. The save statement works but the update statement does not. Here is the error i am receiving System.NullReferenceException: Object reference not set to an instance … | |
A script I have that checks if an external HDD is connected, which has a prompt to mount the drive, with the option 'retry' and 'cancel'. If I click 'retry' it says it has found the drive, even though it's not connected, how can I fix this ? | |
can anyone tel me why the dropdownlist does not execute on textchanged ? <%@ Page Language="VB" AutoEventWireup="true" CodeFile="index.aspx.vb" Inherits="Index" %> <%@ Register TagPrefix="Ridwan" TagName="TabControl" Src="~/Assignment/Controls/TabControl.ascx" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>JJ Shop | Home</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link href="style.css" rel="stylesheet" … ![]() | |
need an insert query for my code , i wrote code to add table rows having textboxes, dynamically, e.g yoh have only passed HSSC exam then you have to fill 2 levels of education SSC, HSSC......or say you have passed Phd , then SSC,HSSC,BS, MS, Phd, you have to fill … ![]() |
The End.