64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for HunainHafeez

i created database in mysql along with 3 tables but when i opened C:\ProgramData\MySQL\MySQL Server 5.5\data then i found on .frm files and a single .opt file so where is my originalo datbase and data ? my datbase name is kustkht

Member Avatar for HunainHafeez
0
195
Member Avatar for Tinnin

Hello. I'm doing an exercise whereby I need to test if a word is a palindrome. My code for the function is as follows: #include "test_palindrome.h" using std::string; bool is_it_palindrome(const string s) { bool palindrome = true; for(string::const_iterator iter = s.begin(); iter != s.end(); ++iter) { string::const_reverse_iterator rit = s.rbegin(); …

Member Avatar for WaltP
0
156
Member Avatar for kshahnazari

Im so so new to php and sry for my begginer question . <?php $Sal = "HI"; if (preg_match("[a-zA-Z][a-zA-Z]",$Sal)) echo "hi"; ?> this is my code , why doesent the preg_match run and echo "hi"? thank you

Member Avatar for ryantroop
0
141
Member Avatar for volkang

Hi, I encounter an assertion error on my thesis while trying to write a line to a file. The related code is pasted below. The funny thing is that this code runs maybe 5000 times and i get the error at 5001 th time. Thank you very much for any …

Member Avatar for volkang
0
352
Member Avatar for triumphost

So I've started learning makefiles today for a project I've been working on. The project uses OpenGL and GDI. I decided to dive right into make files and so far, everything compiles but at the very end, it gives a bunch of undefined references. Thing is, when compiled in codeblocks, …

Member Avatar for vijayan121
0
2K
Member Avatar for venividivici

Hi, my daughter is struggling a bit with maths and logic and I was thinking of doing some programming with her hoping that a different approach to the field might help a bit. I've had some look at Java syntax and I think I should be able to write some …

Member Avatar for JamesCherrill
0
163
Member Avatar for Tinnin

Hi everyone. This regards exercise 5-6 of "Accelerated C++". I am asked to rewrite a function so that instead of using erase() to remove an element (of a failing student), I should copy the elements (of the passing students) to the beginning of the vector and then use resize() to …

Member Avatar for Tinnin
0
117
Member Avatar for WDrago

This seems like a pretty basic question, but I'm still learning Java and all the nuances of OOP. I have several classes in my program and they all need access to the same ArrayList (the one with all the data in it.) What's the best way to share that list? …

Member Avatar for WDrago
0
107
Member Avatar for geetajlo

Hi every1 ! i want to make a search through a datagrid using a textbox. i want the search to be like in the cell phone, i.e whenever u type an alphabetfor e.g P it retrieves all names with P. i just want the textbox to search in one column …

Member Avatar for derpking
0
327
Member Avatar for Yorkiebar14

Hello, I have created a website with register, login and logout features where the user information is stored in a mysql database. I have already setup a profile page where the user can edit his/her profile but I need to know how I can make it so any member can …

Member Avatar for Yorkiebar14
0
529
Member Avatar for mmcdonald

Hey all, This website is a directory and the problem is authenticating users to edit a server, even after they've logged in. The idea is to stop any SQL mix-ups due to my weak code (I'm learning PHP). When they click 'Edit' next to the server after logging in they …

Member Avatar for mmcdonald
0
203
Member Avatar for HibaPro

i have this connection string <connectionStrings> <add name="Tendering_Pro" connectionString="Data Source=HABOUSH-PC\SQLEXPRESS;Initial Catalog=TenderingProgram;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings> <system.diagnostics> AND THIS MY CLAAS : Imports System.Data Imports System.Data.SqlClient Imports System.Configuration Public Class BuyNewTender Private conn As SqlConnection Private _MSG As String = "" Private _ProjectTenderingNO As String = "" Private _TenderingNo As String …

Member Avatar for lolafuertes
0
177
Member Avatar for Ravish.Ahmad.Khan

**Following is the code snippet to print the series:-** *111 211 311 121 221 321 131 231 331 112 212 312 122 222 322 132 232 332 113 213 313 123 223 323 133 233 333* **But there's some mistake in the code and it gives ArrayIndexOutOfBoundsException.I'm not able to …

Member Avatar for Starstreak
0
173
Member Avatar for ayub05

I didn't use wordpress or joomla or drupal for my blogsite.Here i see all plugin codes built for wordpress. but these codes does not work at my site. But how can i add Social bookmarking button code to my own created blogsite? my website is built by html, php, css …

Member Avatar for LastMitch
0
246
Member Avatar for John DB

How can I terminate resources in a safe way when JFrame is about to close? - If I put terminate() in the a finally block it runs before windowClosing(). - If I put terminate in windowClosing() it can't be accessed from an inner class. I am aware that I shouldn't …

Member Avatar for John DB
0
195
Member Avatar for HunainHafeez

i have tblStudents and tblDepartments, so which keys a weak entity (student_department) would have ? studentid and departmentid ? is it so ? and both foreign keys will work as a composite primary keys ? is it ?

Member Avatar for HunainHafeez
0
129
Member Avatar for Labdabeta

Hi, I am wondering if there is a somewhat simple way to output extended ascii values in c. Basically I am thinking actually about unicode characters, stored in ints. Is there an easy way to do this, or would it require a custom gui console?

Member Avatar for Labdabeta
0
240
Member Avatar for AutoPython

Hey! I've recently come back to C++ to tackle another project, but I've run into a problem I can't figure out. #include <iostream> #include <string> #include <fstream> #include <direct.h> using namespace std; int main() { string variable = "AwesomeName"; mkdir ("test"); ofstream write ("test\\" (variable+".txt").c_str() ); // this the place …

Member Avatar for AutoPython
0
4K
Member Avatar for squeak24

I am working on a open source script at the moment, but I am struggling on one final aspect of the script. I am a bit of a newb to PHP at this level, I have a working knowledge of PHP and MySQL, but this seems to be a little …

Member Avatar for squeak24
0
232
Member Avatar for HunainHafeez
Member Avatar for HunainHafeez
0
102
Member Avatar for shena

Hi there experts, I would like to know that is there any way to filter data in vb6 (data grid, flex grid or etc) as we do in excel spreadsheet? If no, can anyone suggest how to filter records in data grid pls? I'm nw to this. Please help anyone. …

Member Avatar for V0lcan1c_A5h
0
1K
Member Avatar for PM312

I have 3 tables in which one column name is common for all i.e PRNO .I want to write SQL query to select everything from Table1 where PRNO is 500, Table2 where PRNO is 500 , Table3 where PRNO is 500 . “Select * from Tab1,Tab2,Tab3 WHERE PRNO=500” Getting Error …

Member Avatar for PM312
0
165
Member Avatar for HunainHafeez

i am sending parameters to sql server 2008's store procedure but confuse that which way to send parameters mean we got 2 ways , parameters.add(parameter) and 2nd way, parameters.add("@parameter",sqldbtype.datatype).value= value so which one to use and y ?

Member Avatar for HunainHafeez
1
96
Member Avatar for HunainHafeez

i am using web developer 2008, my project web.config file has no starting tag for connectionstring, like <connectionstring> but has end tag only , and when i tried to create one then error oocured that it exists already , i did my best check the code section <?xml version="1.0"?> <!-- …

Member Avatar for HunainHafeez
0
206
Member Avatar for iEpic

I'ma noob and need some help from the pros. For school I gotta make a program to convert numbers into roman numerals 1-10 and return an error if its not 1-10. Got it all pretty much figured out but I want to know how to have it where if someone …

Member Avatar for JamesCherrill
0
218
Member Avatar for Aia

Self-teaching Java, I am following a video tutorial about simple windows. Encountered a warning error using the example provided in the tutorial. Here's the piece of code. [CODE=Java]import java.awt.Frame; import java.awt.Label; import java.awt.AWTEvent; import java.awt.event.WindowEvent; public class HowdyByeWindow extends Frame { public static void main( String[] args ) { new …

Member Avatar for flash901
0
941
Member Avatar for Geli19

Hello Everyone. I am having trouble creating new objects in a loop. I am using: DataType *Ptr = new DataType (); I use this in the beggining of the loop then end the loop with: delete Ptr; Each constructor and destructor gets called each time the loop is executed.... but …

Member Avatar for Geli19
0
5K
Member Avatar for Bile

-->>Hope all is well... -->>I'm trying to print all records in my list view on my form I went through the tread http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/431714/print-from-mshflexgrid-in-vb-6.0 and tried a couple of eamples it was cool and nice but what comes difficult to me is that my form has List View and not the …

Member Avatar for AndreRet
0
2K
Member Avatar for bigredaltoid

package mypackage; import java.util.Scanner; public class twinPrimes { public static void main(String[] args){ int userNum = 0; int attemptCount = 0; while (userNum < 3){ System.out.println("Please enter an integer greather than three."); Scanner in = new Scanner(System.in); userNum = in.nextInt(); attemptCount++; if (attemptCount == 3){ System.exit(1); } } int count …

Member Avatar for bigredaltoid
0
160
Member Avatar for venkyb47

I am unable to send a string from php page to java script page. I am storing a string in a php variable and I want to send this value to java script page on image icon click. Here is the source code: timetrack.php $activityid = $getResult->fields('ACTIVITY_ID'); // Now consider …

Member Avatar for venkyb47
0
344
Member Avatar for Tko_1

I am trying to redirect if working.php is present in folder other wise echo no file. this script only echo's no file. thanks. <?php $filename = 'working.php'; if(file_exists('$filename')) { header( 'Location: welcome.php' ) ; } else { echo "NO FILE"; } ?>

Member Avatar for Tko_1
0
116
Member Avatar for trishtren

Hello, iv looked around google and have found it is possible to put an applet into a jframe. The problem i am having is that my applet is to be hosted online, what i want is to take the applet that is online and display it from a swing or …

Member Avatar for NormR1
0
229
Member Avatar for dan.nitschke

Hello, I am trying to make a variable (name) so it only accepts alphabet characters (eg. DaNiEl) not $@@4234. Below is an example of the code i'm trying to use. I have tried a few functions, to no avail. Can someone please post the answer (in code form). Much Appreciated. …

Member Avatar for vegaseat
0
5K
Member Avatar for HunainHafeez

i have a table for cities and data which has entries in LACS , now i want to copy that table from one database to another, is it possibe ? i googled but couldn't find reliable solution mean i have fear to loss data .s o anybody , plz suggest …

Member Avatar for HunainHafeez
0
146
Member Avatar for HunainHafeez

when i use sha 512 on password field then it says k pasword field cannot be empty but when i remove sha512 constraint then it works and with any other hash it also works why ? and plz suggest me some good secrity hash etc to apply on password field

Member Avatar for HunainHafeez
0
767
Member Avatar for sharathg.satya

can anyone provide any site with plenty of examples to learn PHP. i got [url]www.w3schools.com[/url] but i didnt find good examples in them. please help me.

Member Avatar for emoviefreak
-1
122
Member Avatar for rvijaya

Hi, this is my basic program for an assignment but I can't figure out why I am not getting the desired output for the grade printed and why there is a repetition of the Enter Student Name at the end before the program loops again. I have also included a …

Member Avatar for rvijaya
0
146
Member Avatar for sean.downes.96

Can anyone explain how to remove an item from a listvuew. Ive tried: ListView6.SelectedItems.Remove() However that doesn't work, it has the little blue line underneath it. Does anyone else have any ideas? Thanks

Member Avatar for bnitishpai
0
162
Member Avatar for sundog1

Hi Guys, **<-- Newbie Here!** I seem to have an issue with an INSERT INTO statement when trying to add some textbox data into a DataSet and then update the backend table called 'cashOrders' in a Access Databse. The Following code is being run from the 'Save Button' private void …

Member Avatar for sundog1
0
203
Member Avatar for VidhyaThiyagu
Member Avatar for ahmedyakson
-1
2K
Member Avatar for rahul.ch

I noticed that when equals() is used to compare between two String objects it works fine. But when I compare two StringBuffer objects or two StringBuilder objects or mix of String and Builder and Buffer, equals() doesn't work even though I give same string value to the two objects being …

Member Avatar for rahul.ch
0
323
Member Avatar for jane.frasier

I have an Access database that I upsized with the wizard wishing to continue using Access for the Front End. I want to be able to connect to the SQL database without having each computer setup for the DSN. I added this to the autoexec macro. Function autoexec() On Error …

Member Avatar for AndreRet
0
182
Member Avatar for alleybye

Hi I have a question, I want to transfer all nodes to a datarow Here is my XML <Employee> <person> <firstName>Jon</firstName> <lastName>Johnson</lastName> <skills>Singing</skills> <skills>Dancing</skills> </person> </Employee> THE HEADER TABLE SHOULD LOOK LIKE THIS WITH RELATION Profile_ID | Firstname | Lastname| 10 | Jon | Johnson | AND THE DETAIL TABLE …

Member Avatar for alleybye
0
299
Member Avatar for sonu611

Hi all, I was looking for a way to execute windows batch file from java code, and I was able to do this with the following code. [CODE] Runtime rt = Runtime.getRuntime(); Process proc = rt.exec("cmd /C " + "path" +exec.bat"); [/CODE] The batch file refers to some other files …

Member Avatar for shahbaz07dbit
1
1K
Member Avatar for rahul.ch

import java.util.*; class SampleA { } class SampleB extends SampleA{ } class SampleC extends SampleA{ } class VectorDemo { public static void main(String r[]) { Vector<SampleA> v = new Vector<SampleA>(); v.add(new SampleB()); v.add(new SampleC()); SampleC rect = v.get(2); } } The output says "Incompatible types. Found SampleA, required SampleC. SampleC …

Member Avatar for rahul.ch
0
229
Member Avatar for flynismo

## A quick overview: ## After the login form is submitted, it is handled by a seperate file, which checks the form and sets session variables if the login was successful. The script works fine...it will log me in, and redirect me to the proper page as well as set …

Member Avatar for flynismo
0
316
Member Avatar for jacksantho

Hi, Any body please help me out, am facing the following error Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1704 bytes) in C:\xampp\htdocs\phpexcel\Classes\PHPExcel\Style\Borders.php on line 517

Member Avatar for riverspart
0
217
Member Avatar for triumphost

I've been trying to do this for some time. I can do it with a vector but with a const void*, it crashes badly! My bad code: Bitmaps::Bitmaps(const void* Pointer, int Width, int Height, uint32_t BitsPerPixel) { Pixels.clear(); memset(&Info, 0, sizeof(BITMAPINFO)); width = Width; height = Height; size = ((width …

Member Avatar for triumphost
0
187
Member Avatar for marifard

Dear, I have 2 tables, first table name: directory fields: id, name, surname num1, operator1 (operator id from operator table), num2, operator2 (operator id from operator table). (num2 and operator2 may be left empty) second table. name: operator fields: id, operator I made a page to display the data from …

Member Avatar for LastMitch
0
170
Member Avatar for london-G

Hello, I have 3 combobox and I want to find them in my table "class" and retrieve the ID. I am currently having trouble with the following code: public void retrieveClass(String time,String stage, String teacher){ Connection con = null; ResultSet rs = null; java.sql.PreparedStatement st = null; Properties conProps = …

Member Avatar for london-G
0
215

The End.