199,113 Archived Topics
Remove Filter ![]() | |
This script displays the way I need it to when I manually insert it into my script with the correct value for $expdat: <span style="background-color:yellow">Expires ' . $expdat . '. </span> How should I escape the quotes to be able to echo it from a mysql table? If I just … | |
I keep getting this error while trying to make my football tournament simulator, anyone know how I can solve it? or even just what it means! ------ Build started: Project: world cup sim, Configuration: Debug Win32 ------ main.obj : error LNK2019: unresolved external symbol "void __cdecl teamstructure(void)" (?teamstructure@@YAXXZ) referenced in … | |
I've created a jar file like this: jar cfmv Manifest.mf RoboPlot.jar RoboPlot.class ImagePlotter.class The manifest.mf file looks like this: Main-Class:RoboPlot For some reason, when I use this command to run it, java -jar RoboPlot.jar it tells me that the main class could not be found I also tried this: Manifest-Version: … | |
hi you know I'm doing a project on java instant messenger. I was thinking how would i implement it. should i use a seperate class for each component of the messenger. for example one class for its gui, one class for its chat diaglog, one for it jtree panel(to show … | |
Hello All I'm having a hard time trying to get pass this annoying error... the cool thing about this is that the user gets to see the error, and when i go to my dev environment everything works just fine.. Here is my code: [CODE] If ColaI.Recordset.RecordCount > 0 Then … | |
[CODE]<?php //set host, username and password for MySQL $dbhost = "localhost"; $dbuser = "root"; $dbpass = "root"; //connect to MySQL or return an error $conn = mysql_connect("$dbhost", "$dbuser", "$dbpass") or die('Could not connect: ' . mysql_error()); //set database name $dbname = "database"; //select database or return an error $dbselect = … ![]() | |
Hai frnds, Ahh...:?: I started learning PHP by my self frm somr Online tuts,And tried my first script.yes here it is [CODE]<html> <Head> My first PHP By my own </head> <body> <?php echo "My first program and its a failure" ?> </BODY> </html> [/CODE] But,The problem is..:confused: that iam not … | |
hello friends, i have two frames suppose A and B, when i open or make visible frame B from frame A by making a new object of frame B, I make invisible frame A by " [COLOR="Red"]this.setVisible(false);[/COLOR] " when i done with work in frame B, i need to close … | |
using c++ program,enter students record and perform the following activity: save search delete view edit print | |
I'm new to php mysql. i'm creating website for my community. help me out... My web page has one search page. user to feed few letters in the search box. it is proceesed and the result displaced in a table. here is my code [COLOR="Red"]for getting input : search.php[/COLOR] [CODE] … | |
I am trying to populate an ArrayList using the elements from a DataTable. I know I could do this using Loop, but I am trying to figure out how to using AddRange. Here's my code: [CODE]SomeArrayList.AddRange(SomeDataTable.Rows.Item(0).ItemArray)[/CODE] The problem is that I can pass the collection except for the Zeroth element. … | |
I am rather new here and have already a good (I hope so) question. I work with an access mdb When I run the program with the following code it gives an error “Nullreference exception unhandled” “the object… is not for an example of an object…” (very free translated but … | |
Hi I wrote a php program that shows a poll and people have to vote for it theres a table in my mysql database for polls: polls columns: [B][COLOR="Green"]pollquestion polloptions pollvotes pollvoters voterschoices[/COLOR][/B] [COLOR="Green"][B]pollquestion[/B][/COLOR] column will contain the question of the poll [COLOR="Green"][B]polloptions[/B][/COLOR] will contain all the options for the … ![]() | |
Another task from C++ forum is trivial in Python even taking handicap of not using Counter. | |
I am creating a runtime table which is taking values from the database, but the problem is that the all the rows of database table is showing in one column when running on browser, how to divide the data in two columns . the code is shown below which is … | |
Hello everyone! I have a code below to get a specific file from my computer into the vb.net application I am developing. Is there anyone who knows how to change the path? What if I will try to put the application on a different computer? Or rather getting a music … | |
Hey guys, I want to know one thing, for instance I am having a character array like this: [@@123124123123125@@@] where 123, 124 and 125 are one three-digit numbers and are NOT separate like 1,2 and 3. I want to know the number of times 123, 124 and 125 have occurred. … | |
Hello. Like as the title sayes. Im trying to edit key values in a Map/hashMap/treeMap. For example: [CODE] public class MapExample { public static void main(String[] args) { Map<int,String> mp=new HashMap<int, String>(); // adding or set elements in Map by put method key and value pair mp.put(12, "Two"); mp.put(11, "One"); … | |
the following program is to print all possible sum combinations of a number for example 6=1+5,2+4,3+3,1+1+4,1+2+3 12=3+9,4+8,5+7,.......,1+1+2+3+5 but i m not getting any output...maybe there's a problem with proper ending of loops pls help[CODE]import java.io.*; public class sumpermutations { public void main()throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int input,i,j,d=0,s=0,num=0,d1=0; … | |
Hi there Everbody, I am using Borland c++ 5.02 for my C projects but a funny thing happens at run time.Though the source code compiles minus errors, I can't get to see my output because the command prompt just appears and disappears straight away.What could be causing this? | |
Hi, I've noticed that in eclipse when you give "Exception" and click on exception it is redirecting to that link.. But actually according to java even if we give keywords or anything inside quotations(" ") it shouldnt be considered right? So is this a bug in eclipse? Thanks | |
Hi, I am using button column in datagridview , i want to change runtime change the text of button. e.g. suppose i have 5 rows and 2 columns (1st column is Test No. and 2nd Column is Start Test) in datagridview. Now am adding the button column to 2nd column … | |
I'm creating a form in MS Word for our customer service reps to fill out and then I want to have a submit button at the bottom of the page that will run a macro to automatically save the file in a desired directory and to use the customer's name … | |
Hey guyz Is this possible to get text automatically in textbox1 whenever any textbox is copied to the clipboard. I am talking to get it automaticaly. So if i copies abc then textbox1 value will be abc automatically (Not by clicking any button or form loading) | |
How can I get all the data in dropdownlist? For specific data, I encode: Dropdownlist.selecteditem.text. But how can I get all the data? Thanks in advance. | |
im pondering on some functions on MySQL especially on dates and times and i stumbled upon an idea where i can't find a predefined function that gets the next day of a specific day. For example: As of this post, the Date and Time is (GMT +8) : July 4, … | |
I am in a Java Programming class and our instructor has just assigned us our 1st project. The project would not be a problem if I understood the Java Programming Language, from the beginning of my Computer Science Schooling I have yet to understand this code and now that I … | |
hi, i am just wondering how to open a picture of a normal format. I know that you cant do it in the console. And i am using the compiler DEV-C++. Thanks | |
hi!, i have MDI form(Form1) which contain some toolstripmenu item. for example menu_101. if i do "Form1.menu_101.enabled=True" its working fine. my problem is i have a string variable like "menuname" which contain like menuname=menu_101 i need to enable or disable using this string variable like "Form1.menuname.enabled=True" please anyone knows let … | |
Not sure why this moderator or admin or whatever deleted my previous thread because it wasn't anything malicious.. My problem is that getfileattribute doesn't work for me.. and my code below is just a snippet of my entire program which is below that.. Dear Mod: I think you deleted it … | |
How can visible a button only when a check box of a Data Grid View is checked???? | |
Hi, I am developing database in Access & VB. My question is how can forms be displayed so that they automatically size to any screen whether it be 15" or 21", for example. Many thanks. | |
I am trying to make a snake program The code I currently have looks like this [CODE] import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.util.*; public class SnakeG extends JPanel implements KeyListener, Runnable{ private Vector<Point> snake = new Vector<Point> (5,2); private Vector<Rectangle> snakeRectangle = new Vector<Rectangle> (5,2); public void startGraphics … | |
Hi All, I have a simple question, I hope. Here's the overview of the problem: "There is a board game with 9 squares on it (three rows of 3 squares). Each square has a coin on it. The coins can be either heads or tails side up. You can only … | |
Well, I define a function gotoxy(). [CODE]void gotoxy(int x, int y) //定位到第y行的第x列 { HANDLE hOutput; COORD loc; loc.X = x; loc.Y=y; hOutput = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleCursorPosition(hOutput, loc); return; }[/CODE] However,whenever I use it.There is a flashing cursor which is ugly to see. I want to get rid of it.But I don't … | |
Now i have some images and i have a database (MS Access) i need to convert all images to !one byte array!(couse i have 1 column for images) and i save this array. Then when i need a picture i should take some pic on this byte array. umm i … | |
My not OO version of timer for work and pause time (but it does use attributes for functions, which are objects, to avoid global declarations in functions). | |
Hey there, i would like to do a rank of the averages, but when i click in the button ranking, it says that global name 'media1' is not defined. can someone help me please? thanks in [CODE]# -*- coding: cp1252 -*- import wx class duff(wx.Frame): def __init__(self,parent,id): wx.Frame.__init__(self,parent,wx.ID_ANY,'Duffan Formula', size=(400,370)) … | |
how can I edit the windows registry using vb.net | |
Dear All, I have a page here [url]http://183.78.169.53/tm/addAssign.php[/url]. You can select a value from the dropdown list and you will get a list of configurations with the word "Select". If you click on the "Select" word you will get a pop-up value with a list of checkboxes. So what I … | |
A couple questions I have for anyone that knows WINAPI as Im trying to learn it right now.. I usually program in .Net Managed and the basic console stuff. [B]First:[/B] Is there a designer for WinAPI like there is in Visual Studio Form App Editor? Or is it just outright … | |
Dear All, I got few tables as below. So then what I do on any time I will calculate the total points collected based on each table via some of this queries like below. What I am using now is the sum function. I am confuse should I like run … | |
hi I need to code a tool repaire exe file how I can write this reg key [HKEY_CLASSES_ROOT\exefile\shell\runas\command] @="\"%1\" %*" "IsolatedCommand"="\"%1\" %*" thank you | |
Hi, I want to send bulk emails to my registered users. is there is any software or should i done with the help of PHP. Need help & suggestions | |
What is the easiest way to check if a vector is empty? [CODE]#include <iostream> #include <vector> using namespace std; typedef std::vector<double> Vec; typedef std::vector<Vec> Mat; int main(){ Vec v; // this is what i consider to be an "empty" v if( /*check if v is empty here*/ ) cout<< "v … | |
I have unicode for Simplified Chinese. I would like to send an email with Chinese subject and content. The content works fine-which converts unicode to Chinese, however the subject alwasys shows unicode instead of Chinese. Can anybody help? Enclosed you can see a part of my code: [code] session = … | |
am about to start software engineering but am not sure of a better programming language to take..help | |
Hi, we have this school activity that is rush for tonight. I would really appreciate if somebody will help me. It would really mean a lot to me. So here is the problem that were tasked to us to create a C++ program. Problem: Write a C++ program to perform … | |
Hello i have a problem. I have a program which is supposed to download a file in a seperate thread, while the program checks file size. However i get this error when i try to debug (F5): Object reference not set to an instance of an object. Code: [url]http://pastebin.com/7QkyJYf7[/url] | |
I know this may be easy to many of you but it hasn't been so for me. I want to apply some exception handling in this simple code. My instructor skimmed over this. If I were in the world of visual studio I would have applied some isNumeric, and some … |
The End.