199,112 Archived Topics
Remove Filter ![]() | |
Hi How are you guys Im new learner in php and im coding a small script for orders and customers and i hve problem lets say I have table with name of : Orders id : int(11) - AUTO_INCREMENT pizza : text - not null and order form is like … | |
I am writing some learning code to convert an XML file to a JavaScript array. So far I can convert from XML to JSON with this: [code] <?php $xmlStr = simplexml_load_file("xml/galleryXML.xml"); $jsonStr = json_encode($xmlStr); ?> [/code] I don't know and can't find a way to convert to a JavaScript array … | |
This code: [CODE] int array1[5] = {1, 30, 90, 40, 3}; char array2[] = {125, '}'}; cout << array1 << endl; cout << array1[0] << endl; cout << array1[1] << endl; cout << array1[2] << endl; cout << array1[3] << endl; cout << array1[4] << endl; cout << array2 << … | |
what i am trying to do is when i click the div it decreases to width=100px and when i click it again it changes it to original size but i am getting the problem in the second part where i want to re size it to original size i known … | |
Hi, How can I point or target my access database in a safe way? Meaning, if I'm going to change my project to another computer, it will not cause any connection problem to my database. Thanks in advance. :) | |
I'm very new to programming and I'm trying to make a program to compute the circumference of a circle when you give it the radius, but I keep getting "fatal error LNK1169: one or more multiply defined symbols found" whenever I think I fix it, it just says the same … | |
I'm trying to make my website compatible with internet explorer. I've been thinking of making it compatible for IE and then Firefox and then I'll be good. It works for google chrome but there's some very very annoying little things which the new IE does. The images look much bigger … | |
I am using a PictureBox to display images. I have SizeMode set to StretchImage. While this does indeed show the whole image, it is of coure stretched. Is there a way to prepare the image to be displayed so it will fit correctly in the PictureBox? I just want it … | |
hi all guys, I have just started CURL programming in vc++.But I don't have a good place to start reading more about it.I do understand the basics of it,but I want a procedural tutorial to learn more about it. Is there any proper site to learn from basics to higher … | |
when i click the link the the div is resized to 100px .. but again if i click i want to the the div to be same as before (800px) using the same sliding animation ..how can i do that [CODE] #ee{ border:1px solid #00F; height:100px; width:800px; position: absolute; } … | |
I'm using Visual C# Express 2010, on Windows XP SP3. I took pain to define the var collBlock in the class directly, however, when I try to use it, it works once and then NOT. Google searched all and tried a lot of solution. Error stil comes up. The code … | |
Hi All, I am new to the site, and also to PHP and MySQL, so please go easy on me for asking what may be an obvious question for many. I am wanting to store the data from a sign-up form in a MySQL DB, but I cannot get my … | |
hi guys i have created a database for a friend which seems to be running ok (for now) my front end im using vb.net . what i need to do is make alterations to the same database which is on my computer ie add fields which i can do then … | |
Hey , yeah. I was wondering if it is possible to hide all desktop icons EXCEPT my application's shortcut ? If it is possible, please tell me how . It is the best if you can provide the code for me. As im a very noob in coding cause im … | |
I have made a simple java program that gets a user to fill out a form, and then checks if all the parts were filled out. I am now having trouble with how to send the file in an email to a set users email account. How could I do … | |
okay, I've got another problem. How can I obtain content of cascade style, using javascript? I know, there's a code document.getElementById('id').style.border='5px solid blue'; for example, but I need to do reversed operation, not to change style, but obtain it. I hope I've described my problem clearly enough enough ;) Thanks … | |
I have been working a program that allow the user to perform the following task, add student, display student, delete student, and find student. I need help with add student name, gpa..etc to the arraylist. But I keep getting either compiler messages or other error message. I have been trying … | |
i want to draw a line in windows form in c# with d help of mouse....by clicking on button line should b displayed on panel or form.....nd d first line should nt b disappeared..... plz rply soon..... | |
Which compiler is needed for the following code? [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; import javax.mail.*; import javax.mail.internet.*; public class Main extends JApplet implements ActionListener{ JTextField firstNameArea; JTextField lastNameArea; JTextField emailField; JTextField phoneNumber; JCheckBox myselfBox; JCheckBox someoneBox; JTextArea messageArea; public void init (){ setSize (250,300); setLayout (new BorderLayout … | |
Hi all, I am currently trying to pass an arraylist as a parameter for adding and deleting a student from the arraylist. Well, I have just learned about arraylist. Is it possible to pass an arraylist as parameter. Your help will be highly appreciated. Thanks. My codes below: [CODE]package student; … | |
[CODE] .MODEL small .STACK 100h ; defines a stack 100h (256) bytes long .DATA String DB "Hello World!",'$' ; variable declaration .CODE Start: mov dx,offset String ; point dx to the storage location for the first character mov ah,9 ; dos function for string output int 21h Stop: mov ax,4C00h … | |
[CODE]public class GAME { boolean gamestatus = true; double amounts[] = {0, 0.01, 0.5, 1, 5, 10, 11, 14, 20, 300, 600, 150, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28 }; Briefcase briefcase[] = new Briefcase[27]; public void casesSetup(){ for (int i … | |
hi i got a problem when try to use pointer and struct..somehow ive manage to compile my coding but the main prob is that the output is not what ive keyed in.. [CODE]#include <iostream> #include <conio> #include <string> #include <stdlib> void printtable(); void input(); void calculate (); void scorecard(); void … | |
i want to do accessing files and folders in listbox and when i click in any folder then thier subfolder displayed in other listbox ......... reply sooooon ....................... magdy ....................... | |
Ok so i have this little problem, i have to find all the elements in an array that are duplicates ex:{1,1,1,2,2,3,4,5,6} 1 repeats it self 3 times and 2 two times things like that this is what i have so far... [CODE] static void Main(string[] args) { int contador = … | |
Can this code of mine be more efficient? [CODE]import java.util.Scanner; public class Game { public static void main(String args[]){ boolean gamestatus = true; //Boolean to control the whole game double total = 0; //Temporary variable for storing the average Banker banker = new Banker(); //creation of the object banker; int … | |
Hi plz help me with a code that can detect when a pin number is entered in reverse. and alerts the user that he has entered pin number in reverse ..thanx | |
I have a project where I need to retrieve data from MS SQL Server and format it into an Excel Spreadsheet. I am using the OfficePartner component to try and make this easier, but I'm having a hard time figuring out how to get the VB help and Excel Object … | |
I have no idea what went wrong with my most recent code, but I suspect it has something to do with the following so I'll start there. Did I do something wrong in this? [CODE]cards=['1','1','1','1','2','2','2','2','3','3','3','3','4','4','4','4','5','5','5','5','6','6','6','6','7','7','7','7','8','8','8','8','9','9','9','9','A','A','A','A','K','K','K','K','J','J','J','J','Q','Q','Q','Q'] import random random.shuffle(cards) h1=[] for card in cards[1:7]: h1.append(card) cards.remove(card)[/CODE] | |
[CODE]#include<conio.h> #include<stdio.h> main() { char name[20]; scanf("%s",&char); if(char=="name") { printf("u entered name"); } else { printf("not name"); } }[/CODE] but it is printing not name when im entering name plzz check for the problem | |
[CODE]#include<stdio.h> int main() { char ch; if(ch = printf("")) printf("It matters\n"); else printf("It doesn't matters\n"); return 0; }[/CODE] Here according to me, the expression inside "if" will be true becoz we have used "=" sign and not "==" sign. but the output is "It doesn't matters".how is it so? | |
Hi guys.. The method createScreenCapture() in Robot class made me to post this question. The method works absolutely fine and it does the functionality of capturing screen as it asked to do. Now the problem comes here when i take the snapshot of my screen while i play a game. … | |
Hi! I have recently started using linux and I was recommended gcc compiler. I have written a basic program just to see if it works. And it doesn't. I am trying to compile it with Terminal, and with the following command :[CODE]gcc ~/Desktop/C++/test.cpp -o testing)[/CODE] My program it responds with: … | |
-First post Woot!- Alright, here's the problem; I'm building a _very_ simple Terminal-like program. The only problem is that in a normal Terminal (be it in Linux or Windows' "Command Prompt") there is no definitive number of inputs that you can input, for instance; you can either type "dir", or … | |
Hello. I am developing a class manipulater in which I add and delete some fields and methods. I have a main class which is connected to GUI. Whenever I change a class, I have to restart the GUI in order to get the changes applied. I would like to gently … | |
Hi, :) I am a newbie here and this is my first post. :?: I always wonder whether there is a better way of putting this or that or is there a work around for that, etc.... :idea: So, its better if we can have an uncluttered discussion topic that … | |
Hi team, i write some logic in my page. here i am using this $x is getting by POST method... Logic :[CODE] if($x>10) { $amount=$amount+400; } [/CODE] It is working fine. Hare the problem is after entered into the page...incase user refresh the page that logic repeated. i dont want … | |
Methods: public class metod { public static String computation1 { JOptionPane.showMessageDialog(null," Area of a Circle"); String n = JOptionPane.showInputDialog(null,"Enter a Number"); int num = Integer.parseInt(n); int form1 = (3.14 * (num*2)); JOptionPane.showMessageDialog(null,"… is "+form1); } public static String computation2 { JOptionPane.showMessageDialog(null,"… of a Trapezoid"); String h = JOptionPane.showInputDialog(null,"Enter Height"); int … | |
How to encrypt and decrypt database plz help me its very urgent | |
Somebody can help me? I want to edit my register page, i want to add new value to my database. Like Bank name, Phone number, address and other, below here is my existing register.php. [CODE]<?php function _generate_user_id(){ $istnieje = false; do{ $losuj = mt_rand(100,999).mt_rand(0,9).mt_rand(0,9).mt_rand(100,999).mt_rand(0,9); $result = mysql_query("SELECT `id` FROM `xeon_users` … | |
Hi everyone. I spent a lot of time figuring out how to get my code to check for user errors and types. I finally got it set up properly, but now I'm getting an error. A number is required on my input. If someone doesn't enter a number or leaves … | |
Hi all, I am trying to extract some text from a HTML page using regex. [CODE]<html> ...some code.... <B><FONT color="green">TEXT to BE EXTRACTED 1</FONT></B><br> <P> <B><FONT color="green">TEXT to BE EXTRACTED 2</FONT></B><br> <P> <B><FONT color="red">TEXT to BE EXTRACTED 3</FONT></B> ....some code.... </html> [/CODE] I want to make a script which will … | |
Hi, Am having only one check box. I wants to pass checkbox values through hyperlink. I needs to know, either it is an checked checkbox or an unchecked uncheckbox. Based upon checked checkbox, i carry out my remaining coding part. [CODE]echo "<br>"; echo "<table>"; echo "<tr><td colspan='2'><font color='blue'><b>download PDF document:</b></td></tr>"; … | |
Hi All experts, I am facing problem with mysql view. I have migrated my database from oracle to mysql qith views, View on Mysql is created , but when i try to execute query it takes a long timw , some times it time qout server connection, Any body help … | |
I was installing Turbo C on my PC and it says "Make sure you insert \TC\Bin into your DOS path". Now how is that done. | |
Umm I created a code which will create many results with specific ints(integers).I use Code::Blocks as my compiler.The code works inside the compiler,but when I go to the saved folder and run the batch file this is what happens-I enter a number and press enter and it simply closes itself!@What's … | |
[CODE] #include<stdio.h> #include<conio.h> #include<string.h> int x; char name[20]; main() { printf("Exercise no. 10 ESN 211-9A MWF 7:30-9;30\n\n"); printf("Enter your age:\n"); scanf("%d",&x); if (x<18) printf("UNDERAGE!\n\n"); else if (x==18) printf("STUDENT LICENSE POSSIBLE\n\n"); else printf("PROFESSIONAL LICENSE AVAILABLE\n\n"); printf("Enter the result of your drug test: \n"); scanf("%s",&name); if ( name == "positive" ) printf("HOLD … | |
I'm currently working with the NotifyIcon, and ContextMenus in the notify icon, and was wondering if it is possible to call an event when something is dropped onto the icon. For instance, if I had document.docx, and I dragged it from explorer onto the icon, it would then save it … |
The End.