64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for cambalinho

i did several ways and nothing work correctly. i have 2 controls: 1 - label: with an animation; 2 - the tooltip is showed on top until the label is re-painted. so is there another way for put the control, always, on top?

Member Avatar for cambalinho
0
228
Member Avatar for tgreiner

I want to read data into an array from a data file. Because I do not know, ahead of time, how much data is contained within the file I need to declare the array at run time using new. My current strategy is the read through the data file to …

Member Avatar for David W
0
485
Member Avatar for amishraa

Hello, What seems so trivial, has been bugging me. I have a table with duplicate values on one column, while non-duplicate (date) values on the other. If I am to use DISTINCT it will only eliminate the row with the same date. But how do I use DISTINCT and only …

Member Avatar for diafol
0
247
Member Avatar for HITMANOF44th

i am new to c# i have been working on controlling a io card i have no issue writing to turn on / toggle / or get status turn on bits |= 1 << bit; toggle bits ^= 1 << bit; but i cannot get the item pin to turn …

Member Avatar for HITMANOF44th
0
127
Member Avatar for Szabi Zsoldos

Hi guys, I've made an application in JavaFX and I do want to export it into a runnable jar. When I run it from Eclipse or Netbeans, it works well. But when I run it from windows as an executable jar I get this error for my layout. Exception in …

Member Avatar for Szabi Zsoldos
0
4K
Member Avatar for Orionizer

I'm having an issue using the ADO.Locate function (Using Delphi 7). I've got the following code: procedure TFrmMain.RzBtnProcessClick(Sender: TObject); var WB: IXLSWorkbook; WS: IXLSWorksheet; X: Integer; MillStyle: Integer; KnitNo: Integer; CustSKU: String; begin if RzBtnEditInputFile.Text = '' then Application.MessageBox('You Must Select An Input File!','Error',MB_OK) else if not FileExists(RzBtnEditInputFile.Text) then Application.MessageBox('Cannot …

Member Avatar for Orionizer
0
442
Member Avatar for shashigowda
Member Avatar for mattster
0
347
Member Avatar for ram619

Hello Everyone, I got this question in some book. As per question we need to find a substring in a array of char* and replace it with another string. The program I wrote doesn't work. I tried using strcpy as well char by char. Please help me to figure out …

Member Avatar for ram619
0
347
Member Avatar for lewashby

I'm reading the book 'C++ Without Fear 2nd Edu' and I'm a little confused on the subject of shallow copies. The book says the problems can arise if you make a shallow copy of an object and something happens to the original, goes out of scope, is deleted, etc... I …

Member Avatar for Moschops
1
171
Member Avatar for UK-1991

Hello, I am trying to connect with the database but the file contains OOP programing that is little bit unfimiliar for me if anyone help me out in connecting with the database. Db_connect.php <?php class DB_Connect { var $dbuser; var $dbpass; var $dbname; var $dbhost; // constructor function __construct() { …

Member Avatar for diafol
0
2K
Member Avatar for kayecng

Can anyone check my search code? What seems to be the problem? **ERROR: **Object variable or with block variable not set. Dim con As New SqlConnection(connectionString:="Data Source=APBIPHAP06; Initial Catalog=PMT; Integrated Security=SSPI") Dim ds As New DataSet() Dim da As New SqlDataAdapter() Dim query As String = "SELECT * FROM tblPM …

Member Avatar for kayecng
0
261
Member Avatar for wudie47

Write a function called parseExtension that takes a file name as a string parameter and returns the file extension. Example: If your function was passed “python.exe” as a string parameter it would return “exe”. I want it to take userinput and seperate the files from the extension starting at the …

Member Avatar for wudie47
0
507
Member Avatar for berserk

I wasn’t sure which forum to put this under so I just selected web development. I have run into an issue that ironically I have solved before but thanks to my wonderful drop-box the changes I made were not saved and when I changed them again on another computer, the …

Member Avatar for berserk
0
436
Member Avatar for Mahnoor_1

I need to find out the output of the following code snippet return by function go(2) ... int a=10; int go(int b) { if(b<=4) return b; else return go(b+1)*go(b-2)-(b*2); ++a; cout<<a; return -1; } When I do the dryrun myself on paper , it should first return the value of …

Member Avatar for Mahnoor_1
0
174
Member Avatar for UK-1991

<?php if (!$connection) { die('Could not connect: ' . mysql_error()); } $urlinput=mysqli_real_escape_string($connection, $_POST['url']); $id=rand(10000,99999); $shorturl=base_convert($id,20,36); $link = "https://goo.gl/$shorturl"; $sql = "insert into shortenedurls (id, url, shortened, uid) values ('$id', '$urlinput', '$shorturl', '$idnew')"; mysqli_query($connection, $sql); echo "<input type='text' class='txt-box' value='https://goo.gl/$shorturl' readonly />"; mysqli_close($connection); ?> i tried to create a link shortner …

Member Avatar for UK-1991
0
392
Member Avatar for aravindm

main() { int i=5; printf("%d%d%d%d%d",i++,i--,++i,--i,i); } Answer: 45545 Thanks in advance.

Member Avatar for Moschops
0
203
Member Avatar for wudie47

Trying to create function called parseExtension that takes a file name as a string parameter and returns the file extension. Going to ask users to input a filename ie. Python.exe then print the file extension. I tried to split the text and a number of issues for me so far. …

Member Avatar for wudie47
0
7K
Member Avatar for Slavi

Hey guys, I've got an AES encrypted file that my task is to decrypt knowing that it used gcc PRNG to generate the key and I know in which week it happened ... So I made a script and it works great except for that fact that .. well there's …

Member Avatar for Gribouillis
0
195
Member Avatar for cudawella

I want to add data to sql databse using vb.net form And I am new to programming :( I get an error message saying "Incorrect syntax near "deatails") Can somebody tell me the reason the following is the code I'm using Imports System.Data Imports System.Data.SqlClient Public Class Customer_Profile Dim con …

Member Avatar for cudawella
0
8K
Member Avatar for Anna123

Dear All, I have two files where I need to map file_1 to file_2 based on the similarity of the 1st column from file_1 to 8th column to file_2 and print the similar rows with annotaions for that. I am able to achieve that with the following perl script. But …

Member Avatar for 2teez
0
441
Member Avatar for praba_web

How to integrate login in ossn framework html page ? i designed separate page for login module. i have to integrate login in ossn framework index.html.. please give solution..

Member Avatar for jkon
0
120
Member Avatar for Xhesika

Will somebody please help me solve this algorithm? it says: 2+2x4+2x4x6+2x4x6x8+...+2x4x6x...x20

Member Avatar for JamesCherrill
0
154
Member Avatar for nadiam

I am trying to update data but i get this error. `Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' username …

Member Avatar for nadiam
0
276
Member Avatar for Moin_3

[Click Here](http://dev.appcotech.com/pwrdup/static/become-postie.php)[1] UnderConstruction please go to upper link and click on SIGNUP TO DRIVE (Blue cruve Button) there will be a tab open type `london` (Not From Drop Down) only just type `london` and hit enter page will redirect to dev.appcotech.com/pwrdup/static/become-postie-vehicle.php page (This mean post keyword matched 100% with database) …

Member Avatar for pixelsoul
0
386
Member Avatar for Stefce

i cannot select from two tables but i have the right code here it is: $sql = "INSERT INTO ticket (senderName, receiverName, `Date`, ticketID, match1, match2, match3, match4, match5, match6, match7, match8, match9, match10, match11, match12, match13, match14, match15, match16, tip1, tip2, tip3, tip4, tip5, tip6, tip7, tip8, tip9, tip10, …

Member Avatar for pritaeas
0
213
Member Avatar for Papa_Don

Group, In VB.net, I use the following to return the actual name of a folder where data is kept. Is there an equivalent in VBA? I sure hope so. It would solve some problems for me. foldernameGD = CStr(getFolderNameGD("O:\Revenue Management\Centralized Revenue Management Service\CRMS Hotels", propertyNo2 & "*")) In advance, thanks …

Member Avatar for Minimalist
0
322
Member Avatar for Nathaniel10

I want to increase my knowledge of PHP by learning about classes. I wrote the following very simple test program. It works. But I would like to know improve it. I plan on writing more complex test programs and that won't be the time to iron out smaller issues. Thanks …

Member Avatar for diafol
0
443
Member Avatar for Mushfik

Please someone help. I want to put the $url which is created into $shorturl = to generate a custom url ($url actually outputs a http://something.com actual link) but don't know how. or can you help me put the $url in header("Location:" ## .$url ## ']); to redirect users to the …

Member Avatar for Mushfik
-2
253
Member Avatar for westsiderailway

Hi There, here is a form from my VS2013C Project ![Texting_Form.jpg](/attachments/large/4/0f3a409637419f1390baf300f584d929.jpg "align-center") As you can see, there are 9 labels that need filling. My Question is, can I load the dataset with 9 different select statements from the same Table, and then fill the 9 labels with the correct data.? …

Member Avatar for westsiderailway
0
182
Member Avatar for nk.shilpa

Hello I am new to Python and I have a question for a simple piece of code as below: temp = '32' if temp > 85: print "Hot" elif temp > 62: print "Comfortable" else: print "Cold" According to my understanding, when the program compiles and goes to line 2, …

Member Avatar for nk.shilpa
0
258
Member Avatar for UK-1991

Hello delete record not working if(isset($_POST['delete'])) { $ida = $_GET['delete']; $coupen = $_GET["code"]; $update_query = "delete from shortenedurls where id=".$ida; $query = mysqli_query($connection, $update_query); if($query) { header('Location: ../coupon.php?id='.$id.'&code='.$coupen); exit(); } else { header('Location: ../update_link.php?id='.$id.'&code='.$coupen); exit(); } }

Member Avatar for UK-1991
0
202
Member Avatar for jstfsklh211

Stupid constant in class declaration issue One of our live servers is still on php 5.3 and is breaking on the second line with this message Parse error: syntax error, unexpected '.', expecting ')' in ....... systemAdministrator is a defined constant that i can echo out with no problem before …

Member Avatar for diafol
0
258
Member Avatar for xuexue

hi guys.. i always got this error in vb6.. here's my code [CODE] '########### Variable declaration ########### Dim conn As ADODB.Connection Dim rs As ADODB.Recordset '########### Variable initialization ########### Set conn = New ADODB.Connection Set rs = New ADODB.Recordset strUserName = txtUserName.Text strPassWord = txtPassWord.Text connStringSQL = "MySQL ODBC 5.1 …

Member Avatar for Kishore1982
0
1K
Member Avatar for k_manimuthu

Hi all, Below is my sample data. I am trying to get the 'product' name only if the percentage count is varying. Could you please suggest your maximum no of 'Mysql' queries to approach this. Thanks in advance. Input: ============================================== percentage product ============================================== 100.00 A 100.00 A 100.00 A 2.18 …

Member Avatar for k_manimuthu
0
307
Member Avatar for westsiderailway

Hello Everyone, This time i am not asking for any help :-) I am showing anybody ,who wants to know how to add a $ sign into any item/subitem in Listview. Did try to add colour,BUT, there is a BUG in VS. you can code for differant colours in subitems,BUT …

Member Avatar for westsiderailway
0
463
Member Avatar for Nguyá»…n_6

Hi all, I'm taking the content of the page html kissanime.com. I use curl taken but no way to get. Everyone helped me get this way with

Member Avatar for Nguyá»…n_6
0
258
Member Avatar for cristian.stilpeanu.1_1

Hi guys , I have a pretty big problem and I don't know how to fix it. I have a contact page that I did not work on my web hosting service. I tried the same contact page on several free hosting companiese and works without a problem. I sent …

Member Avatar for cereal
0
1K
Member Avatar for Dhaval3731

Basic Code Requirements •create a project called TheShipment •create at least two classes 1.Main a.contains the main method b.runs the program 2.Shipment a.calculates the cost of the Shipment Main Class (the class that contains the main method) •prompts the user to enter a id and to enter details about a …

Member Avatar for JamesCherrill
-1
167
Member Avatar for riwakawd

I have a helper function in codeigniter php where I can use helper like so load_controller('column_left', 'index'); for example "column_left" is the file and class name. How ever that works fine but I would like to be able to type a folder name in load_controller('some_folder/some_class', 'index'); and it would detect …

0
119
Member Avatar for adamf07

My problem is this: I am trying to automate the download, parsing, and insertion of an excel file into a database. I have the parser and inserter done, but I can't seem to find a way to download the files automatically. The core of the issue is that the website …

Member Avatar for juhi_devloper
0
859
Member Avatar for Strange&Evil

Hey Guys! I Have A Device With a Small LCD Module Like This (http://tiny.cc/gva5pw). And I Have to Write a Code in C To Display Text on The Module ! I Also Have To Run Program in a Minimal Modified Version of FreeBSD ! So Far I Havent Started to …

Member Avatar for Nathan_5
0
233
Member Avatar for vapor162

Hi all, I'm brand new to daniweb and fairly new to vb.net and am trying to get my head wrapped around looping through an XML file to create toolstrip buttons in VS 2013 vb.net. i have searched all over google and youtube and now im totally confused. I'd like to …

Member Avatar for Reverend Jim
0
344
Member Avatar for Justin_14

Here's dish. When I submit a form, it straight up crashes my site on my network. Here are the details. 1. The form submits to itself. The form is on site.php (fictional name for reference on this post) and the action= "site.php". 2. When it crashes, it crashes for every …

Member Avatar for Justin_14
0
450
Member Avatar for Hassaan_3

An electricity board charges the following rates to domestic users to discourage large consumption of energy: Unit used (u) Residential rate Commercial rate 0 < units <= 100 6 8 100 < units <= 200 8 13 200 < units <= 400 12 17 500 < units <= 800 17 …

Member Avatar for vegaseat
0
162
Member Avatar for SimonIoa

Is it possible to run two(2) funcions with the same id? `<a href="#icon" class='icon' id='icon' > `

Member Avatar for SimonIoa
0
516
Member Avatar for Mike Askew

Me again... So now I am confused... I have a form: <form action="addanimal_submit.php" method="post" enctype="multipart/form-data" style="padding-left:10px"> <p>Name: <input type="text" name="name"></p> <p>Date of Birth: <input type="text" name="dateofbirth"></p> <p>Description: <input type="text" name="description"></p> <p>Available For Adoption? <select type="text" name="available"> <option value="1" selected>Yes</option> <option value="0">No</option> </select> </p> <p>Image Of Animal:</p> <p><input type="file" name="fileToUpload"></p> <input …

Member Avatar for Mike Askew
0
308
Member Avatar for westsiderailway

HI again, I would like to know how i would use a loop for the following code, thanks for read this. LV1.Columns.Add(ds.Tables(0).Columns(0).ColumnName, 25) LV1.Columns.Add(ds.Tables(0).Columns(1).ColumnName, 75) LV1.Columns.Add(ds.Tables(0).Columns(2).ColumnName, 75) LV1.Columns.Add(ds.Tables(0).Columns(3).ColumnName) LV1.Columns.Add(ds.Tables(0).Columns(4).ColumnName) LV1.Columns.Add(ds.Tables(0).Columns(5).ColumnName, 75) LV1.Columns.Add(ds.Tables(0).Columns(6).ColumnName, 75) LV1.Columns.Add(ds.Tables(0).Columns(7).ColumnName, 75) LV1.Columns.Add(ds.Tables(0).Columns(8).ColumnName, 75) LVitem.Text = dt.Rows(0).Item(0).ToString LVitem.SubItems.Add(dt.Rows(0).Item(1).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(2).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(3).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(4).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(5).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(6).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(7).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(8).ToString) i was …

Member Avatar for westsiderailway
0
4K
Member Avatar for DavidB

One of my websites recently had problems with the PHP news parser. For many years, it worked fine. However, a while back it started acting up. See the attached image of a screenshot. And since the PHP parser was the first block of code on the page, since it didn't …

Member Avatar for DavidB
0
500
Member Avatar for shashigowda

how to split numbers in php?i need a PHP code for this input.if the input is 143,i need output as **8**(tat is sum of 143{1+4+3})

Member Avatar for Gideon_1
-1
265
Member Avatar for Justin_14

I need to process a CSV file and create a new CSV file. In order to get a proof of concept, I placed the CSV on the server and was able to process it fine. Then I setup a form in order to allow the client to upload the file. …

Member Avatar for Gideon_1
0
292

The End.