199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nitin1

Hi, I am facing an issue in string to const char pointer conversion. I am doing stuff in the fun() but here i am just giving my example. Here it the code: // Helper function string fun() { string abc = "Daniweb"; // print here #1 return abc; } // …

Member Avatar for AssertNull
0
3K
Member Avatar for Kifiote

Hello Guys! Please help me out!!! Curently finishing a small project, when my boss asked that the report should include the person Photo... CR won't display photo unless it is stored directly into DataBase. I read some where it is easuer to use Parameter to save both text and image. …

Member Avatar for Kifiote
0
894
Member Avatar for Baastina

Try Dim cn As New SqlConnection("Data Source=MSR\LOCAL;Initial Catalog=Eventena;Integrated Security=True") cn.Open() Using cmd As New SqlClient.SqlCommand("INSERT into BirthdayRegistration where Name='" & TextBox4.Text & "',LastName='" & TextBox2.Text & "',Email='" & TextBox5.Text & "',StreetNo='" & TextBox6.Text & "',Main='" & TextBox7.Text & "',Area='" & TextBox8.Text & "',City='" & ComboBox1.Text & "',State='" & ComboBox2.Text & …

Member Avatar for deceptikon
0
601
Member Avatar for metalla_nz

Hi all, Im developing a small app that stores information in a database. When I first released, I tried to make sure my DB was future-proofed against any changes. However i'm about to release a new version that requires a change to the DB schema. Currently my terrible way of …

Member Avatar for Garr
0
315
Member Avatar for i.

I have a problem with my pseudocode: Declare Integer p1 Declare Integer p2 Declare Integer p3 For p1 = 1 To 3 For p2 = 65 To 66 For p3 = 6 To 8 Display p1, p2, p3 End For End For End For This would display 18 combinations. But, …

Member Avatar for AssertNull
0
386
Member Avatar for Papa_Don

Hello Group! I've developed an app that takes the data in a text file and moves it to specific columns in an Excel file. My computer has the Excel 2010 installed. So the application works fine with no issues. However we've begun to upgrade computers and software in the office …

Member Avatar for rproffitt
0
341
Member Avatar for J.C. SolvoTerra

# BlowFish? # BlowFish was the brain child of Bruce Schneier back in 93. Since BlowFish was released to the public domain, Bruce Schneier has released new encryption algorythems, TwoFish and ThreeFish. BlowFish is an increddibly popular and very strong algorythem. Because it conforms to Kerckhoffs's Principal [Explained Here](http://en.wikipedia.org/wiki/Kerckhoffs's_principle), even …

Member Avatar for zen_1
0
1K
Member Avatar for shany0786

hello all, i want to create dynamacially this thing and want to populate data alternatively on green,red,gray li and so on but i can't able to do it plz help i am weak in js :( <li class="green"> <div class="metro_tmtime" datetime="2013-04-10 18:30"> <span class="date">1/4/13</span> <span class="time">17:20</span> </div> <div class="metro_tmicon"> <i …

Member Avatar for gentlemedia
0
289
Member Avatar for Ivan_13

I have a problem with CSS. Please for assistance. Yelim to me the picture is positioned at the center of the page and not the left or the right. I want to be on cebtru regardless of screen resolution. This is the code in CSS / * Product * / …

Member Avatar for ryantroop
0
238
Member Avatar for Papa_Don

Hi group, I'm discovering that my Excel spreadsheets that are being created by a VB.net app I've written isn't completely closing them as they should be. I'm struggling to understand why and how to fix this. Here is the code for the portion of the app that creates the workbook, …

Member Avatar for Papa_Don
0
5K
Member Avatar for Bryan_5

I just started learning how to use pointer array and i'm trying out examples to know more about them but i get confused with them easily. So, I tried to do a simple arithmetic calculation using a pointer array. The user will input 2 string variables for addition. I then …

Member Avatar for deceptikon
0
358
Member Avatar for Bryan_5

I'm doing a simple addition arithmetic using pointer array but i'm stuck at trying to print out my pointer array. int main() { string str1, str2; cout << "Enter the first string" << endl; cin >> str1; cout << "Enter the second string" << endl; cin >> str2; stringtoInt(str1, str2); …

Member Avatar for tinstaafl
0
367
Member Avatar for i.

I have this problem which says, "A programmer can use the random feature to emulate the flipping of a coin. For example, if the generator produces a number 0 or 1, the value 0 can be assigned heads and the value 1 can be assigned tails. Write a program that …

Member Avatar for AssertNull
0
552
Member Avatar for amith_ami

When I use pagination for custom post type 'product' its working fine but its not working for the categories of custom post type. for ex. pagination working for this **'http://localhost/wordpress/products/page/2/'** and not for this **'http://localhost/wordpress/products/landscape/page/2/'** its always showing the first page content. How to solve this? given below is my …

Member Avatar for diafol
0
2K
Member Avatar for bincy_2050

Hi, I am developing a website. I have a folder containing some images. Please somebody help me with the code so that the users can download the folder when they click on the download button. Bincy

Member Avatar for sai_10
0
10K
Member Avatar for Aarav

Hi, I am looking for some example code that can help me to generate unique random string of numeric numbers in PHP Applications. I am hoping to resolve this issue with the help of tech developers working around & for this I have researched for many php questions & answers …

Member Avatar for amith_ami
0
223
Member Avatar for can-mohan

In below code snippet , I am trying to add the intefeger and float values in Array template but was surprised to see below output for float value as 5.1 was expected there but getting 0 . Can anybody let me know what can be wrong here. output value=5 value=15 …

Member Avatar for can-mohan
0
365
Member Avatar for cereal

###Simple Advice This is just a reminder. When setting environment variables through **.htaccess**, **CLI** or **dotenv** use `filter_var()` to evaluate a boolean. For example, start the built-in PHP server with these variables: DEBUG=FALSE LOG=TRUE SMS=1 SMTP=0 CONNECT=yes BACKUP=no php -d variables_order=EGPCS -S localhost:8000 And then test through `boolval()`: if you …

Programming php
0
288
Member Avatar for Test_2

i have been rearrange the code for whole day still cannt make the datepicker search filter working only the dropdown select filter is working.. previously is datepicker search filter is working and dropdown options is not working, but i working it and it turns around where the datepicker is not …

Member Avatar for diafol
0
934
Member Avatar for ibpet11

Hello everyone here, I want to be able to read from file or DB and place lines on a page in Matrix form. This is what I mean, say I read a file to an array or list(of string), so that I have the lines like this 1.aaaa,bbbb,ccc 2.5533ds,iodfas,ssss 3. …

Member Avatar for Taywin
0
316
Member Avatar for Papa_Don

Hi group, I'm making a handful of changes to an existing program I wrote a year or so ago. For some reason I can't get it to build as I'm getting an error that says: 1> Copying file from "obj\x86\Debug\Restran Solutions.exe" to "bin\Debug\app.publish\Restran Solutions.exe". 1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(3506,5): error MSB3113: Could …

Member Avatar for Papa_Don
0
692
Member Avatar for David W

This thread will be an attempt to develope a SIMPLE (and good enough) class for beginning Java students, to ease their coding for valid and crash proof, user (Console type) input, (and also handle Console output.) We assume here that beginning students need not worry much, about obtaining the fastest …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Ghada_1

Can someone help me please find the ploblem with this program ? I know it's a question of a misssing pointer but i don't know where to put it .. #include<stdio.h> void remplissage_matrix(char M[50][50],int l , int c); void remplissage_elements(int l, int c ,char M[50][50],char elements[100],int *n); void remplissage_histo(int histo[100],char …

Programming c
Member Avatar for StuXYZ
0
238
Member Avatar for johans22

typedef struct { unsigned char Val1; unsigned char Val2; unsigned char Val3; unsigned char ValArray1[2]; unsigned char ValArray2[2]; unsigned char ValArray3[2]; unsigned char Val4; unsigned char Val5; }s1; From the above structure, would like to map only the Val3, ValArray1,ValArray2 and ValArray3 to series of bit values using ideas like …

Member Avatar for AssertNull
0
260
Member Avatar for Bryan_5

I'm trying to store some information in a binary file. However, i met with a problem that i can't rectify. For example, if the first order comes in, there is a struct of information that includes orderNo 1, which will be stored into the binary file. When there's a second …

0
231
Member Avatar for PCSAWICK829

Alright. I'm teaching myself python from 'Learn Python the Hard Way: 3rd Edition' by Zed Shaw.. it's been informative so far. Definitely learning. After his lessons, he gives study drills, extra project to put your learning to use. He challenged us to: "Find out what Zork and Adventure were. Try …

Member Avatar for Conrad_2
0
9K
Member Avatar for phphp

Sir, I am using wamp 3.0 having php 5.6.15 SQLSERVER 2008 is installed on Windows 7 32bit. I want to connect sqlserver with php, So I put required drives in Bin folder as ![aa.png](/attachments/large/4/b763141a1fb510782c174e1fab41066b.png "align-center") and made some necessary changes in php.ini as ![bb.png](/attachments/small/4/a50b010fafa6dc4b615bc2abd06ce0df.png "align-left") Finally I have this connection …

Member Avatar for maba001
0
399
Member Avatar for Siberian

I'm creating a pseudo type script at the moment using a well known programs API which uses JS. When the user is prompted and enters in a name since the API uses ECMA 3.0 I cannot directly use String.Prototype.Trim() as it's not supported in ECMA 3.0. I have a prompt …

0
279
Member Avatar for Malbora_1

Hello,im working on a music store in magento, i have two users artist and customer ,i want to let artists choose their role and add their songs, i installed multi seller extension but i want also that they choose their role on register form,i tried a lot of extensions what …

Member Avatar for diafol
0
257
Member Avatar for AntonyRayan

Hi, by passing city name, I take all hotels reviews among on the requested city groupin by hotel id and user id that reviews should be greater than 0, The query works correctly, but taking values using while loop it combines all the hotel review values together. How to take …

Member Avatar for diafol
0
565
Member Avatar for Khang_1

Using the following Let X be the year Let A be the reminder of the division of X by 19 Let B be the reminder of the division of X by 4 Let C be the reminder of division of X by 7 Let D be the reminder of the …

Member Avatar for rubberman
0
156
Member Avatar for jeffersonalomia

Hello guys, I have a problem on using the image slider plugin called "Unslider" which is a jquery plugin. I follow all the procedures / instructions on how to set up the codes but sadly it seems that the next and preview button styling doesnt work even if i follow …

Member Avatar for jeffersonalomia
0
2K
Member Avatar for Sudo Bash

I am writing a game in which I need to know whether or not a user preforms an action in one second or less. I can not use time() because it measures time in seconds. If the user starts the action half-way through a second it would mess with accuracy. …

Member Avatar for Yangang
0
4K
Member Avatar for giancan

Dear All, I have a very long list of values as follow (43, 560) (516, 1533) (1316, 3047) (520, 1528) (3563, 1316) (45, 557) (3562, 1312) (2686, 1964) (2424, 3340) (3559, 1317) (50, 561) (2427, 3336) (1313, 3046) (3562, 1313) (3559, 1318) (2689, 1962) (2429, 3339) (3721, 2585) (1317, 3048) …

Member Avatar for JamesCherrill
0
824
Member Avatar for Doğukan

I'm trying to develop some code to do a button click onto an application without moving the cursor over to it. I can see messages under Spy++ but nothing happens. Thanks in advance... Public Class Form1 Const WM_LBUTTONDOWN = &H201 Const WM_LBUTTONUP = &H202 Const MK_LBUTTON = &H1 Public Declare …

Member Avatar for Reverend Jim
0
824
Member Avatar for hamzah_1

Is there a way I can fix the way ji get neighbors of a 2d coordinate? """6.009 Lab 5 -- Mines""" def dump(game): """Print a human-readable representation of game. Arguments: game (dict): Game state >>> dump({'dimensions': [1, 2], 'mask': [[False, False]], 'board': [['.', 1]]}) dimensions: [1, 2] board: ['.', 1] …

Member Avatar for rproffitt
0
367
Member Avatar for Pandey_1

I have generated checkbutton from inputstatus dictionary to set as default values.After tht once it get display on GUI when i select it respected text and status will be added to new dictionary '''inputstatus = { 'maggi': 1, \ 'pizza': 1, \ 'cold drinks': 1, \ 'fries': 1, \ 'chapati': …

Member Avatar for Gribouillis
0
513
Member Avatar for v1shwa

I use a webservice to pull some data from it everyday & update it on my MySQL database. I'll make around 600 calls to this service. The webservice response is very slow (takes around 30 minutes to complete 600 transactions) & during this time, the MySQL is also giving slow …

Programming caching json mysql php
Member Avatar for Tomaski
0
441
Member Avatar for zebnoon1

Dear Friends, I ctreate database in mysql database data transfer from PHP form. Problem: I can not save my Date formate(dd-mm-yy) in to database. My code is below please, if($epr=='save'){ // $cid=$_POST['id']; $edate=$_POST['edate']; //$edate=date("d-m-y h:i:s a",time()); $ldate=$_POST['ldate']; //$ldate=date("d-m-y h:i:s a"); $cdetail=$_POST['cdetail']; $tdetail=$_POST['tdetail']; $sql1="INSERT INTO tentb(edate,ldate,cdetail,tdetail) VALUES('$edate','$ldate','$cdetail','$tdetail')"; $result1=$conn1->query($sql1); if($result1){ echo "Data …

Member Avatar for cereal
0
303
Member Avatar for glao

Hello , I have this code: #include <iostream> #include <cstdio> #include <cstdlib> using namespace std; void message(int numbers) { cout << "Entry to function #" << numbers << endl; if ( numbers > 0 ) { cout << "This is a recursive function." << endl; message( numbers-1 ); } cout …

Programming
Member Avatar for glao
0
495
Member Avatar for Ackroid

This is my assignment yet i can't work it out. Kindly help me? Public Class Form1 Private Sub nudYear_ValueChanged(sender As Object, e As EventArgs) Handles nudYear.ValueChanged 'convert month and year to int' Dim month, year As Integer Select Case cmbMonth.Text Case "January" month = 1 Case "February" month = 2 …

Member Avatar for ddanbe
0
790
Member Avatar for JerrimePatient

I inserted data in sql server using asp.net (MVC 5), and its flowing nicely, but my problem is this. I don't want to insert in sql the exist data. How can I do it?

Member Avatar for Nagarjuna_2
0
7K
Member Avatar for zebnoon1

Dear Friends, I created Table in PHP. Columns are SrNo. ---- Tender Detail----- Last Date----- Remaining Days ---------- Status(Pending/Proceded) I have Database in mysql. I get "last date" from database and minus with Current date. But i tried there is any problem please, check. Code is below <?php function dateDifference($date_1 …

Member Avatar for zebnoon1
0
497
Member Avatar for SimonIoa

Hello i want to sort the returning data from my MySql database. i want to sort them by their type (1,2,3) This is what i ve done so far. PHP works fine returns all records $somevariable represents the AND to sort the records function all() { $type = $data->type; if($type …

Member Avatar for Bachu
0
292
Member Avatar for wilsonchama

Hi guys, I am trying to fill a datagridview on the form with data from sql server databse based on the name of the company selected in the combo box. But the code i am using gives me an error message saying "The data types text and varchar are incompatible …

Member Avatar for Santanu.Das
0
492
Member Avatar for i.

Hello! I am totally stuck. My assignment says, "At one college, the tuition for a full-time student is $6,000 per semester. It has been announced that the tuition will increase by 2% each year for the next five years. Design a program with a loop that displays the projected semester …

Member Avatar for AssertNull
0
4K
Member Avatar for lytonia

Create a “C program” that determines whether or not a person is qualified to vote. Test for the following criteria for voting: Ask for the users first and last name (adds personalization) 18 years old or older Citizen of the United States State of residence (can only be one) Not …

Member Avatar for ddanbe
0
385
Member Avatar for Priya_14

I have database table created in sql server visual studio.I have one dashboard kind ,so whenever i want to change the value automatically balance amount should caluclate and display the changed value. Su Si Sa Sd Balance 10 12 13 14 ( Balance=Su+Si+Sa+Sd) 14 15 13 17 ( Balance=Su+Si+Sa+Sd) 17 …

Member Avatar for Priya_14
0
485
Member Avatar for Pandey_1

Suppose i have one dictionary menu={'pizza':1,'Burger':1,'sandwitch':0} when i run tkinter gui these all key will be displayed on GUI. If value is 1 then respected key must be ticked rest will be unticked

Member Avatar for slate
0
179
Member Avatar for rayearth_1

i have creating a feedback devices system, and already done with only the radio button. but the people wants more, then i added some roll over image, and having dificulties to connect between them. people wants to, when they click the image, and the radio button show the indocator, that …

Member Avatar for gentlemedia
0
358

The End.