64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for pedders

I want to access some data in an Access MDB but I want to make sure that nothing can be accidentally altered. I have tried: conn = New OleDbConnection(Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Test.MDB;Mode=adModeRead;") I've also used conn = New OleDbConnection(Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Test.MDB;Mode=Read;") I then run a quick UPDATE WHERE query and it still alters …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for Violet_82

Hi there, I have to calculate the pithagorean triplets up to 500 (it's an exercise I found on the deitel and deitel book) and I got a little stuck, in that it looks like I am getting an infinite loop. The exercise says to use a triple for loop, but …

Member Avatar for Violet_82
0
132
Member Avatar for tony75

Hi Im using windows form applicaton and try using a method that returns a value and have a parmeterlist input. I try to creat a program that converts a number of kilobytes (KB) to byte. The program's user to specify the number of KiB and the program will print the …

Member Avatar for tony75
0
218
Member Avatar for chdboy

I have problem updating specific record(s) selected to edit from a DataGridView into textboxes ,where the data can be edited and then update to the database. Now my update statement must have a where clause ,but it's not working,right now the code I'm about to post does updated record(s),but not …

Member Avatar for chdboy
0
183
Member Avatar for Minko

Hello, Here is my code so far: TempCommand.CommandText = "SELECT Lenscode FROM Products WHERE (Lenscode LIKE '%@Input%')" TempCommand.Parameters.AddWithValue("@Input", "5") When using a datareader this does not work. but when the code is like this it works: TempCommand.CommandText = "SELECT Lenscode FROM Products WHERE (Lenscode LIKE '%5%')" So my question is …

Member Avatar for G_Waddell
0
129
Member Avatar for AARTI SHRIVAS

i currently using mysql for database i want to use mysqli can any one tell me any other php server is required for it or i can use it in my bitnami wampstack 5.3.17.0 apache server.

Member Avatar for diafol
0
211
Member Avatar for GraficRegret

I need to build a filtering function for the website I am working on, however I am not certain where to even start, should I be working in PHP, Javascript, Jquery or what? The way this is set up, there is a column of buttons set up on the side …

Member Avatar for GraficRegret
0
178
Member Avatar for garyjohnson

I have tried every solution I have come across and am still not getting any results. I have a comment box and I am trying to remove all repetative new lines or `/r/n` from the input. if (isset($_POST['comment'])) { $comment = mysql_real_escape_string($_POST['comment']); $comment = filter_var($comment, FILTER_SANITIZE_STRING); $comment = nl2br($comment); //this …

Member Avatar for garyjohnson
0
2K
Member Avatar for anisha.silva

Hi I have a code that i get a value from a text box in the web page and i want to display the result in another web page. how do i do it? the code is below: string key = "aaaa"; string isbn = TextBox1.Text; string sUrl = ("https://api.bookshare.org/book/isbn/" …

Member Avatar for anisha.silva
0
155
Member Avatar for lexaeterna

im having a hard time coding my php script. it always says "no database selected" but i dont think there is something wrong with my code. here it is: <?php $con = mysql_connect("localhost","",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db('try',$con); $result = mysql_query("SELECT * FROM emptbl") …

Member Avatar for LastMitch
0
162
Member Avatar for TheBrick

Hi, I'm just settign up boost on my desktop (ubuntu) after a reinstall and am having some problems. I set it up last w/e on my laptop (knoppix) and did exactly the same thing and it works fine. I'm sure its something increadably simple I'm missing. I'm following http://www.boost.org/doc/libs/1_53_0/more/getting_started/unix-variants.html I'm …

Member Avatar for TheBrick
0
204
Member Avatar for Hendo

Hello all! Ok, I'm writing an app that creates a specific folder tree on my FTP server. The app asks for a customer name and a project ID. When that is given and button is clicked, I want to create a folder name based off of the customer name, a …

Member Avatar for Begginnerdev
0
3K
Member Avatar for Travus

I am trying to submit a form using JavaScript however when I click my button the text in the form disapers but nothing is sent or posted to my php script. <?php require_once("../content/includes/validation.php"); ?> <!DOCTYPE html> <html lang="en"> <head> <title>Contact | Buffalo Bridal Association</title> <meta charset="utf-8" /> <meta name="description" content="" …

Member Avatar for Travus
0
2K
Member Avatar for Fiorentino01^

Hi, I am doing Home & Learn PHP Tutorial.I got to the lesson about forms. I keep getting this error: PHP Notice: Undefined index: username in C:\inetpub\wwwroot\basicForm.php on line 7. This is the code: <!DOCTYPE HTML PUBLIC -//W3C/DTD HTML 4.01 Transitional//EN"> <html> <head> <title>A Basic Html Form</title> <?PHP $username = …

Member Avatar for Fiorentino01^
0
256
Member Avatar for bryann

Hi i am trying to write the contents of textboxes to a spreadsheet. The code i have does work but at the moment i have to specify what cells to write to. What i would like is for the text to get written to a different row each time but …

Member Avatar for bryann
0
1K
Member Avatar for while(!success)

Hello All, I am new to writing regular expressions and have been trying to write a regex for the following criteria: Cannot contain ~, #, &, {}, asterisk, {}, \, :, <>, ?, /, +, |, or " It cannot start with a period or an underscore Cannot have two …

Member Avatar for while(!success)
0
107
Member Avatar for Tinnin

Hi all, I'm using PHP with PHPExcel to create an excel sheet that I can then send as an email using mail(). Everything is working but the conditional formatting. My code is as follows for the conditional formatting part: // Conditions for data $objConditional1 = new PHPExcel_Style_Conditional(); $objConditional1->setConditionType(PHPExcel_Style_Conditional::CONDITION_CELLIS) ->setOperatorType(PHPExcel_Style_Conditional::OPERATOR_GREATERTHAN) ->addCondition('15'); …

Member Avatar for Tinnin
0
2K
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to backup my mysql database.

Member Avatar for joshl_1995
-1
366
Member Avatar for Kewne

is it going to be possible to have a connection if I create a J2ME (netbeans) as client and vb.net (2010) as the server?

Member Avatar for Kewne
0
233
Member Avatar for ImZick

Hi everyone i have a connection to my sheet like this Dim da As New OleDbDataAdapter("Select * from [EBU 2 LOB$]", con) but i want to use this Dim Sheet1_EBU as string = "EBU 2 LOB$" so that the code will be something like this i think? Dim da As …

Member Avatar for deceptikon
0
150
Member Avatar for ImZick

Hello need help i have a listview and a textbox I have this code ListView_LOB.Focus() For i = 0 To ListView_LOB.Items.Count - 1 If ListView_LOB.Items(i).SubItems(1).Text = TextBox1.Text Then ListView_LOB.Items(i).Selected = True End If Next it will highlight the item in Listview it seen in textbox1 for example "Erick" but if …

Member Avatar for Reverend Jim
0
221
Member Avatar for delta_frost

<?php $filename = $_FILES['file']['name']; $tempname = $_FILES['file']['tmp_name']; if(isset($filename)){ //echo $filename; $directory = 'E:/php_uploads/'; move_uploaded_file($tempname,$directory.$filename); echo 'Done'; } else{ echo 'No file selected'; } ?> <form method="POST" action= "fileupload.php" enctype = "multipart/form-data"> <input type="file" name="file"><br/><br/> <input type="submit" value="Submit"> </form> The enctype is correct.The element names correspond to those in the php …

Member Avatar for delta_frost
0
204
Member Avatar for pucivogel

Can anyone explain me better the conpcept of the webservice. I'm using wamp for a school project, i'm creating an adress-book with JSON and AJAX. The Deitel's one if you have encounteered it before. I have the deitel's code and simply want to implement it in my website. It's requesting …

Member Avatar for gon1387
0
238
Member Avatar for kimangel

hi, good day! I have problem in coding this; combo box list - positions like Manager & supervisor and a label for the Rate of each position. When I click the manager, the label below will auto display the rate for Manager which these two data, Position and Rate, are …

Member Avatar for kimangel
0
2K
Member Avatar for JayJ

I think I'm just having one of those weeks where whatever I try to get this work simply does not work. At one stage I did not think that I was far off solving this problem, but now I feel as if I'm further away from the solution. I'm simply …

Member Avatar for riahc3
0
300
Member Avatar for clouds_n_things

Ok so, question about opening an application from python..is there a command that will force an app to open, while at the same time leaving the tkinter GUI open? The app I am trying to open is Snes9x. import os from tkinter import * try: import Tkinter as tk from …

Member Avatar for clouds_n_things
0
234
Member Avatar for garyjohnson

I know there are other post conserning this but they dont seem to help me. When I run the varaible `$results` through the function `Mysql_num_rows()` it returns as an error saying its not a valid result. Also same for the `mysql_fetch_array()`. function results(){ if ($_POST['search'] != "") { $search = …

Member Avatar for garyjohnson
0
214
Member Avatar for Fame95

I have to find which of the following values can be the degrees of an undirected graph with 6 vertices: a) 3 2 2 2 3 3 b) 4 2 2 2 3 2 c) 5 2 2 2 0 3 d) 5 2 2 2 1 2 I only …

Member Avatar for mike_2000_17
0
285
Member Avatar for mkweska

Hello all! Hope to be a very active nad productive member here as I learn. Currently in a python class and have a problem to solve. Not quite sure where my mistake is.... I am to put the inputs in the main function pass to the processing function and call …

Member Avatar for mkweska
0
226
Member Avatar for Navya91

Hi, I have to draw an ER diagram for assigning classrooms for scheduled courses for university. A classrom is simply a room within a particular building and all bulidings on campus have atleast one classroom. A classroom is scheduled for a particular time and day or days of a week. …

Member Avatar for Navya91
0
194
Member Avatar for fyra

Hi everyone. I'm tying to understand the instruction below. I wish someone could explain me what it means: tree->destroy(((AvlNode*)(*position)->data)->data); // destroy the left branch of the binary search tree starting from the specified node static void destroy_left(BisTree* tree, BiTreeNode* node) { BiTreeNode **position; // can't remove from an empty tree …

Member Avatar for Nutster
0
376
Member Avatar for Bile

-->>Hello World of VB 6 Programers... -->>I've been using a block of Branching statement that worked fine in all the places I've used it... -->>Now I came to develop this form thats when things started to look bad... -->>I just check for the availability of a record in a database …

Member Avatar for BitBlt
0
202
Member Avatar for adikimicky

Can any one please tell me how to connect a simple java web application to Oracle10g Express edition? Which driver should I use? Thanks in advance.

Member Avatar for adikimicky
0
197
Member Avatar for nah094020

I cant figure why my program is not running it compiles with no errors but doesnt run, am bearly starting to learn c , am more proefficient in java but its wierd changing, i use vi to write my code. heres a snipet #include <stdio.h> #include <stdlib.h> #include <time.h> #include …

Member Avatar for Ancient Dragon
0
157
Member Avatar for shah.harsh.m

I am a novice in programming. I have a project where I have to get data from a website (I ll be posting the website below). But it happens that I first have to select a date and press a 'Go' button and then click on another Button/Link 'View in …

Member Avatar for shah.harsh.m
0
275
Member Avatar for kingkong142

Hi, I am having error in following code, <!-- START --> <p class="date-head"> <?php $sql_online_mem = "SELECT membername FROM ` trade_messengerd` WHERE status = 'Online'"; $db_sql_mem = mysql_query($sql_online_mem); while($online_mem = mysql_fetch_array($db_sql_mem)){ $members_online[] = $online_mem['membername']; } for($o=0; $o<count($members_online); $o++){ if($members_online[$o] == $uid){ $mem_online = "Online"; } } ?> <a href="#" onClick="window.open('<?=$domain_url?>/messenger/members/_login.php','login','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=368,height=600,left=380,top=60');return …

Member Avatar for kingkong142
0
220
Member Avatar for BobFX

Hi, The Windows API function to select a directory is really bad, so I'm trying to use GetOpenFileName() instead. For that, the idea is to set a hook function, so that when the user hits the OK button without having actually selected a file, the hook function retrieves the currently …

Member Avatar for BobFX
0
3K
Member Avatar for adishardis

I'm trying to get an xml file from an ftp and then insert select data into mysql db. I'm shooting in the dark but from googling this is what i've tried so far: $curl = curl_init(); $file = fopen("import.xml", 'w'); curl_setopt($curl, CURLOPT_URL, "ftp://company@company.company.se/company/import.xml"); #input curl_setopt($curl, CURLOPT_FILE, $file); #output curl_setopt($curl, CURLOPT_USERPWD, …

Member Avatar for adishardis
0
484
Member Avatar for adishardis

Hi, I, getting a new xml file everyday to one of our external ftp servers. I want to get that file and then insert select data into my mysql. What I'm thinking is that I would use curl to get the file, then simplexml and then insert into database. But …

Member Avatar for adishardis
0
220
Member Avatar for code_rum

Hi, Below is my ajax code along with html and php code. I am getting an error "title is not defined".. Ajax ------ function callAjax() { $.ajax ({ type: "POST", url: "get.php", data: "title=" + title, success: function(msg) { alert(msg); }, error: function(msg){ alert(msg); }, }); } HTML ------ <form …

Member Avatar for radhakrishna.p
0
406
Member Avatar for jaimin4829
Member Avatar for adikimicky

hello everyone.. I am trying to connect a simple application to Oracle XE database. But when I run this program , the else part of program is running. Can Anyone tell whether I hav ewritten the code correct or not. import java.sql.*; public class jbc { public static void main(String …

Member Avatar for radhakrishna.p
0
283
Member Avatar for pucivogel

<?php mysql_connect("localhost", "root", "") or die(mysql_error()); mysql_select_db("agenda") or die(mysql_error()); $q = mysql_query("INSERT INTO kontakte (emri, mbiemri,e-mail,nr,adresa,shenime) VALUES( '{$_POST['emri']}' '{$_POST['mbiemri']}', '{$_POST['e-mail']}', '{$_POST['nr']}', '{$_POST['adresa']}', '{$_POST['shenime']}') "); if (!$q) { $message = 'Invalid query: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $query; die($message); } ?> <html> <head></head> <body> <div …

Member Avatar for urtrivedi
0
141
Member Avatar for lewashby

In the following program how or the two while statements working, `while(szTarget[targetIndex])` & `while(szTarget[targetIndex])` since the their first element is initialized to zero? Zero is false and one is true so how are they getting even one iteration? The book I'M reading also made a point of saying this: "It …

Member Avatar for vmanes
0
77
Member Avatar for trantran

I have been programming in Windows with C++ and I am tiptoeing linux (mainly because of its most up-to-date C++ and also because of it's open source). I want to do multi-platform programming. The programming part is easy: I don't need help there. The part I need help is in …

Member Avatar for trantran
1
314
Member Avatar for HunainHafeez

is it true that no. of rows affected by select statement (ado.net) , is always -1. i.e. NO. OF ROWS AFFECTED BY SELECT STATEMENT = -1 ; if it is then why ?

Member Avatar for JorgeM
0
181
Member Avatar for showman13

Good Morning... I hope this doesn't come across as too unintelligent, but I am baffled and maybe unnecessarilly I am implementing a payment processor and merchant account services on my members site. The processor has provided me with a host of API code for various functions and activities. Problem is …

Member Avatar for showman13
0
218
Member Avatar for garyjohnson

I am making a mysql query that gathers comments for a user, it works properly, I connect to the database and recieve the comments for a user, but it is not showing the first comment for the user. Here is the code function comments(){ //connect to db connect_db_members(); //start query …

Member Avatar for garyjohnson
0
309
Member Avatar for daniel36

I am working on a project in which to show booking in caledar form is required.I myself build the calendar.it is showning the booking correctly in choosen color .but when i see calendar next months it shows booked from date 1 to date 12 booked every month .the main part …

Member Avatar for diafol
0
165
Member Avatar for ponnu

Runtime error 2147467259(80004005): The changes you requested to the table were not successful because they would create duplicate values in the index, primary key..How to catch the exception?

Member Avatar for G_Waddell
0
142

The End.