64,152 Solved Topics
Remove Filter ![]() | |
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 | |
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(); … | |
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 | |
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 … | |
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, … | |
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 … | |
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 … | |
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? … | |
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 … | |
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 … | |
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 … | |
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 … | |
**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 … | |
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 … ![]() | |
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 … | |
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 ? | |
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? | |
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 … | |
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 … | |
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. … | |
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 … | |
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 ? | |
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"?> <!-- … | |
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 … | |
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 … | |
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 … | |
-->>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 … | |
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 … | |
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 … | |
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"; } ?> | |
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 … | |
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. … | |
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 … | |
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 | |
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. | |
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 … | |
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 | |
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 … | |
Pls let me know how to add a record in a database using a dataset. vidhya[COLOR="green"][/COLOR] | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
## 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 … | |
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 | |
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 … | |
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 … ![]() | |
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 = … |
The End.