199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for CreatorZeus

is it possible to use a string array in mysql using the set data type and add a valuse to it, like a list of names?

Member Avatar for diafol
0
155
Member Avatar for RobRTaylor

Not sure if the title accuratly reflects the question, but here it goes. I have a dropdown (a ComboBox) with some text. Simple enough, when the dropdown is opened and text selected, it puts the text in a text box below. If cbCallNotesPrefills.Text = "Sample Text" Then txtCallNotes.Text = "Sample …

Member Avatar for RobRTaylor
0
216
Member Avatar for tibormarias

Dear Members/Guests, First of all, I'd like to tell you, the following website I am going to talk about is not created by me, so that's why I am having some problems editing or developing it. The problem is, that I have duplicate content on my website's subpage, have a …

Member Avatar for LastMitch
0
355
Member Avatar for rohanbajaj222

my url keys are coming from database , say if my url is abc.com ,i have used a rewrite rule RewriteRule (.*)/(.*)/mcqs/(.*)/(.*)/(.*)\.html mcq.php?mcq_id=$4&page=$5 in this rewrite rule , first four (.*) are coming as url keys from db, but problem is that in address bar am able to add any …

Member Avatar for LastMitch
0
376
Member Avatar for dp121307

So I made the login program that reads the usernames and password from a file (names.txt). The program works correctly. But my problem is I want to ask give the user 3 chances to get the username right before the program closes and 10 chances to get the password right …

Member Avatar for dp121307
0
204
Member Avatar for nitin1

#include<iostream> #include <cstdio> #include<string> using namespace std; typedef struct node node; struct node { int value; node * child[26]; }*root; node * newnode() { node * nn; nn=(node*)malloc(sizeof(node)); nn->value=0; for(int i=0;i<26;i++) { nn->child[i]=NULL; } return nn; } bool insert(string s) { node * temp=root; bool xx=false; for(int level=0;level<s.length();level++) { int …

Member Avatar for deceptikon
0
129
Member Avatar for Sanchixx

Hello, how do i add an hour to time with DATE_ADD in DATE_FORMAT? Here is my code : <?php session_start(); include('includes/main_funcs.php'); $db = db(); $reponse = $db->query('SELECT name, message, DATE_FORMAT(time, '%H:%i') AS forTime FROM chat ORDER BY ID DESC LIMIT 0, 10'); while ($donnees = $reponse->fetch()) { echo'['.$donnees['forTime'].'] <strong>'.htmlspecialchars($donnees['name']).'</strong> : …

Member Avatar for Sanchixx
0
176
Member Avatar for karlcunanan

Hi Vb.net geniuses! I am a complete beginner in programming and would like to seek assistance regarding this very small issue of mine :( It is perfectly working if the CardID is only numbers, but if I mix letters with it this error is showing "*Conversion from 'string' to 'boolean' …

Member Avatar for Reverend Jim
0
3K
Member Avatar for MRehanQadri

Can't find out the error. #include <iostream> using namespace std; struct node{ int id; int *next; }; node * get_data(int ); node * get_data(void); void insert_node (node **, node **, node *); void display_data(node *); int main(){ node *head=0, *tail=0, *newPtr=0; newPtr = get_data(); insert_node (&head,&tail,newPtr); display_data (head); return 0; …

Member Avatar for deceptikon
0
194
Member Avatar for CreatorZeus

I have been having problems with this code and i cant find out why I am trying to add a new element to an array. it says it goes throu butwhen i check its empty: $sql="UPDATE $title SET arole = CONCAT_WS(',', arole, '$name') WHERE op = '$name'"; if (!mysql_query($sql,$con)) { …

Member Avatar for broj1
0
167
Member Avatar for Dani

I have an associative array that is many levels deep. I want to convert it to an indexed array (i.e. remove the key names). I don't want to flatten it; I want it to remain a nested array with all of the values intact. What's the best way to accomplish …

Member Avatar for Dani
0
5K
Member Avatar for killer88
Member Avatar for killer88
Member Avatar for guilherme.carvalho.9250

Hello everyone, I'm new to php and i'm developing a website for a school project. I need to implement a combobox with some options, for exemple, if I choose "Alimentation" it appears a table with the specific fields for this option and If I choose other option it appears a …

Member Avatar for guilherme.carvalho.9250
0
3K
Member Avatar for xHellghostx

For example let's say we have the property called Customer that returns a value of name String name; <== Global Variable public String getName() { return name; } public String setName(holdingName) { name=holdingName; } and a constructor called Match public FullName(String realName) { holdingName = realName; } Can I do …

Member Avatar for stultuske
0
320
Member Avatar for killer88
Member Avatar for killer88
0
597
Member Avatar for Ketsuekiame

So, in answering another thread on this forum, I decided to do some performance testing on String. Mainly because a friend of mine said "You should always use `new String` it's the fastest!". I wasn't convinced and argued in favour of StringBuilder, at which point I was directed to some …

Member Avatar for TnTinMN
0
252
Member Avatar for Squidge

Strange question i am afraid, i have a friend who is after information on a database called "Profile". Does anyone have any links to this, as I have been unable to find anything

Member Avatar for Squidge
0
150
Member Avatar for Octet

Hello Daniweb, I'm beginning to learn Python, which I hope shall be a useful tool to help with server administration and the such. I am however having some problems, I'm sure this is a very simple problem but I can't see what is going wrong. #!/usr/bin/env python3.3 validSelection = 0 …

Member Avatar for Octet
0
210
Member Avatar for kimangel

Hi experts, kimangel is here again, doubling my time. Thanks alot for helping. I have problem with two tables, when I click cmdSearch button searching for Employees_IdNo error occur "The specified field 'Employees_IdNo' could refer to more one table in the FROM clause in your SQL statement. below is my …

Member Avatar for AndreRet
0
179
Member Avatar for riahc3

Hello Im trying to make a small program but when I get the .EXE from the Debug or/and the Release folder it complains about a DLL missing (RestSharp) which is avaliable in those folders if I move it to (for example) C:/ How can I "embed" the DLL into the …

Member Avatar for TnTinMN
0
374
Member Avatar for SakuraAssassin

im having trouble displaying the 10 most common word pairs. im sure it is just a matter of sorting and taking the data but i am unsure on how to do this? private static void generateOutput() { for(Entry e : result.entrySet()) { System.out.println("Symbol: " + e.getKey()); Map<String, Integer> count = …

Member Avatar for SakuraAssassin
0
175
Member Avatar for capton

Hello everyone! I know QObjects doesn't support copy constructors but how can i create a copy of a QObject. I want to make changes to the object while still maintaining the original copy. Thanks

Member Avatar for deceptikon
0
277
Member Avatar for Ashenvale

Hi! I'm searching for a way to delete an Item from a collection in a list box... Listbox1.Items.Add(Textbox1.Text) Listbox2.Items.Add(Textbox2.Text) Listbox3.Items.Add(Textbox3.Text) Adding an item in a listbox is easy, but deleting it, the way I want it to.. T_T nah! dunno.. or maybe i'm just plain stupid. I want the user …

Member Avatar for G_Waddell
0
156
Member Avatar for jaimin4829

Hi i am developing a website to downlod softwares online.From general page of softwares user is allowed to download software after login or register.after login it must be go to user panel's main download page with taking id of software on which a person has clicked..i code below at login …

Member Avatar for hometownnerd
0
205
Member Avatar for milkman93

Hey guys, In the following code I'am trying to change the shape of the box and also be able to move it around the page with the cursor keys. Here is a link to a site hosting the files: http://mobile.sheridanc.on.ca/~agnihopr/WebDev2_A3/ HTML Code: <!DOCTYPE html> <html onkeypress="boxReset()"> <head> <title></title> <meta charset="utf-8"> …

Member Avatar for AleMonteiro
0
320
Member Avatar for FelineHazard

Hi Guys, I am writing a Perl script that needs to initiate various http (or https) requests. Before doing so, I would like first to verify that a given string is indeed a valid URL address. I would like to do so (preferably) **without** using regexp. Reason being, that URLs …

Member Avatar for FelineHazard
0
760
Member Avatar for capton

Hello, my Qt app gives the following run time error > HEAP[testApp.exe]: > QInvalid address specified to RtlFreeHeap( 0D920000, 0F29F1C0 )uoted Text Here But it's free from error when i comment out these lines table->setCellWidget(currentRow,4,wid); table->setCellWidget(currentRow,2,++wid); table->setCellWidget(currentRow,1,(++wid)); Please i need help seriously. for(int i=0; i<currentSem->courses->count(); i++) { QVBoxLayout *vlayer = …

Member Avatar for capton
0
216
Member Avatar for kshahnazari

Hey guys I just learned how to work with header files but I have a simple error . I suggest you guys dont look at gameboard.cpp because it just runs fine with ubuntu and no errors with it. my problem is when I run the main it gives the eroor …

Member Avatar for Moschops
0
283
Member Avatar for cisumma

Hello I have a XML DB. I write the first element. I can not get the entries to (fragments) to write to the Database. I know I do not have the error handler setup right. The error stops the process on the transform. Is there some debugging techniques I could …

Member Avatar for cisumma
0
867
Member Avatar for sedirox

I need help trying to figure out how to insert into a multi linked list. I know how it works with a linked list with only one piece of data but not 2 pieces with 2 pointers. Essentially what I want to be able to do is creat a multi …

Member Avatar for rioeduardo
0
1K
Member Avatar for cutiexhubx_1

hi everyone..can u please help me with my project? server to client quiz using java... please.. i really need it..

Member Avatar for M4trixSh4d0w
0
176
Member Avatar for riahc3

Hello Im having problems removing the ALT+0160 character from a string. iswhitespace doesnt seem to work. How can I manually remove it?

Member Avatar for M4trixSh4d0w
0
94
Member Avatar for Ayesha.Shahnawaz

I've got 2 flex grids in one VB form and I wanna connect both of these Flex Grids to 2 different tables in MS Access. This is how my form looks like: http://i213.photobucket.com/albums/cc228/rose_408/form_zps100c290c.png Here's the code for the service flex grid (FlexService): Private Sub Form_Load() Set conn = New ADODB.Connection …

Member Avatar for AndreRet
0
278
Member Avatar for somjit{}

im learning some algorithms , and trying to come up with a version for Quick find using union find. the algorithm works like : 1. get user input for size of the array (the array holds the data on which quickfind will work) 2. create and initialize the array based …

Member Avatar for somjit{}
0
190
Member Avatar for wuzere.crewzz

this is example of my data name month abc Jan xyz Jan efg feb ijk apr mno apr question is, how to group, using while loop, so the result like this **Jan** abc xyz **feb** efg **apr** ijk mno

Member Avatar for blocblue
0
102
Member Avatar for narabo

We were assigned the birthday paradox as a homework assignment. The program intakes a number of people to check and returns the number of people with a shared birthday. I seem to be having trouble figuring out the loops for the function check_birthdays. I input a number and a number …

Member Avatar for Banfa
0
303
Member Avatar for eogunlolu

//This program is supposed to read 20 scores from an input file and initialize them to an array //then print the components into 2 separate output files #include <fstream> #include <string> using namespace std; const int ARRAY_SIZE = 20; void printArray1(int scoresArray[], int sizeX); void printArray2(int scoresArray[], int sizeY); ofstream …

Member Avatar for eogunlolu
0
232
Member Avatar for pucivogel

How do i reference to a folder? I'm want the photos in folder 'gallery1' to be shown when i click on it, this htm code is in the same directory with folder gallery1 i've done this: <a href="gallery1" onclick="return false" onmousedown="ajax_json_gallery('gallery1')">Gallery 1</a><br> but nothing shows when i click on it

Member Avatar for stbuchok
0
245
Member Avatar for garwil

Hi All, Am pretty newbie to php and am battling with a piece of code and just dont know what I am doing wrong. I have a set of tabs along the top of my page with differnet user levels. If a user is an admin then they get to …

Member Avatar for garwil
0
179
Member Avatar for anumash

I have a lot of problems understanding the concept of size_t and will really appreciate if anybody can help me understand the concept. I searched a lot on the net and went on a multiple forums and answers ranged from "it's an unsigned integer type" to the more bizarre "it …

Member Avatar for deceptikon
0
185
Member Avatar for kitschkath

Hi, it's me again.. I have this codes wherein I can export the data from the databse to Excel.. I get a **Notice: Undefined variable: aData** on one of the php files.. well two of them actually.. The weird thing is... The other page which I have modified - i …

Member Avatar for kitschkath
0
188
Member Avatar for anestistsoukalis

What is a new project programming ? Is it better writting code in separate files which they can combine together ... rather that making ine file that includes all the other .C files ? At last... if i have 3 files .. for example: **File one:** // * Filename: setadt.c …

Member Avatar for deceptikon
0
212
Member Avatar for andrisetia

hi there, i also have an emergency home work it about Fibonnaci recursive the Output is should be like this : -------------------------------------------------- First number of the fibonnaci : 3 The Fibonacci Lines are : 3 4 7 11 18 29 ... ---------------------------------------------------- i want the result is until 10 lines …

Member Avatar for deceptikon
0
262
Member Avatar for Aamit

Hi, I am trying to read the content of url. when manually i put url in browser link : [url]http://www.mvnforum.com/mvnforum/viewmember?member=pbmissions[/url] it opens. but using code [code=php] $homepage = file_get_contents('http://www.mvnforum.com/mvnforum/viewmember?member=pbmissions'); echo $homepage; [/code] Warning: file_get_contents([url]http://www.mvnforum.com/mvnforum/viewmember?member=pbmissions[/url]) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 503 Service Unavailable in C:\xampp\htdocs\test.php on line …

Member Avatar for jerryangel
0
16K
Member Avatar for Aaron_JY

This is a pretty broad question so bear with me here. I'll try to make it as understandable as possible haha. Alright, so lets imagine I have an SQL database on my web server named **diary**, and I have a table in the database called **entries**. The table has the …

Member Avatar for JorgeM
0
203
Member Avatar for richosr

Hi, I want to select all records from a table where the DateAdded field's date and time (Default value Timestamp field) is more than say 3 hrs ago. eg: something like SELECT tbldata.* FROM tbldata WHERE (tbldata.DateAdded <= now()-3); I can get it working with days difference but do not …

Member Avatar for richosr
0
377
Member Avatar for kiran2012

Hi, I newly installed VB6 and Visual Studio 2012 Premium. OS - Windows 7. I want to add Listview control to my form. For this when i add reference to MS Windows common controls, VB crashes and closes. This is the error msg i am getting "Unhandled exception at 0x00409719 …

Member Avatar for AndreRet
0
2K
Member Avatar for dinhunzvi

i have an html form with two text boxes. one is for the product name and the other is for the price. i want the text boxes for price to allow numeric values only. is there a way of limiting user input for this text box using javascript

Member Avatar for radhakrishna.p
0
169
Member Avatar for -acir-

//compute percentage for Parent1 DecimalFormat df = new DecimalFormat("#.##%"); rs = s.executeQuery("SELECT " + "(SELECT COUNT(*) FROM genetic.blood_type where diseases = '" + disease1 + "')" + "/COUNT(*) AS rowcount FROM genetic.blood_type where btype = '" + btype1 + "'"); rs.next(); int result = rs.getInt("rowcount"); rs.close(); out.println(disease1 + " is …

Member Avatar for -acir-
0
225

The End.