199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for eshajoshi

Hi All, I have a an error: "Type Mismatch" on the line that has the stars next to it. Can someone please help? I appreciate all the help. Option Explicit Dim cn As ADODB.Connection ' Establishing a Connection Object that provides a connection to the data Dim rs As ADODB.Recordset …

Member Avatar for eshajoshi
0
229
Member Avatar for DaniwebOS

Hi guys, I added a extra line of code to test for records in the database and if they exist to update them before inserting them instead. For some odd reason it's not working and it simply just inserts the data causing duplicates. Any suggestions? <%@ Import Namespace="System.Data"%> <%@ Import …

Member Avatar for JorgeM
0
212
Member Avatar for hdaccess

I am currently making a subreport and I found it very tricky to do. I already created a parameter(ID) that would link Report2 to Main Report but still it doesn't work. I have two datasources: LoanerDataSet for the main report and LoansDataSet for report 2. I would like to ask …

0
104
Member Avatar for sushilsth

Private Sub one_btninsert_Click(sender As Object, e As EventArgs) Handles one_btninsert.Click For i = 0 To DataGridView1.Rows.Count - 1 Dim row1 As Integer = Val(DataGridView1.Rows(i).Cells(1).Value.ToString) Dim row2 As String = DataGridView2.Rows(i).Cells(2).Value.ToString Dim row3 As String = DataGridView2.Rows(i).Cells(3).Value.ToString Dim row4 As String = DataGridView2.Rows(i).Cells(4).Value.ToString Dim row5 As String = DataGridView2.Rows(i).Cells(5).Value.ToString Dim row6 …

Member Avatar for Begginnerdev
0
3K
Member Avatar for ej.p.lopez

hello i have a running code the only question is the get function wont get the field i type here's my whole code index.php <?php include_once('includes/dbConnect.php'); ?> <?php $searchText = htmlspecialchars ($_GET['q']); $action = (isset($_REQUEST['action'])&& $_REQUEST['action'] !=NULL)?$_REQUEST['action']:''; if($action == 'ajax'){ include 'pagination.php'; //include pagination file //pagination variables $page = (isset($_REQUEST['page']) …

Member Avatar for Zagga
0
1K
Member Avatar for lloydsbackyard

i have this code so to hinder from access when the url is directly type i understand BASEPATH is a constant but can anyone give me idea on how to cofigure the basepath? do i need to create a constant folder and constant php file? if (! defined('BASEPATH')) exit('No direct …

Member Avatar for almostbob
0
187
Member Avatar for Vinod Supnekar

#include <stdio.h> int *check(); int main() { int *c; c = check(); printf("%d\n", c); return 0; } int *check() { int i=10; int *p=&i; return p; }

Member Avatar for Gonbe
0
196
Member Avatar for Siberian

I hope this is the correct area for this post, I'm not to sure where it would fall into, regarding SSH ? Onto my question, is there a method to access Vi or Nano to find the exact path where a directory lies in the <root> directory ?

Member Avatar for JeoSaurus
0
119
Member Avatar for mathura.shreedher
Member Avatar for Tinnin

Hi All, I've just started to learn C from "The C Programming Language" (Kernighan). One of the exercises asks you to write function that folds a line of text into newlines after x number of characters without splitting a word. This is my attempt so far: // fold: folds the …

Member Avatar for Tinnin
0
190
Member Avatar for evan.winstead.7

Hey! I am trying to learn some LWJGL, and wanted to know the best source to learn from, that could be a youtube channel or a text tutorial, but something with videos is much prefered.

Member Avatar for evan.winstead.7
0
230
Member Avatar for Sci3nc3F1cti0n

Hey guys, I just started learning HTML/Javascript yesterday and I just wanted to mess around a bit. I'm working on a few things dealing with user input but I've come accross a little snag. I want it to take in 3 inputs, do an operation, and then output the answer. …

Member Avatar for stbuchok
0
296
Member Avatar for TechSupportGeek

Hi again DaniWeb, this time I'd like you to help me with the text alignment options available in a standard text editing application. My problem is, even though I got the application to successfully align the text where I want it, that if I click on every single option (Justify …

Member Avatar for Luc001
0
2K
Member Avatar for techyworld

Hi am working on jsf, am changing the css file, but when i view it in browser, it does not apply the change. Can i know why am having this issue and how can i resolve it?

Member Avatar for masijade
0
128
Member Avatar for حسنين_1
Member Avatar for Ancient Dragon
0
119
Member Avatar for kanoy83

hi guys, This topic might be a little bit common sense but I do also believe it can help so much to beginners and experts. As a developer, I always have great interest in other languages although time and effort to learn is to be strictly applied and manage. My …

Member Avatar for L7Sqr
0
249
Member Avatar for J-P1988

Hey i try to work on custom signal but i get an compiling error: QObject::connect: No such signal QLabel::changerSignal() in ..\textbasedrpg\FenPrincipale.cpp:173 But i seem to write exactly same thing in header and .cpp »That an big moment i try to see what i do incorrect but can't find. Same an …

Member Avatar for Banfa
0
502
Member Avatar for irtza

These are two simple programs. In first program, i used static array, while in second program i used dynamic array. Both programs do the same job i.e. initiaze the array by asking the user to enter the their test scores. The problem is: 1)i have read in many books that …

Member Avatar for vijayan121
0
4K
Member Avatar for Gloak

Hi there. Still a newbie question... a) I tested my code at localhost (my computer) and ALL was good. Now I uploaded my files to remote site and I can't get my page to work. There is an Ajax call to database. Do I need to change the URL in …

Member Avatar for Gloak
0
178
Member Avatar for ram619

Hello, the output of this code is 'ef' but if we add up a "newline" print after this print then the output becomes 'efd'. Then why in earlier scenerio the 'd' was not getting printed ? Thanks in advance. #include<stdio.h> int main() { printf("\nab\bcd\ref"); }

Member Avatar for Rahul47
0
514
Member Avatar for nadiah.izzati

program WaterBill; uses winCrt; type customer=record acct_no:longint; code:char; liter:longint; amount:real; end; var arrayC:array[1..50] of customer; index:integer; loop:boolean; continue:char; arr:customer; PROCEDURE read_data(var data:customer); begin writeln('Customer Info: '); writeln('Account number: '); readln(data.acct_no); writeln('Code(H,C,I) : '); readln(data.code); writeln('Unit of liter: '); readln(data.liter); end; function calc_bill(code:char):real; begin if (code='H') then begin if (arr.liter<=15000) then …

Member Avatar for pritaeas
0
200
Member Avatar for fugio

I have a form that FormborderStyle is none put it, after I create forms like resizing the original form, but its default size does not change when scaled how to change the default size of the form? Thank you ! [Click Here](http://vanhuynh.comoj.com/home/all%20pictrure/Ask%20Image/how%20to%20change%20the%20default%20size%20of%20the%20form.png)

Member Avatar for crescendo
0
243
Member Avatar for asaidi

Hi i want to display if possible a field from another table table a has group_id linked to group table..in edit it shows me the group_id i want to display near it the libelle of groupe i m just starting in cakephp please fine the code <div class="acnopens form"> <?php …

Member Avatar for diafol
0
161
Member Avatar for code_rum

I am using IIS for php. I want to confirm whether it uses fastcgi or cgi I used php_sapi_name() and it gives "cgi-fcgi" I don't know what does it mean Is there any other way to find the same

Member Avatar for code_rum
0
325
Member Avatar for rmad17

I've been trying out python codes looking at the python tutorials at python.org. I've been getting a better idea of it now and the tutorials are very good at teaching practical programming. However, I also want to apply for Python jobs so what a little bit of theoritical information on …

Member Avatar for rmad17
0
313
Member Avatar for intes2010

I want to create two buttons that would pause and resume my backgroundworker but it is giving me an exception error of "Object reference not set to an instance of an object". It seems like the resetevent is not linked with my BackgroundWorker and i don't know how to link …

Member Avatar for intes2010
0
2K
Member Avatar for klemme

Hi all, I have this script sending an really simple html email. It works fine, but I cant seem to preserve the line breaks when sending the email to the client. Any idea how I can preserve line breaks? Thought nl2br would do the trick.. // Data der skal emailes …

Member Avatar for klemme
0
342
Member Avatar for hisan
Member Avatar for 3e0jUn
0
1K
Member Avatar for Rahul47

Recently while solving one thread I was stuck with following problem. Am getting two different outputs for same code. One was executed on my machine and another one on codepad.com. Anyone with any suggestion why this might be happening ? Codepad.com's Output ![7316aa7bc992df41bee38de22b55db18](/attachments/large/4/7316aa7bc992df41bee38de22b55db18.jpg "7316aa7bc992df41bee38de22b55db18") My Machine's Output ![ac76eff29302f4b2d1466525c3675909](/attachments/large/4/ac76eff29302f4b2d1466525c3675909.jpg "ac76eff29302f4b2d1466525c3675909") Thanx.

Member Avatar for Rahul47
0
128
Member Avatar for mesbahuk

In my *Java to C#* Conversion Project, at one point I came to use java's `startsWith(string prefix, int toffset)` method. I used a substring to solve it for C#. Java Code Snippet: String str1 = "one over the coocoo's head"; String str2 = "someone"; System.out.println(str1.startsWith(str2, 4)); C# does not have …

Member Avatar for JoeProgrammer
0
419
Member Avatar for victormesso

Hi guyz I'm trying to create a logIn form in VB6 to check against an access database for login details and grant if the username and password exist in the database or deny access if they don't. Any help Please!

Member Avatar for rishif2
0
86
Member Avatar for eshajoshi

Hello all, I am having an issue with saving data entry from a vb6 form to a microsoft access 2003 form. Can anyone please help? I am getting the error "Operation is not allowed when the object is closed." I appreciate all your help! Option Explicit Dim cn As ADODB.Connection …

Member Avatar for rishif2
0
641
Member Avatar for nachiketh

dear all, i am trying to enter data into a flex-grid from a text box and combo box by pressing a command button. after that i need to be able to se my data to a recordset. my code works fine when i enter one record but when i try …

Member Avatar for rishif2
0
195
Member Avatar for jemartalaban_1

it is possible for the database that a certain id number will handle or occupy 2 or more rows and then when it called it will take both rows like on the picture .[Click Here](https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-frc3/v/1056791_636382299706472_1144322928_n.jpg?oh=7160bd41f914616aa1a0c59be0821a9a&oe=51F21D0D&__gda__=1374895465_5046fd7250a283eac7faabc35a10c324)

Member Avatar for jemartalaban_1
0
198
Member Avatar for sushilsth

Private Sub btnupdate_Click(sender As Object, e As EventArgs) Handles btnupdate.Click Dim myindex As Integer Dim reg As Integer Dim roll As Integer Dim nepaliw As Integer Dim nepalio As Integer Dim mathw1 As Integer Dim matho As Integer Dim mathw2 As Integer Dim engw As Integer Dim engo As Integer …

Member Avatar for M.Waqas Aslam
0
189
Member Avatar for Asus93

[Click Here](http://s1146.photobucket.com/user/HTHVampire/media/C%20plus%20plus/Capture2_zps4d967f99.jpg.html) Here's the formula to compute sinx and cosx in C++. here is the code I wrote at first to calculate it: http://codepad.org/cbdGB8wL and it gives me good results. The problem is my lecturer would prefer me to use the formula as attached , but I get stucked, how …

Member Avatar for Asus93
0
695
Member Avatar for FaresEid

So I created a custom generated file that lets me take the username and password. It is the following: public User GetUserByUserNamePassword(string userName, string Password) { return (_DatabaseContext.Users.FirstOrDefault(user => user.Username == userName && user.Password ==Password)); } In my log in page I have a webUserControl that contains two textboxes, one …

Member Avatar for BMXDad
0
134
Member Avatar for AmrMohammed

Greetings, I cannot understand what the below code do What is the InvokeRequired do? The delegate I do not know much about delegates if (lblError.InvokeRequired) { lblError.Invoke(new MethodInvoker(delegate { lblError.Text = "License management. Information on active license, renewing license and acquiring new ones. Commercial for limited computers"; picUpdatingFormat.Visible = false; …

Member Avatar for Momerath
0
145
Member Avatar for ej.p.lopez

![87c254267ddc1a1686974c863a7bf415](/attachments/large/4/87c254267ddc1a1686974c863a7bf415.png "87c254267ddc1a1686974c863a7bf415") ![282a041b1e7ea8ddc9240fe7bb9989fe](/attachments/large/4/282a041b1e7ea8ddc9240fe7bb9989fe.png "282a041b1e7ea8ddc9240fe7bb9989fe") hi everyone can anyone give me a coad for the form of search inside the php i mean they belong in the same page ? here's my php command for the pagination and results //Count the total number of row in your table*/ $count_query = mysql_query("SELECT …

Member Avatar for ej.p.lopez
0
457
Member Avatar for james.lu.75491856

How do you get this: ![78dfa722ac966be9e9aa3a44ef62d566](/attachments/large/3/78dfa722ac966be9e9aa3a44ef62d566.PNG "78dfa722ac966be9e9aa3a44ef62d566") with pythoncard?

Member Avatar for vegaseat
0
108
Member Avatar for nikolaos

I want to list all files and directories from a start point using recursion. Here is my code. import java.io.File; import java.io.IOException; public class RecursiveWalk { void recursive (File[] allfiles) throws IOException{ for (File file : allfiles) { if (file.isDirectory()) { System.out.print("directory:"); System.out.println(file.getCanonicalPath()); recursive (file.listFiles()); } else { System.out.print(" file:"); …

Member Avatar for JamesCherrill
0
3K
Member Avatar for Labdabeta

Hello, As may be apparent from my previous posts, I am in a "If its worth doing, its worth overdoing" sort of competition with a friend of mine. Our goal is arbitrary precision integer arithmetic. I think I am close to getting the data storage working, but now I want …

Member Avatar for Labdabeta
0
1K
Member Avatar for fugio

Hi there ! how to select row from datagridview when column have cells is empty I tried this but nothing worked Please help on this private void selectrow() { int i; for( i=0 ;i<dataGridView1 .Rows .Count -1;i++) { string row = dataGridView1.Rows[i].Cells["Name"].Value.ToString(); if (row =="") { sqlconn.Open(); string sqlquery = …

Member Avatar for ChrisHunter
0
2K
Member Avatar for lexaeterna

i am working on a project and theres a feature that i seemingly want to include, it is the attachment of a word file in an email and the values that are included in the letter are imported from the database using vb.net is there a way to import values …

Member Avatar for G_Waddell
0
322
Member Avatar for a.arjunvasan

I am getting the following error on my home page. I am new to php code and this one is looking pathetic on my wordpress site. any help would be highly appreciated. The error is as below: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given on line 39 …

Member Avatar for a.arjunvasan
0
405
Member Avatar for Venom Rush

I have no previous knowledge of connecting to a web service using JSON and I haven't been able to find any examples online that clearly explain how I would go about connecting using authentication. I have the following documentation: Credential (type: Credential) - An object used to authenticate the client …

Member Avatar for Szabi Zsoldos
0
368
Member Avatar for paine_today

Any idea why only the first "click" works? I am relatively new to jQuery, so it is, in all liklihood, something rather simple. Any help is greatly apprecaited!! $(document).ready(function() { $("div.arrow").click(function(){ $('div.active_arrow').text('↵').removeClass().addClass('arrow').parent().find('div.rss_news_link, div.rss_news_link_odd').height('auto'); $(this).removeClass().addClass('active_arrow'); $(this).parent().find('div.rss_news_link, div.rss_news_link_odd').height(+100); $(this).text("X"); }); $("div.active_arrow").click(function(){ $(this).removeClass().addClass('arrow').parent().find('div.rss_news_link, div.rss_news_link_odd').height('auto'); }); });

Member Avatar for paine_today
0
285
Member Avatar for n.cramp

Ive actually managed to get DirectX 9 working with Direct X, however i am now getting odd error messages around a function. I can't see any syntax issues myself but thought i'd check to see if anyone can shed any light on it. `g_pd3dDevice->CreateVertexBuffer( 3 * sizeof(CUSTOMVERTEX) , 0, D3DFVF_CUSTOMVERTEX, …

Member Avatar for n.cramp
0
309
Member Avatar for devianleong

Currently I've a database table call category: Table attribute: id,parent_id,name How can I make it display in the following structure? <li class="dropdown level-0"><a href="#">electronics<img src="images/dropdown-arrow.png" alt="" /></a> <ul> <li class="level-1"><a href="#">Televisions</a> <div class="level-1-div clearfix"> <ul> <li class="level-2"><a href="catalog.html">Projectors</a></li> <li class="level-2 last-level-2"><a href="catalog.html">DVD Players</a></li> </ul> <div class="productImageDiv"> <a href="catalog.html"><img src="images/product-image2.png" alt="" …

Member Avatar for devianleong
0
362
Member Avatar for satti

How to popup alert message to a 2nd client end when a new data enter in database done by client1 on network ? for example me and my friend using an application for data entry, when i enter any data through software he get an alert message that new data …

Member Avatar for Begginnerdev
0
126

The End.