199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Kratoswoo

protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { DataContext db = new DataContext(); using (var SI = new DataContext()) { var search = (from l in SI.**** orderby l.*** descending where l.**** == l.**** select l).First(); Session["ID"] = search.***; Response.Redirect("http://localhost:63558/****.aspx"); } } So here I have it so when I hit …

Member Avatar for KushMishra
0
283
Member Avatar for yagelnnn1

Hey, does anybody know how to read cloumn from MySQL? I mean, like if I have in my MySQL the schema "Bdatabase" and the table "accounts". In that table there are username and password. How can I do in my program that it'll read the username and password?

Member Avatar for ryanjayson
0
193
Member Avatar for christinetom

Hi everybody.. Hope you're all well. I'm having a problem. How can I test for white space characters in c++ ? If I do the below it doesn't seem to work. char char1; // iterating through a file if (char1 = ' ') { cout << "WHITE SPACE" << endl; …

Member Avatar for christinetom
0
133
Member Avatar for elie.karkafy
Member Avatar for MikeTr

I need to upload a text file to a website on Lunix server. I run the following Perl script lwpupload without error but the file was not uploaded. Do I need to pass the file name to the script fileupload.pl which is the url in lwpupload.pl and how ? Thank …

Member Avatar for MikeTr
0
729
Member Avatar for NardCake

Hello! I was extremely bored and stumbled accross this website: [Hackerrank](https://www.hackerrank.com) It's a website that contains lots of programming challenges of various types. I signed up and looked at some of the challenges, lots of them are quite over my head since I'm not that skilled or any expert by …

Member Avatar for NardCake
0
622
Member Avatar for whatthebobo

I am currently writting a code for my programming class and have come across this error. I do not know how to fix it and was wondering if someone can help me or give me some hints. for (index = 1; index < SIZE; ++); { if (values[index] < lowest) …

Member Avatar for whatthebobo
0
170
Member Avatar for H_beginner

I m reading data from a text file and then printing it. I am not sure what I am doing wrong but the program prints the last line that it reads twice. void bank_account::viewHistory() { ifstream in_file("bank_transaction_history.txt" , ios::in); if(!in_file) { cout<<"File error \n"; } cout<<"Event"<<setw(15)<<"Amount"<<setw(15)<<"Date"<<setw(20)<<"Current Balance"<<endl; string eve,dat; double …

Member Avatar for deceptikon
0
290
Member Avatar for speen

Hello there? I am extremely new to python, and am trying to attend the lectures about hashing. Please cd you ceck the following code and error, and just tell me how to make it work. Please I am not that advanced user of python. I am very basic. def create(smallest, …

Member Avatar for speen
0
247
Member Avatar for Cj

For my c++ class i have to write a code that will read integers in to a 2D array from a file and then, using functions/methods, determine if the array is a magic square. My problem is that when i build or compile i get "error C2664: 'DataIn' : cannot …

Member Avatar for richieking
0
1K
Member Avatar for Samier999

I need this program please..... Using array and functions crate a program that asks the user to enter the information of ten of his\her friends (name, phone, DOB) and than primo the information in a form of a report

Member Avatar for richieking
0
351
Member Avatar for ahmadroos

The program of conversion 1. Binary to decimal 2. Decimal to binary 3. Hex decimal to decimal 4. Decimal to hex decimal 5. Octal to decimal 6. Decimal to octal Means at the user's request, for example, the introduction of No. 4 Convert from Decimal to hex decimal Thus, the …

Member Avatar for castajiz_2
0
365
Member Avatar for Rickname

Hello, * I want somehow to force the Firefox OR Chrome browser to open the browser windows hidden ( the windows to have the SW_HIDE style from the start when they are created ). **For example :** If I want to open a new browser window besides my current one, …

Member Avatar for Rickname
0
473
Member Avatar for lewashby

Is there a function that I can use to find out if a file is a block device? And another for a character device. I'm trying to create a funtion that will build a string the is exactly like the result you get from running ls -l for a slightly …

Member Avatar for woooee
0
540
Member Avatar for neha05
Member Avatar for ranar

Okay so i am trying to make it so i can unzip files using c++ and found a library called zlib i built all .sln file in the folder *contrib/vstudio* they all compiled succesfully but when i try to get this example to work /* unzips testfile.txt from C:\temp\test.zip and …

Member Avatar for rubberman
0
869
Member Avatar for tqmd1

Dear Sir, I have following codes. These code wok fine. Is it possible to get table data with ajax. If yes then please help me to modify my code. Thanks <?php require_once("connect.php"); $productCode = ""; $productValue=""; if(isset($_POST['button1'])) { // Get values from form $sno =$_POST['txtsno']; $record_check ="SELECT * FROM test …

Member Avatar for diafol
0
271
Member Avatar for Gen_1

I need help playing audio from mysql blob. I know how to save audio file as blob but I don't know how to play it in vb.net. Is there a way to play audio from mysql blob without saving it first as a file? If so, I need sample codes, …

Member Avatar for Begginnerdev
0
339
Member Avatar for el.maxim.st

Hello! First of all i want to sa that i have searched here for an answer, but i can't find an explanation :( I want to make a countdown, let say 20 sec. The user must click on a specified pixel in this time. If the user don't click the …

Member Avatar for el.maxim.st
0
486
Member Avatar for nadiam

Hey guys, yes my problem is very, very trivial and im sure it does not rank importance to be posted but im really frustrated. See my coding was fine as in it executed as i wanted it to and now i dont know why but it isn't and i have …

Member Avatar for diafol
0
301
Member Avatar for Syafiq_1

#include<fstream.h> #include<string.h> #include<iostream.h> #include<conio.h> #include<stdio.h> class student{ protected: char name[40]; char roll[10]; char dep[5]; char batch[5]; void get(){ cout<<"\n enter the name"; cin>>name; cout<<"\n enter the roll"; cin>>roll; cout<<"\n enter the deperment"; cin>>dep; cout<<"\n enter the batch"; cin>>batch; } }; class cgpa:protected student{ private: char subname[10][20]; char subcode[10][20]; float gpa[10]; …

Member Avatar for richieking
0
181
Member Avatar for urbanthistleuk

Hello All, Having a few problems with the code below and wondered if someone could shed some light on it, I have a php script running from a cron that runs every 15 mins the error I am getting tom the cron is `PHP Notice: Undefined variable: rows in /var/www/vhosts/server.com/migration_tracker/staff/5th_email.php …

Member Avatar for urbanthistleuk
0
285
Member Avatar for chophouse

I'm having trouble calling a function I've written after importing the module containing it. The module is called funky.py. Here is the code for funky.py: from ftplib import FTP_TLS #### FUNCTION --- fileup() #### for sending file via FTP TLS ## ## arg1 .. destname > the filename to be …

Member Avatar for chophouse
0
17K
Member Avatar for MaddTechwf

I have a college student that works for me and I was trying to help him with his perl project but I couldn't figure out what was going on with it. He's got a txt file of numbers in rows. The numbers have to be sorted on a per row …

Member Avatar for 2teez
0
259
Member Avatar for Benjamin_4

hello guys i am still new in java and i have been battling with this problem. i want to filter my data in my jtable. i have got the following data in my jtable which is from my database. | name | gender | courses | |------|--------|---------| | Ben | …

Member Avatar for mKorbel
0
1K
Member Avatar for Violet_82

Hi guys, I have an HTML page that I built and at the moment the content on it gets changed via javascript. What I would like to achieve is to change the content permanently on this page (which will be uploaded to the server). Now, I must admit that I …

Member Avatar for Violet_82
0
2K
Member Avatar for manel1989

Hi everyone! In my code when I click on the "Show Results" button it shows me the result is a table in another interface other than the main interface, untel now everything is fine but when I changed the method : I just want to show this table in the …

Member Avatar for JamesCherrill
0
394
Member Avatar for AARTI SHRIVAS

i am just start to learnin python and i want to know some thing about it 1.is is used for web development 2.how can i run python program on my ubuntu os i have python installed on my system but not able to run i don't know how to run …

Member Avatar for snippsat
0
440
Member Avatar for Nazirah_1

I have some problem about uploading and database. I upload the file (abc.jpg) and the file already insert to the folder name (uploads). But when I check in database (php), the file did not enter. Here is my code. Hope anyone can help me.Thank you. <? include "conn.php";?> <?php error_reporting(0); …

Member Avatar for pritaeas
0
260
Member Avatar for westsiderailway

Hi there, i have two froms all ready made in design mode. how do i transfer data between them. the program starts in Form1, the user selects which option to use and then goto Form2 to calculate. when finished go back to Form1, how do i get the result back …

Member Avatar for deceptikon
0
1K
Member Avatar for bhagawatshinde

Hi Guys, I am using access (.mdb) database in my windows application. When i am inserting values to db it gives me an error "syntax error in insert into statement" but it will work in SQL and access query analyzer. here is my code [CODE] string StrInsertToServer1 = "insert into …

Member Avatar for deceptikon
0
5K
Member Avatar for Krefie

If someone can please help with this, how is this even possible. See pic attached...I even did a Thread.Sleep(1000) to make sure the variable gets set to true and then close the port...still.. ! [1c3e8e81ba2568b9cd5c1db56134bc91](/attachments/small/3/1c3e8e81ba2568b9cd5c1db56134bc91.png "align-left")

Member Avatar for Krefie
0
98
Member Avatar for davidjennings

Hi All, I am trying to add insert/update and delete to an OOP singleton database connection using public functions like this, not sure if it is correct? example code public function insert($sql){ if($this->_execute= $this->_mysqli->_execute($sql)){ while ($row = $this->_execute->fetch_object()){ $this->_results[] = $row; } $this->_count = $this->_execute->num_rows; } return $this; } //page …

Member Avatar for diafol
0
243
Member Avatar for justin22

Table structure for table `address` -- CREATE TABLE IF NOT EXISTS `address` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `country` varchar(255) NOT NULL, `city` varchar(255) NOT NULL, `address` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `address` …

Member Avatar for pritaeas
0
138
Member Avatar for AARTI SHRIVAS

<?php $con=mysqli_connect('localhost','root','password','swati'); $sql1="SELECT * FROM `country`"; ?> <html> <head> <script> function val() { var name=document.getElementById("name").value; var add=document.getElementById("add").value; var email=document.getElementById("email").value; var chk1=document.getElementById("c1").checked; //var chk2=document.getElementById("c").checked; //var chk3=document.getElementById("c3").checked; //var gen=document.getElementById("gender").checked; var gen1=document.getElementById("gender1").checked; if(name=="" || name==null) { alert("name can not be blank"); return false; } if(add=="" || add==null) { alert("address can not be blank"); …

Member Avatar for eyasin
0
243
Member Avatar for zeeshan_kust

i have retrieved mysql data from one table in json using the following script [CODE]$table_first = 'abc'; $query = "SELECT * FROM $table_first"; $resouter = mysql_query($query, $conn); $set = array(); $total_records = mysql_numrows($resouter); if($total_records >= 1){ while ($link = mysql_fetch_array($resouter, MYSQL_ASSOC)){ $set[] = $link; } } echo json_encode($set);[/CODE] how can …

Member Avatar for anson davis
0
692
Member Avatar for venkaaaaat

hi, can you please help me with a sample python code to retrive data from command prompt which appears after execution of some commanad for eg: ./vershion.sh gives ouput as version: 7.0.0.9 type : NAS thanks in advance

Member Avatar for manohar1111
0
594
Member Avatar for sasikrishnasamy

Hi, I have a hidden field and a text field called hdStrField, txtStrField . Now I assign the value for hdStrField field like this. document.forms[0]. hdStrField.value=’ txtStrField'; Now I want to change assigned hdStrField field value as read only. Give some suggestions for getting this functionality.

Member Avatar for stultuske
0
97
Member Avatar for nadiam

So i have this web page to book a studio and on the page there are two tables. one table is a form to book the studio(time,date,etc) and the other table i plan to display other data that is already in the database. the thing is in the second table …

Member Avatar for diafol
0
203
Member Avatar for honoluluu99

Creat a program that: -Asks you your age -Takes your input and stores it in an integer variable -Takes text input and stores it in character array (string) -Has a loop that prints this pattern: * ** *** **** ***** ****** ******* ******** ********* **********

Member Avatar for Learner010
0
73
Member Avatar for Kewne

I have a query that used union all.. and produces a table like this: `+-------------+------------------------+-----------+--------------+ | Type | Name | IDNum | Warnings | +-------------+------------------------+-----------+--------------+ | M | sample | 2013-1 | 4 | | L | sample | 2013-1 | 2 | +-------------+------------------------+-----------+--------------+` now i made a while loop …

Member Avatar for pritaeas
0
1K
Member Avatar for feblioz

I tried running this code <form action = "upload.php" method="POST enctype="multipart/form-data"> <input type="file" name="file"><BR><BR> <input type="submit" name = "Submit" value ="Submit"> </form> <?php echo $name = $_FILES['file']['name']; $size = $_FILES['file']['size']; $type = $_FILES['file']['type']; $tmp_name = $_FILES['file']['tmp_name']; ?> but im having these errors Notice: Undefined index: file in C:\xampp\htdocs\series\fileupload\upload.php on line …

Member Avatar for amindabj
0
441
Member Avatar for tanatos.daniel

TextBox has different heights by default, depending on the font size. I've been able to resize the text boxes by turning off AutoSize, but the text still hugs the top of the control, leaving a gap below. How could I obtain a VerticalAlignment property?

Member Avatar for tanatos.daniel
0
193
Member Avatar for NA7KR

How do I start with the drop down list disabled? <head> <script type="text/javascript"> function makeDisable() { var x=document.getElementById("mySelect") x.disabled=true } function makeEnable() { var x=document.getElementById("mySelect") x.disabled=false } </script> </head> <body> <select id="mySelect"> <option>Apple</option> <option>Banana</option> <option>Orange</option> </select> <br /> <input type='radio' name='campustype' value='in' onclick="makeDisable()" checked='1' /><label for='incampus'>In-campus</label><br /> <input type='radio' name='campustype' …

Member Avatar for NA7KR
0
284
Member Avatar for Indians

edit.php coding... <?php $uid = (int)$_GET['id']; ?> <form action="update.php" name="myform" method="post" onsubmit="return(validateform());"> <input type="hidden" name="edited" value="<?=$uid;?>"> <?php $tariff_query = mysql_query("SELECT * FROM ebvouchertariffs WHERE VoucherID_Fk = $uid"); if(mysql_num_rows($tariff_query)>=1) { echo "<table width=960 align=center cellspacing=0 cellpadding=0> <tr> <td width=68 height=50 class=tabtext>SL.NO</td> <td width=106 class=tabtext>DATE</td> <td width=204 class=tabtext>PARTICULARS</td> <td width=117 class=tabtext>NO OF …

Member Avatar for Iikeloa
0
377
Member Avatar for salesman91

hi I am getting this error. I wrote code to save multiple Images...now when I save all the 4 image I get no exception... but when I try to save only 1 or 2 or 3 its throws an exception Empty Path is not legal. Little help plz.

Member Avatar for salesman91
0
793
Member Avatar for Yeonng

Hi, I'm a beginner in Vb.net. I have a problem like this. My table name in dtabase is *tblsales* ![67f4b407a5443c6d48ba102a4779c9f2](/attachments/large/4/67f4b407a5443c6d48ba102a4779c9f2.JPG "67f4b407a5443c6d48ba102a4779c9f2") and i have 4 combobox in month and year ![81361dad1be3d14458ae4ad0a3aa9a55](/attachments/large/4/81361dad1be3d14458ae4ad0a3aa9a55.JPG "81361dad1be3d14458ae4ad0a3aa9a55") i need to find data between this 4 combobox. And this is the code i've tried before. For …

Member Avatar for Yeonng
0
1K
Member Avatar for Pravesh_1

I have website for audio and videos. My problem is that an audio is not running on Server but working on local. I created a folder where only html files are there and it is working fine on that folder. But an another folder where are audios and videos are …

Member Avatar for Pravesh_1
0
194
Member Avatar for sasikrishnasamy

Hi, I have a text field it should allow only Number, only one time 'Q' and 'C'. I created below mentioned code. <input type="text" name="vcno" onkeypress="return blockChars([^0-9-Qq-Cc])"> function blockChars(Chars){ var status = false; if(Chars.indexOf('\') != -1) status=true; varKeyCode = getKeyCode() ; if(KeyCode != undefined && isEmptyValue(Chars) ){ var g = …

Member Avatar for sasikrishnasamy
0
173
Member Avatar for davy_yg

[CODE] <link href="gradient.css" rel="stylesheet" type="text/css"> <?php //mysql_connect("localhost","root",""); //mysql_select_db("pintar"); include "includes/koneksi.php"; //echo "<table align=center><tr><th>No</th><th>Nama</th><th>Alamat</th></tr>"; // Langkah 1: Tentukan batas,cek halaman & posisi data $batas = 3; $halaman = $_GET['halaman']; if(empty($halaman)){ $posisi = 0; $halaman = 1; } else{ $posisi = ($halaman-1) * $batas; } //Langkah 2: Sesuaikan perintah SQL echo "<table>"; …

Member Avatar for Purnomo_1
0
275

The End.