199,114 Archived Topics
Remove Filter ![]() | |
I wrote this simple code in devc++. On compiling, the computer is showing syntax error at line int P = rand(); ... while the same line, if I write in the main function gets compiled easily. Please tell me what's going on! [CODE]#include <stdio.h> #include <stdlib.h> #include <math.h> struct poclick … | |
I have googled alot exampled to create auto complete jcombo box, found many libraries also codes but they are pretty much complex, has any one idea to create this as easy as possible???? | |
After login (if succeed) a user will see the result of statement "select test_column from table_test " execution. table_test is the only table of database 'test' which i have created in NetBeans 7.0.1. test_column is the only column. class '[B]MySQLTest[/B]' creates the gui for login , connects with the database … | |
Hello community, I wanted to see if the following scenario would be possible with VB. We have 13 different locations. What I want to do is open an access database. I want to open a table in access and sort it by a particular column by date. Once sorted I … | |
Hey guys, Just as the title says, I want to implement using an excel spreadsheet as an argument for a python script. I already have the layout of the spreadsheet, but I want to be able to assign the variables in my python script from specific cells of the spreadsheet. … | |
HI I have a list of around 3000 letter combinations and I would like to turn each one into a .php file, but every file will have exactly the same content at the beginning. Does anyone know of a way to do this that doesn't involve me individually naming each … | |
Hi, i work with SQl Navigator and Oracle and i want to buy Mac laptop, but i am not sure if Oracle 11g is going to Work in Mac. So the question is: If SQL navigator 6.2 and Oracle 11g can work in Mac OS. Thank you. | |
Greetings I've got this code that tries to update a sortable list (not really a list since I don't use ordered lists, but divs). The thing is, I tested in another area of my site and it's working fine. When moving forward to another list, it just doesn't seem to … | |
how can i make softwares for mobiles in vb | |
Hello All, Its been a week since I started learning Python, and its been wonderful. This is the problem I am trying to solve. There are 20 text files (In1.txt, In2.txt,....,In20.txt) in a folder. Each text file has 150000 rows. Each of the 150000 rows has a vector of float … | |
Hi, I am trying to write an applicaiton which will run 2 zip files (one after another) with minimum user input. I can get the file to run but it is then waiting for the user to select "Unzip" to unzip the file. I was wondering if there is a … | |
I am trying to make a program that will list all the National Heroes of our Country. We used the switch statement. [CODE]#include "stdafx.h" #include "iostream" #include "stdio.h" #include "conio.h" using namespace std; int main() { int choice,desc; char repeat; cout<<"\t\t\t\tPhilippine National Heroes\n\n"; cout<<"[1]Dr.Jose Rizal\n"; cout<<"[2]Andres Bonifacio\n"; cout<<"[3]General Gregorio Del … | |
I can not run this program in my C++ compiler(Dev c++). [CODE]#include <iostream.h> #include <conio.h> #include <graphics.h> #include <ctype.h> #include <stdlib.h> #include <stdio.h> int main() { // clrscr(); int gd = DETECT,gm,errorcode; //Requesting auto-detection. //Initializing graphics and local variables. initgraph (&gd, &gm, "d:\\bc3\\bgi"); //Path where graphics drivers are installed //Read … | |
I have a class (DataBuffer) that has functions that return objects of DataBuffer but when I'm calling other class functions from within the function that returns the object of DataBuffer, the internal values are not being set after the function returns. So, basically (if you made it through that first … | |
Sometimes it is hard to locate the exact line you want to modify if there are so many lines having the exact same codes/text. example: #this is x a=0 #this is y #this is yy a=0 this is z a=0 My question is, is it possible to find something unique, … | |
Greetings all, I am working on a website with data I only want logged in users to see. I currently have it where once they have logged in successfully, they can browse the website, and if they are not, they are directed to the login page. Sounds great. However, if … | |
just asking for assistance with the menu items as they are set to uppercase M, R, C, X in the case statements how can this be modified to accept 'm' or 'M' as valid input. [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace PracticalTest5 { class … | |
I have a databound listbox. The data source also has a bit field associated with it, I would like for listbox items that have a bit field value of 1 (true) to show bold and the rest to remain non-bold. Any idea how this can be done or is it … | |
Could Someone PLease Help Create Forums... Some Reference Codes PDFs? I don't owe a top-level domain just free hosting so here it comes... I'm a 15-yr old boy and I want to learn how to make [U]forums with users log-in[/U]... gonna style it put some ads(which is the thing I … ![]() | |
Hi, for some weeks now, i have been trying to develop an [B]attendance system with php and mysql. [/B] I HAVE LOOKED EVERYWHERE!! what i have done is this: user select date (calendar). date is processed in php page. if attendance has not been filled,then new attendance sheet is provided. … | |
Ok so problem is that I'm using an XML generated intro for my website. My intro(index.html) is in the root directory with website home(index2.html). Issue is that I want the website to be loaded directly after intro in the same browser tab/window/page instead of a new one. Intro is using … | |
Here is my code: [CODE]Imports System.Data.SqlClient Public Class Form1 Dim iConnect As SqlConnection Dim iCmd As SqlCommand Dim iRdr As SqlDataReader Private Sub dologin() iConnect = New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\UserData.mdf;Integrated Security=True;User Instance=True") iConnect.Open() Dim strLogin As String = "SELECT username, password FROM tableusername WHERE username = '" & userbox.Text & "' … | |
I want to know whats missing in my code...i couldnt draw a multiple boxes [CODE] Console.Title = "Checkboard Draw"; Console.WriteLine("{0, 40}", "Checkboard Draw"); CDrawer Canvas = new CDrawer(800, 600); int irange = 0; bool bError; do { try { bError = false; Console.Write("\nEnter the size of the square: "); irange … | |
I'm saving queries in my DB as strings here's my code: [CODE] $SQLcode="SELECT * FROM ... WHERE field="blah blah" HAVING field2<$x"; $query = "INSERT INTO tblQ (qId, qName, description, SQLcode) VALUES (NULL, '$qName', '$description', '$SQLcode');"; [/CODE] the problem is inserting a string into the $SQLcode, if I do it this … | |
Hey guys! i have yet another problem and cant find a way around it :O i have this function in the class Platform [CODE] void Platform::set_clips(SDL_Rect platClip[], int i) { for( int j = 0; j < i; j++ ) { platClip[j].x = 0; platClip[j].y = 0; platClip[j].w = random_number_w(); … | |
Hi friends.. I am trying to display message box using server-side code. I have written code in buttons click event and Page Load Event. It is as follows : [CODE] Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load TextBox1.Text = "I Enjoy ASP.NET" Dim myscript As … | |
after tokenising my string i am the tokens to the method below and counting the tokens. if token number is one, that means i have one command only and pass it from execvp.. if i have a second token then pass that token from the second execvp.. This gives me … | |
Hello Guys! I am suffering with xcode compiler while i am compiling the below code. At first the problem was on getch( ) and ungetch ( ) , then I have been advised to use getc/fgetc Now the error massage is: error: expected identifier or '(' before '{' token Thank … | |
hi frds if anyone knows how to import and export table details from db in the form of excel sheet please guide me.note it should cum as xls sheet | |
[CODE]import os import urllib from datetime import datetime import workerpool class DownloadJob(workerpool.Job): def __init__(self, fa): self.fa = fa def run(self): f = open(self.fa + '.txt','w') f.write('Example Note.......') f.close() pool = workerpool.WorkerPool(size=5) def workfile(): range1 = 51 range2 = 102 fam1 = 555 fam2 = 833 ranges = range2 -range1 fams … | |
Hi, I have used this code to make a php file with php code in it: [CODE]<?php $fn = 'connect.inc.php'; $string = "<?php $mysql_host = 'localhost'; $mysql_user = 'root'; $mysql_password = ''; $mysql_database = 'main'; @mysql_connect($mysql_host, $mysql_user, $mysql_password) or die("There was an error connecting to the server"); @mysql_select_db($mysql_database) or die("There … | |
Hello everyone, i had a question on how to pull certain content from a website using PHP and cURL and dislay it on a page? So far from the web, this is all i was able to find out, but this just saves the coding into a text document. Lets … | |
Hi guys, I have a problem on my php code and url passing. [B]What it should do:[/B] There are 3 forms of the php file, the [B]"email"[/B], [B]"item1"[/B] and [B]"item2"[/B]. The [B]email form[/B] is hidden by default on page load, it will only be visible if any of the [B]item1[/B] … | |
I have created these 2 pages to generate reports. [B][U]teller_reports.php[/U][/B] [CODE] <form id="form1" name="form1" method="post" action="daily_transactions_report.php"> <label>DailyTransaction Reports<br /> <br /> DATE </label> <input type="text" id="demo3" name="date" maxlength="25" size="25"/> <img src="../images/cal.gif" onclick="javascript:NewCssCal('demo3','yyyyMMdd')" style="cursor:pointer"/> <p> <label></label> <label> <a href="tcpdf/examples/daily_transactions_report.php"> <input type="submit" name="button" id="button" value="Generate" /> </a> </label> </p> </form> [/CODE] [B][U]daily_transactions.php[/U][/B] … | |
Pls help me find the problem. All input fields work except for the upload. It doesnt take the file to directory I want. I have error scripts in case there's an error but alert errors are not popping, I dont know why... Help... [CODE] if(isset($_POST['submit'])) { $upload_errors = array( UPLOAD_ERR_OK … | |
Hi Basicly have been googling for a long time now and can't seem to find a clear answer. I want to bind to forms to each or something like that. I have an main form and display a child form from it. But I want to make it one form … | |
Hi, i am trouble to find out this problem. I have develop an windows application in that one form contains the datagridview(see attachments). When i click on Download it will displayed lable on datagridview displaying message Downloading Please wait... . When i am clicking on download a am enable datagridview … | |
hello, i wrote some commands in notepad and saved it as .sql and i m running these commad at my sql by command- [COLOR="Red"]mysql>source C:\Program Files\MySQL\MySQL Server 5.0\bin\script.sql;[/COLOR] then its run.. but hat to do if i write it without giving whole path. i ren this command-- [COLOR="Red"]mysql> \. filename[/COLOR] … | |
hi this is my first qery here.i joined a software company.my stream is .net i am from a maths background,id dontknow any thing at allabout c and c++.i joined a crsh course in c and completed nearly 60%.what topics should i stress in c and c++ so that i can … | |
Hello, I have a problem with update in MySql database. In a university system a student apply for what is called a petition then the admin signs it and adds a note. When the admin signs for the first time and enters his note it works. But when the student … | |
[CODE]private String [][] personalDetails() { logger.debug( "personalDetails()" ); String personArray [][] = { { "John", " Muray", "1-10-1982" }, { "Peter", " Kamau", "2-5-1987" }, { "Mary", " Wambui", "8-5-1988" }, { "Bethu", " Kips", "8-8-1987" }, { "Cetera", " Omosh", "2-5-1987" } }; return personArray; } /** * Demonstrates … | |
Hi I am using the following code to populate text boxes based on a drop down list index change event [CODE] Private Sub DropDownList1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As WinControls.UI.Data.PositionChangedEventArgs) Handles DropDownList1.SelectedIndexChanged Dim connString As String = My.Settings.strConn Dim conn As New SqlConnection(connString) Try conn.Open() Dim qry As String … | |
hi im trying to make a "settings" that they are on c++ and saving on text documents here is the code [CODE]#include <iostream> #include <fstream> #include <string> #include <sstream> using namespace std; int main(){ fstream first("firstt.txt");; fstream File("file.txt"); string firsttime; string blah1 = "enable"; string blah2 = "disable"; getline(first, firsttime); … | |
hi I want to resize the panel that is on the NORTH/Button1 (PAGE_START) of the Border layout. how can I get broad panel?? Is it possible or not?? [ATTACH]22085[/ATTACH] | |
I am facing a strange error when I execute a php mail script. Its related to server could not verify the sender. I see following error: Failed to add recipient [email]email@domain.com[/email] [SMTP: Invalid response code received from server (code:550, response: Verification failed for unrouteable address Sendor verify failed)] Would you … | |
Hi everyone, is it possible to add/edit/save picture in MS Access DB using ADO, I have this code If (MsgBox("Are you sure you entered correct data?" & vbNewLine & "Save now?", vbYesNo + vbQuestion, "Confirm Save") = vbYes) Then squery = "": squery = "SELECT * FROM tblEmp" Call ExecuteCommand … | |
i have a folder that contains csv excel files that have numbers in the first column labeled 'x', second column label'y', and third column labeled'z'. i was trying to take all of the numbers in the x and calculate the averages and std, take all the numbers in the y … | |
[CODE]#include<iostream> #include<cstdlib> #include<conio.h> using namespace std; int main() { int i,j=0; cout<<"1"; for(i=1;i<=55;i++){ if(j>12) break; else{ if(i%2==0||i%3==0||i%5==0) j++; } } getch(); return 0; } [/CODE] This is my code .I want to print the numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, … | |
Hi .. How can i display data from database base on a specific date and time... im thankful if someone help me | |
Hi guys., I have trapped in a very critic situation. I need to upload files without any restriction of file size. I have a uploader developed using Flash and PHP. I have changed the settings in php.ini as follows upload_max_filesize = 100M post_max_size = 128M memory_limit = 512M max_execution_time = … |
The End.